/* ============================================
   PROFILE MANAGEMENT - AGENDRIX STYLE
   Complete Custom Styling
   ============================================ */

/* ====== CSS VARIABLES ====== */
:root {
    /* Primary Colors */
    --profile-primary: 13, 43, 53;
    --profile-primary-hover: 20, 60, 70;
    --profile-primary-light: 229, 237, 239;

    /* Gold Accent */
    --profile-gold: 212, 175, 55;
    --profile-gold-hover: 200, 160, 45;
    --profile-gold-light: 254, 251, 235;

    /* Status Colors */
    --profile-success: 42, 157, 143;
    --profile-success-light: 209, 250, 229;
    --profile-danger: 239, 68, 68;
    --profile-danger-light: 254, 226, 226;
    --profile-info: 59, 130, 246;
    --profile-info-light: 219, 234, 254;

    /* Neutral Colors */
    --profile-white: 255, 255, 255;
    --profile-gray-50: 248, 249, 250;
    --profile-gray-100: 243, 244, 246;
    --profile-gray-200: 229, 231, 235;
    --profile-gray-300: 209, 213, 219;
    --profile-gray-400: 156, 163, 175;
    --profile-gray-500: 107, 114, 128;
    --profile-gray-600: 75, 85, 99;
    --profile-gray-700: 55, 65, 81;
    --profile-gray-800: 31, 41, 55;
    --profile-gray-900: 17, 24, 39;

    /* Spacing */
    --profile-space-1: 0.25rem;
    --profile-space-2: 0.5rem;
    --profile-space-3: 0.75rem;
    --profile-space-4: 1rem;
    --profile-space-5: 1.25rem;
    --profile-space-6: 1.5rem;
    --profile-space-8: 2rem;

    /* Border & Shadow */
    --profile-radius: 0.5rem;
    --profile-radius-lg: 0.75rem;
    --profile-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --profile-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --profile-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --profile-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== MAIN CONTAINER ====== */
.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--profile-space-6);
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--profile-space-6);
    min-height: calc(100vh - 80px);
}

/* ====== SIDEBAR ====== */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--profile-space-6);
}

.profile-sidebar-header {
    background: rgb(var(--profile-white));
    border: 1px solid rgb(var(--profile-gray-200));
    border-radius: var(--profile-radius-lg);
    padding: var(--profile-space-6);
    box-shadow: var(--profile-shadow-sm);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--profile-space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(var(--profile-gold)), rgb(var(--profile-gold-hover)));
    border-radius: 50%;
    color: rgb(var(--profile-primary));
    font-size: 3rem;
}

.profile-user-info {
    text-align: center;
}

.profile-user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(var(--profile-gray-900));
    margin-bottom: var(--profile-space-1);
}

.profile-user-email {
    font-size: 0.875rem;
    color: rgb(var(--profile-gray-500));
}

/* ====== NAVIGATION ====== */
.profile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--profile-space-1);
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--profile-space-3);
    padding: var(--profile-space-3) var(--profile-space-4);
    background: rgb(var(--profile-white));
    border: 1px solid rgb(var(--profile-gray-200));
    border-radius: var(--profile-radius);
    color: rgb(var(--profile-gray-700));
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--profile-transition);
    cursor: pointer;
}

    .profile-nav-item i {
        font-size: 1.125rem;
        color: rgb(var(--profile-gray-400));
        transition: var(--profile-transition);
        width: 20px;
        text-align: center;
    }

    .profile-nav-item:hover {
        background: rgb(var(--profile-gray-50));
        border-color: rgb(var(--profile-gray-300));
        color: rgb(var(--profile-gray-900));
    }

        .profile-nav-item:hover i {
            color: rgb(var(--profile-gold));
        }

    .profile-nav-item.active {
        background: linear-gradient(135deg, rgb(var(--profile-gold)), rgb(var(--profile-gold-hover)));
        border-color: rgb(var(--profile-gold));
        color: rgb(var(--profile-primary));
        font-weight: 600;
    }

        .profile-nav-item.active i {
            color: rgb(var(--profile-primary));
        }

/* ====== CONTENT AREA ====== */
.profile-content {
    background: rgb(var(--profile-white));
    border: 1px solid rgb(var(--profile-gray-200));
    border-radius: var(--profile-radius-lg);
    box-shadow: var(--profile-shadow-sm);
    overflow: hidden;
}

.profile-header {
    padding: var(--profile-space-6);
    border-bottom: 1px solid rgb(var(--profile-gray-200));
    background: linear-gradient(to right, rgb(var(--profile-gray-50)), rgb(var(--profile-white)));
}

.profile-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: rgb(var(--profile-gray-900));
    margin: 0;
}

.profile-body {
    padding: var(--profile-space-6);
}

/* ====== FORM STYLES ====== */
.profile-form {
    max-width: 600px;
}

.profile-form-group {
    margin-bottom: var(--profile-space-5);
}

.profile-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(var(--profile-gray-700));
    margin-bottom: var(--profile-space-2);
}

