
/* SIDEBAR RESPONSIVE CORE - Salary Colors */
.salary-sidebar {
    background: linear-gradient(180deg, #1e1b4b 0%, #2e1065 100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s ease;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Mobile styles */
@media (max-width: 768px) {
    .salary-sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 2px 0 30px rgba(0,0,0,0.3);
    }
    .salary-sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 35;
        display: none;
    }
    .sidebar-backdrop.active {
        display: block;
    }
}

@media (min-width: 769px) {
    .salary-sidebar {
        transform: translateX(0);
        width: 280px;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Custom scroll */
.salary-sidebar::-webkit-scrollbar {
    width: 4px;
}
.salary-sidebar::-webkit-scrollbar-track {
    background: #2d2a5e;
}
.salary-sidebar::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 20px;
}

/* Sidebar elements */
.sidebar-header {
    padding: 1.75rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}
.sidebar-logo i {
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.8rem;
}
.sidebar-tagline {
    font-size: 0.7rem;
    color: #a5b4fc;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.user-info-card {
    background: rgba(79, 70, 229, 0.2);
    margin: 1rem 1rem 0.5rem 1rem;
    border-radius: 1rem;
    padding: 0.85rem;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(167, 139, 250, 0.3);
}
.user-avatar i {
    font-size: 2.5rem;
    color: #c4b5fd;
}
.user-details .user-name {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}
.user-role {
    font-size: 0.7rem;
    background: #4338ca;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.2rem 0.6rem;
    border-radius: 40px;
    margin-top: 4px;
    color: #e0e7ff;
}

/* Role toggle */
.role-toggle-container {
    margin: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 0.7rem 1rem;
}
.role-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #c7d2fe;
    margin-bottom: 8px;
}
.role-toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.role-toggle-track {
    width: 52px;
    height: 26px;
    background: #475569;
    border-radius: 40px;
    position: relative;
    transition: 0.2s;
}
.role-toggle-track.admin-mode {
    background: #8b5cf6;
}
.role-toggle-track.director-mode {
    background: #f59e0b;
}
.role-toggle-thumb {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    transition: 0.2s;
}
.role-toggle-track.admin-mode .role-toggle-thumb {
    left: 27px;
}
.role-toggle-track.director-mode .role-toggle-thumb {
    left: 3px;
}
.role-toggle-status {
    font-size: 0.75rem;
    font-weight: 500;
    background: #1e1b4b;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    color: #f1f5f9;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.75rem 1rem;
}
.nav {
    list-style: none;
}
.nav-item {
    margin-bottom: 4px;
}
.nav-link, .dropdown-toggle-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    color: #e2e8f0;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.nav-link i, .dropdown-toggle-custom i:first-child {
    width: 24px;
    font-size: 1.1rem;
}
.nav-link:hover, .dropdown-toggle-custom:hover {
    background: rgba(139, 92, 246, 0.25);
    color: white;
}
.nav-link.active {
    background: linear-gradient(95deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}
.submenu {
    padding-left: 2rem;
    margin-top: 4px;
    display: none;
}
.submenu-link {
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
}
.chevron-icon {
    margin-left: auto;
    transition: transform 0.2s;
}
.nav-badge.new-badge {
    background: #f97316;
    font-size: 0.6rem;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    margin-left: auto;
}
.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
}

/* Footer */
.sidebar-footer {
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1rem 1rem 1.2rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #a5b4fc;
}

/* Mobile menu button */
.mobile-menu-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    background: #7c3aed;
    width: 50px;
    height: 50px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
}


/* ========================================
   MODERN MAIN CONTENT STYLES
   ======================================== */

/* Main Content Container */
.salary-main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8fafc 100%);
}

@media (min-width: 769px) {
    .salary-main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

@media (max-width: 768px) {
    .salary-main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Modern Header */
.modern-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.header-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
}

.header-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats Badge */
.stats-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

.stats-badge i {
    font-size: 0.875rem;
}

/* Role Card */
.role-card {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.role-card-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-card-icon i {
    font-size: 0.875rem;
    color: white;
}

.role-card-content {
    display: flex;
    flex-direction: column;
}

.role-label {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

/* Modern Toggle Button */
.role-toggle-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 40px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.role-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.toggle-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.toggle-inner i {
    transition: transform 0.3s ease;
}

.role-toggle-btn:hover .toggle-inner i {
    transform: rotate(180deg);
}

.toggle-role-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 40px;
    font-weight: 700;
}

/* Breadcrumb Wrapper */
.breadcrumb-wrapper {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #8b5cf6;
}

.breadcrumb-separator {
    color: #cbd5e1;
}

.breadcrumb-current {
    color: #1e293b;
    font-weight: 500;
}

.datetime-display {
    font-size: 0.75rem;
    color: #64748b;
    font-family: monospace;
}

/* Content Area */
.content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Enhanced Alert Messages */
.alert-success,
.alert-error {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
}

.alert-content {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-success .alert-icon {
    background: #10b981;
}

.alert-error .alert-icon {
    background: #ef4444;
}

.alert-icon i {
    color: white;
    font-size: 0.875rem;
}

.alert-message {
    flex: 1;
}

.alert-message strong {
    font-weight: 600;
}

.alert-success .alert-message {
    color: #065f46;
}

.alert-error .alert-message {
    color: #991b1b;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.alert-success .alert-close {
    color: #065f46;
}

.alert-error .alert-close {
    color: #991b1b;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Page Content */
.page-content {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-left {
        justify-content: space-between;
    }
    
    .header-right {
        justify-content: space-between;
    }
    
    .breadcrumb-wrapper {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .stats-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.25rem;
    }
    
    .header-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .role-card {
        padding: 0.375rem 0.75rem;
    }
    
    .role-toggle-btn {
        padding: 0.375rem 1rem;
    }
    
    .toggle-inner {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
}
/* Main content adjustment */
.salary-main-content {
    transition: margin-left 0.2s ease;
    min-height: 100vh;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .salary-main-content {
        margin-left: 0 !important;
        width: 100%;
    }
}

@media (min-width: 769px) {
    .salary-main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

/* Animations */
.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}