.card-user .avatar, .avatar {
    width: 124px;
    height: 124px;
    border: 1px solid #FFFFFF;
    position: relative;
}
.card .avatar {
    width: 150px;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 15px;
}
img {
    vertical-align: middle;
    border-style: none;
}
:root {
    --primary: #3A767A;
    --primary-600: #2f6164;
    --primary-700: #254a4d;
    --primary-light: rgba(58,118,122,0.1);
    --secondary: #3FAC72;
    --secondary-600: #2f945f;
    --secondary-light: rgba(63,172,114,0.1);
    --tertiary: #E04852;
    --tertiary-600: #c63f48;
    --tertiary-light: rgba(224,72,82,0.1);
    --surface: #fff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--surface-2);
    color: var(--text);
}

/* Page Header */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Profile Card */
.profile-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

    .profile-card .card-body {
        padding: 2rem;
    }

.profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    transition: transform 0.3s ease;
}

    .profile-avatar:hover {
        transform: scale(1.05);
    }

.avatar-upload-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: 3px solid white;
    transition: all 0.3s ease;
}

    .avatar-upload-overlay:hover {
        background: var(--primary-600);
        transform: scale(1.1);
    }

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.profile-role {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions Card */
.quick-actions-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

    .quick-actions-card .card-header {
        background: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
    }

    .quick-actions-card .card-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
    }

.action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .action-item:last-child {
        border-bottom: none;
    }

    .action-item:hover {
        transform: translateX(5px);
        color: var(--primary);
    }

    .action-item i {
        width: 24px;
        font-size: 1.1rem;
    }

    .action-item span {
        font-size: 0.95rem;
        color: var(--text);
    }

    .action-item:hover span {
        color: var(--primary);
    }

/* Profile Info Card */
.profile-info-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

    .profile-info-card .card-header {
        background: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
    }

    .profile-info-card .card-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text);
    }

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.input-group {
    border-radius: var(--radius);
    overflow: hidden;
}

    .input-group .input-group-text {
        background: var(--surface-3);
        border: 1px solid var(--border);
        border-right: none;
        color: var(--text-muted);
    }

    .input-group .form-control,
    .input-group .form-select {
        border: 1px solid var(--border);
        border-left: none;
        background: var(--surface);
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }

        .input-group .form-control:focus,
        .input-group .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .input-group .form-control:disabled,
        .input-group .form-select:disabled {
            background: var(--surface-2);
            color: var(--text);
            opacity: 1;
        }

/* Dependents Card */
.dependents-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

    .dependents-card .card-header {
        background: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
    }

    .dependents-card .card-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text);
    }

    .dependents-card .badge {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
        border-radius: 9999px;
    }

.table {
    margin-bottom: 0;
}

    .table thead th {
        background: var(--surface-3);
        color: var(--text-muted);
        font-weight: 600;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: none;
        padding: 1rem;
    }

    .table tbody td {
        padding: 1rem;
        vertical-align: middle;
        color: var(--text);
        border-bottom: 1px solid var(--border-light);
    }

    .table tbody tr:hover {
        background: var(--surface-2);
    }

/* Buttons */
.btn {
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background: var(--primary-600);
        border-color: var(--primary-600);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline-primary:hover {
        background: var(--primary);
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-success {
    background: var(--secondary);
    border-color: var(--secondary);
}

    .btn-success:hover {
        background: var(--secondary-600);
        border-color: var(--secondary-600);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-warning {
    background: #fbbf24;
    border-color: #fbbf24;
    color: var(--text);
}

    .btn-warning:hover {
        background: #f59e0b;
        border-color: #f59e0b;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

    .btn-close:hover {
        opacity: 1;
    }

/* Support Section */
.support-section {
    animation: fadeIn 0.3s ease;
}

.support-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.dependent-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

/* Table Images */
.dependent-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

/* Loading States */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.15rem;
}

/* Gap Utility */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Animations */
@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
media (max-width: 768px) {
    .container-fluid

{
    padding: 1rem;
}

.page-title {
    font-size: 1.5rem;
}

.profile-stats {
    gap: 1rem;
}

.stat-value {
    font-size: 1rem;
}

.profile-avatar-container {
    width: 100px;
    height: 100px;
}

.btn {
    padding: 0.375rem 0.75rem;
}

.table thead {
    display: none;
}

.table tbody td {
    display: block;
    text-align: right;
    padding: 0.75rem;
    border-bottom: none;
}

    .table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--text-muted);
    }

.table tbody tr {
    display: block;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
}

}

/* Hover Effects */
.table tbody tr {
    transition: all 0.3s ease;
}

    .table tbody tr:hover td {
        background: var(--surface-2);
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-600);
    }
/* Fix for Select2 inside Bootstrap Input Group */
.select2-container--default .select2-selection--single {
    height: 38px; /* Match Bootstrap height */
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.select2-container {
    flex: 1 1 auto; /* Allows it to grow inside the input-group */
}