.profile-form-input {
    width: 100%;
    padding: var(--profile-space-3) var(--profile-space-4);
    font-size: 0.9375rem;
    color: rgb(var(--profile-gray-900));
    background: rgb(var(--profile-white));
    border: 1px solid rgb(var(--profile-gray-300));
    border-radius: var(--profile-radius);
    transition: var(--profile-transition);
    font-family: inherit;
}

    .profile-form-input:focus {
        outline: none;
        border-color: rgb(var(--profile-gold));
        box-shadow: 0 0 0 3px rgba(var(--profile-gold), 0.1);
    }

    .profile-form-input:disabled {
        background: rgb(var(--profile-gray-100));
        color: rgb(var(--profile-gray-500));
        cursor: not-allowed;
    }

    .profile-form-input.is-invalid {
        border-color: rgb(var(--profile-danger));
    }

.profile-form-input-group {
    position: relative;
    display: flex;
}

    .profile-form-input-group .profile-form-input {
        flex: 1;
    }

.profile-form-input-append {
    display: flex;
    align-items: center;
    padding: 0 var(--profile-space-4);
    background: rgb(var(--profile-success-light));
    border: 1px solid rgb(var(--profile-gray-300));
    border-left: none;
    border-radius: 0 var(--profile-radius) var(--profile-radius) 0;
}

    .profile-form-input-append i {
        color: rgb(var(--profile-success));
        font-size: 1.125rem;
    }

.profile-form-help {
    display: block;
    font-size: 0.8125rem;
    color: rgb(var(--profile-gray-500));
    margin-top: var(--profile-space-2);
}

.profile-form-error {
    display: block;
    font-size: 0.8125rem;
    color: rgb(var(--profile-danger));
    margin-top: var(--profile-space-2);
}

    .profile-form-error:before {
        content: "⚠ ";
    }

/* ====== BUTTONS ====== */
.profile-btn-group {
    display: flex;
    gap: var(--profile-space-3);
    margin-top: var(--profile-space-6);
}

.profile-btn-link {
    color: rgb(var(--profile-gold));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: var(--profile-space-2) 0;
    transition: var(--profile-transition);
    background: none;
    border: none;
    cursor: pointer;
}

    .profile-btn-link:hover {
        color: rgb(var(--profile-gold-hover));
        text-decoration: underline;
    }

/* ====== STATUS MESSAGE ====== */
.profile-status-message {
    padding: var(--profile-space-4);
    border-radius: var(--profile-radius);
    margin-bottom: var(--profile-space-5);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: var(--profile-space-3);
}

    .profile-status-message.success {
        background: rgb(var(--profile-success-light));
        border: 1px solid rgb(var(--profile-success));
        color: rgb(var(--profile-gray-800));
    }

        .profile-status-message.success:before {
            content: "✓";
            font-weight: bold;
            color: rgb(var(--profile-success));
        }

    .profile-status-message.error {
        background: rgb(var(--profile-danger-light));
        border: 1px solid rgb(var(--profile-danger));
        color: rgb(var(--profile-gray-800));
    }

        .profile-status-message.error:before {
            content: "⚠";
            font-weight: bold;
            color: rgb(var(--profile-danger));
        }

    .profile-status-message.info {
        background: rgb(var(--profile-info-light));
        border: 1px solid rgb(var(--profile-info));
        color: rgb(var(--profile-gray-800));
    }

        .profile-status-message.info:before {
            content: "ⓘ";
            font-weight: bold;
            color: rgb(var(--profile-info));
        }

/* ====== PERSONAL DATA SECTION ====== */
.profile-data-section {
    margin-bottom: var(--profile-space-6);
}

.profile-data-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(var(--profile-gray-900));
    margin-bottom: var(--profile-space-4);
}

.profile-data-description {
    font-size: 0.9375rem;
    color: rgb(var(--profile-gray-600));
    margin-bottom: var(--profile-space-4);
    line-height: 1.6;
}

.profile-data-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--profile-space-3);
}

/* ====== VALIDATION SUMMARY ====== */
.profile-validation-summary {
    background: rgb(var(--profile-danger-light));
    border: 1px solid rgb(var(--profile-danger));
    border-radius: var(--profile-radius);
    padding: var(--profile-space-4);
    margin-bottom: var(--profile-space-5);
}

    .profile-validation-summary ul {
        margin: 0;
        padding-left: var(--profile-space-5);
        color: rgb(var(--profile-gray-800));
    }

    .profile-validation-summary li {
        margin-bottom: var(--profile-space-1);
    }

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: var(--profile-space-4);
        padding: var(--profile-space-4);
    }

    .profile-sidebar {
        gap: var(--profile-space-4);
    }

    .profile-sidebar-header {
        padding: var(--profile-space-4);
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .profile-user-name {
        font-size: 1rem;
    }

    .profile-header {
        padding: var(--profile-space-4);
    }

    .profile-title {
        font-size: 1.5rem;
    }

    .profile-body {
        padding: var(--profile-space-4);
    }

    .profile-btn-group {
        flex-direction: column;
    }

        .profile-btn-group .btn {
            width: 100%;
        }
}

@media (max-width: 480px) {
    .profile-container {
        padding: var(--profile-space-3);
    }

    .profile-nav-item {
        font-size: 0.875rem;
        padding: var(--profile-space-2) var(--profile-space-3);
    }

        .profile-nav-item i {
            font-size: 1rem;
        }
}
