/* WCC Profile Page Styles */

/* Profile Card Styles */
.wcc-profile-card {
    background-color: #35324a;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.wcc-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.wcc-profile-field,
.wcc-form-field {
    display: flex;
    flex-direction: column;
}

.wcc-profile-field label,
.wcc-form-field label {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: normal;
}

.wcc-profile-value {
    background-color: #f5f5f5;
    color: #333333;
    padding: 12px 16px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    min-height: 20px;
}

.wcc-form-field input {
    background-color: #f5f5f5;
    color: #333333;
    border: none;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.wcc-form-field input:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #f86b19;
}

.wcc-form-field input:disabled {
    background-color: #e9e9e9;
    color: #666666;
    cursor: not-allowed;
}

.wcc-form-actions {
    grid-column: span 2;
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.wcc-btn-save,
.wcc-btn-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wcc-btn-save {
    background-color: #f86b19;
    color: white;
}

.wcc-btn-save:hover {
    background-color: #e55a0d;
}

.wcc-btn-cancel {
    background-color: #6c757d;
    color: white;
}

.wcc-btn-cancel:hover {
    background-color: #5a6268;
}

/* Edit button styling */
#edit-profile-btn {
    background-color: transparent;
    border: 1px solid #f86b19;
    color: #f86b19;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#edit-profile-btn:hover {
    background-color: #f86b19;
    color: white;
}

/* Rewards Section Styles */
.wcc-main-content h2:has(+ .category-title) {
    margin-top: 3rem;
}

.accordion-button-rewards {
    background-color: transparent !important;
    border: none !important;
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none !important;
}

.accordion-button-rewards:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.reward-name-col {
    flex: 1;
    text-align: left;
}

.reward-date-col {

    font-weight: 500;
    width: 150px;
    text-align: left;
}

/* Global Loading Overlay */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-container {
    text-align: center;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-container h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loading-container p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .wcc-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .wcc-full-width {
        grid-column: span 1;
    }
    
    .wcc-form-actions {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .accordion-button-rewards {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    
    .loading-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}