/* Header User Profile Styles user name/admin */
.user-profile-dropdown {
    position: relative;
    margin-right: 15px;
}

.user-profile-display {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile-display:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #fff;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-small {
    display: flex;
    flex-direction: column;
    margin-right: 8px;
}

#header-user-name {
    font-weight: 600;
    font-size: 14px;
    color: blue;
    line-height: 1.2;
}

.user-role-small {
    font-size: 12px;
    color: red;
    line-height: 1.2;
}

.profile-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.user-profile-display:hover .profile-arrow {
    color: #fff;
}

.user-profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    display: none;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.user-profile-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-menu-item:hover {
    background-color: #f5f5f5;
}

.profile-menu-item i {
    width: 20px;
    margin-right: 10px;
    color: #666;
}

.profile-menu-item:hover i {
    color: #891bb8;
}

.profile-menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 5px 0;
}

/* Header layout adjustments */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-dropdown {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-info-small {
        display: none;
    }
    
    .profile-arrow {
        display: none;
    }
    
    .user-profile-display {
        padding: 5px;
    }
    
    .user-avatar-small {
        margin-right: 0;
    }
}
/* Header User Profile Styles */
.user-header-profile {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 15px;
}

.user-header-profile:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #fff;
}

.user-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-header-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: blue;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    color: red;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Profile Modal Styles */
.profile-container {
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 4px solid #891bb8;
    box-shadow: 0 4px 12px rgba(137, 27, 184, 0.2);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-basic-info h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.profile-badge {
    display: inline-block;
    background: #891bb8;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-email {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.profile-details {
    margin-bottom: 30px;
}

.profile-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h4 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.profile-section h4 i {
    margin-right: 10px;
    color: #891bb8;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.detail-value {
    color: #333;
    text-align: right;
    flex: 1;
}

/* Manager Info */
.manager-details {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.manager-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid #4a90e2;
}

.manager-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manager-info h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.manager-info p {
    margin: 2px 0;
    color: #666;
    font-size: 13px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.profile-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Modal specific styles */
#user-profile-modal .modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#user-profile-modal .modal-header {
    background: linear-gradient(135deg, #891bb8, #6a0dad);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 20px;
}

#user-profile-modal .modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-profile-modal .modal-header .close-modal {
    color: white;
    font-size: 28px;
}

#user-profile-modal .modal-body {
    padding: 0;
}

/* Print styles */
@media print {
    .modal-header,
    .modal-footer,
    .profile-actions {
        display: none !important;
    }
    
    .modal-content {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .profile-container {
        padding: 0 !important;
    }
}
/* Profile Modal Styles - Simplified */
.profile-container {
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    padding: 20px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 25px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-basic-info h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 26px;
    font-weight: 600;
}

.profile-department {
    display: inline-flex;
    align-items: center;
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    border: 1px solid #bbdefb;
}

.profile-department i {
    margin-right: 8px;
    font-size: 12px;
}

.profile-email {
    color: #666;
    margin: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.profile-email:before {
    content: "📧";
    margin-right: 8px;
    font-size: 14px;
}

.profile-details {
    margin-bottom: 25px;
}

.profile-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-section h4 {
    margin: 0 0 18px 0;
    color: #34495e;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.profile-section h4 i {
    margin-right: 10px;
    color: #891bb8;
    width: 20px;
    text-align: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #555;
    min-width: 140px;
    font-size: 14px;
}

.detail-value {
    color: #2c3e50;
    text-align: right;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* Manager Info */
.manager-details {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-top: 10px;
}

.manager-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 18px;
    border: 3px solid #4a90e2;
    flex-shrink: 0;
}

.manager-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manager-info-content {
    flex: 1;
}

.manager-info-content h5 {
    margin: 0 0 6px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.manager-info-content p {
    margin: 3px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.no-manager-message {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    font-size: 14px;
    margin-top: 10px;
}

.no-manager-message i {
    margin-right: 8px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Info */
.admin-info {
    background: linear-gradient(135deg, #fff8e1, #fff);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffeaa7;
}

.admin-privileges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.privilege-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.privilege-item i {
    font-size: 12px;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.profile-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

/* Profile modal - dashboard theme */
#user-profile-modal.modal {
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.32), transparent 30rem),
        linear-gradient(135deg, rgba(2, 6, 23, 0.74), rgba(15, 23, 42, 0.66));
    backdrop-filter: blur(10px) saturate(1.06);
}

body.profile-modal-open {
    overflow: hidden;
}

#user-profile-modal .modal-content {
    width: min(720px, calc(100vw - 44px));
    max-width: 720px !important;
    height: min(84vh, 760px);
    max-height: min(84vh, 760px);
    overflow: hidden;
    border-radius: 22px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow:
        0 34px 90px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    display: flex;
    flex-direction: column;
}

#user-profile-modal .modal-header {
    flex: 0 0 auto;
    position: relative;
    background:
        linear-gradient(135deg, #0e0e0f 0%, #1f1d4e 54%, #3d1a74 100%);
    color: white;
    border-radius: 22px 22px 0 0;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(196, 181, 253, 0.18);
}

#user-profile-modal .modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

#user-profile-modal .modal-header .close-modal {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: white;
    font-size: 28px;
    line-height: 1;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.11);
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

#user-profile-modal .modal-header .close-modal:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

#user-profile-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.07), transparent 20rem),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

#user-profile-modal .modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#user-profile-modal .modal-body.is-scrolling {
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 181, 253, 0.6) transparent;
}

#user-profile-modal .modal-body.is-scrolling::-webkit-scrollbar {
    width: 8px;
}

#user-profile-modal .modal-body.is-scrolling::-webkit-scrollbar-track {
    background: transparent;
}

#user-profile-modal .modal-body.is-scrolling::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.9), rgba(79, 70, 229, 0.72));
}

#user-profile-modal .modal-footer {
    flex: 0 0 auto;
    padding: 18px 26px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

#user-profile-modal .modal-footer .btn,
#user-profile-modal .profile-actions .btn {
    border-radius: 12px;
    min-height: 42px;
    font-weight: 700;
}

#user-profile-modal .btn-outline-secondary,
#user-profile-modal .btn-outline-primary {
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.34);
    background: #ffffff;
}

#user-profile-modal .btn-outline-secondary:hover,
#user-profile-modal .btn-outline-primary:hover {
    color: #4c1d95;
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.08);
}

#user-profile-modal .btn-primary {
    border: 0;
    background: linear-gradient(135deg, #a855f7, #4f46e5);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.3);
}



#user-profile-modal .profile-header {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 0, rgba(124, 58, 237, 0.08), transparent 16rem),
        linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

#user-profile-modal .profile-avatar-large {
    width: 88px;
    height: 88px;
    margin-right: 22px;
    border: 3px solid rgba(216, 180, 254, 0.74);
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.32);
}

#user-profile-modal .profile-basic-info h2 {
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

#user-profile-modal .profile-department {
    color: #494f56;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(96, 165, 250, 0.38);
}

#user-profile-modal .profile-email {
    max-width: 100%;
    color: #64748b;
    word-break: break-word;
}

#user-profile-modal .profile-email:before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    color: #a78bfa;
}

#user-profile-modal .profile-section {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

#user-profile-modal .profile-section h4 {
    color: #334155;
}

#user-profile-modal .profile-section h4 i {
    color: #a855f7;
}

#user-profile-modal .detail-row {
    padding: 11px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

#user-profile-modal .detail-row:last-child {
    border-bottom: 0;
}

#user-profile-modal .detail-label {
    color: #64748b;
}

#user-profile-modal .detail-value {
    color: #0f172a;
    overflow-wrap: anywhere;
}

#user-profile-modal .manager-details,
#user-profile-modal .admin-info {
    background: #f8fafc;
    border-color: rgba(226, 232, 240, 0.9);
}

#user-profile-modal .manager-avatar {
    border-color: rgba(96, 165, 250, 0.78);
}

#user-profile-modal .manager-info-content h5 {
    color: #1e293b;
}

#user-profile-modal .manager-info-content p,
#user-profile-modal .privilege-item {
    color: #64748b;
}

#user-profile-modal .profile-actions {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

/* Responsive */
@media (max-width: 576px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .profile-avatar-large {
        margin-right: 0;
        margin-bottom: 20px;
        width: 90px;
        height: 90px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .manager-details {
        flex-direction: column;
        text-align: center;
    }
    
    .manager-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
.user-profile {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    position: relative;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--success-color);
    border: 2px solid var(--sidebar-bg);
}

.user-status.online {
    background: var(--success-color);
}

.user-info {
    flex: 1;
}

.username {
    font-size: 0.875rem;
    font-weight: 600;
    color: red;
}

.user-role {
    font-size: 0.75rem;
    color: #9ca3af;
}

.logout-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Compact Change Password modal opened from My Profile */
#change-password-modal.profile-password-modal {
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.28), transparent 28rem),
        linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.66));
    backdrop-filter: blur(10px) saturate(1.05);
}

#change-password-modal .profile-password-card {
    width: min(390px, calc(100vw - 36px)) !important;
    max-width: 390px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.34);
    animation: profilePasswordPop 0.2s ease-out;
}

#change-password-modal .modal-header {
    margin: 0;
    padding: 18px 20px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.18), transparent 14rem),
        linear-gradient(135deg, #111827 0%, #312e81 54%, #6d28d9 100%);
}

#change-password-modal .modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

#change-password-modal .modal-header h3 i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 15px;
}

#change-password-modal .modal-header .close-modal {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    opacity: 0.92;
    transition: transform 0.18s ease, background 0.18s ease;
}

#change-password-modal .modal-header .close-modal:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

#change-password-modal .modal-body {
    padding: 20px 22px 8px;
    background: #ffffff;
}

#change-password-modal .form-group {
    margin-bottom: 14px;
}

#change-password-modal .form-label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

#change-password-modal .form-control {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 13px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#change-password-modal .form-control:focus {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
    outline: 0;
}

#change-password-modal .form-text {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

#change-password-modal .status-message {
    margin: 4px 0 0;
    font-size: 12px;
}

#change-password-modal .modal-footer {
    margin: 0;
    padding: 14px 22px 20px;
    border: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #ffffff;
}

#change-password-modal .modal-footer .btn {
    min-height: 40px;
    border-radius: 12px;
    padding: 9px 15px;
    font-weight: 700;
}

#change-password-modal .btn-outline-secondary {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: #f8fafc;
    color: #475569;
}

#change-password-modal .btn-outline-secondary:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.07);
    color: #5b21b6;
}

#change-password-modal .btn-primary {
    border: 0;
    background: linear-gradient(135deg, #9333ea, #4f46e5);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.26);
}

#change-password-modal .btn-primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

@keyframes profilePasswordPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    #change-password-modal .profile-password-card {
        width: calc(100vw - 24px) !important;
        border-radius: 18px;
    }

    #change-password-modal .modal-header,
    #change-password-modal .modal-body,
    #change-password-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    #change-password-modal .modal-footer {
        flex-direction: column-reverse;
    }

    #change-password-modal .modal-footer .btn {
        width: 100%;
    }
}
