/* MN HRIS - Main Styles */
:root {
    /* 🎨 Blue Enterprise Design System */
    --primary-blue: #2563EB;
    --secondary-blue: #1D4ED8;
    --accent-blue: #3B82F6;
    --bg-primary: #F4F7FB;
    --glass-surface: rgba(255,255,255,0.65);
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border-glass: rgba(255,255,255,0.3);
    
    /* Legacy Variables (for compatibility) */
    --primary-color: var(--primary-blue);
    --primary-dark: var(--secondary-blue);
    --secondary-color: var(--text-secondary);
    --success-color: #22C55E;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-color: var(--bg-primary);
    --card-bg: var(--glass-surface);
    --text-dark: var(--text-primary);
    --text-light: var(--text-secondary);
    --border-color: var(--border-glass);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shadow-lg: 0 20px 60px rgba(31, 38, 135, 0.25);
    
    /* Status Colors */
    --status-active: #22C55E;
    --status-resigned: #9CA3AF;
    --status-retired: #8B5CF6;
    --status-terminated: #EF4444;
    
    /* Spacing Scale */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #F4F7FB 0%, #E2E8F0 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation - Glassmorphism */
.sidebar {
    width: 260px;
    background: var(--glass-surface);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 9999;
    box-shadow: var(--shadow);
}

.logo {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    z-index: 10000;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo span {
    color: var(--text-light);
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    display: block;
    margin: 0 auto 4px;
}

.nav-menu {
    list-style: none;
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    margin: 2px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 2px 8px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.nav-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header - Floating Glass */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass-surface);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-glass);
    position: relative;
    z-index: 99997;
}

.header h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--danger-color);
    background: #fee2e2;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #fecaca;
    color: #991b1b;
}

/* Cards - Glassmorphism */
.card {
    background: var(--glass-surface);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Stats Grid - Glassmorphism Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--glass-surface);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-icon:hover {
    transform: scale(1.1);
}

.stat-icon.blue { 
    background: linear-gradient(135deg, #dbeafe, #bfdbfe); 
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.stat-icon.green { 
    background: linear-gradient(135deg, #d1fae5, #a7f3d0); 
    color: var(--success-color);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}
.stat-icon.orange { 
    background: linear-gradient(135deg, #fef3c7, #fde68a); 
    color: var(--warning-color);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.stat-icon.red { 
    background: linear-gradient(135deg, #fee2e2, #fecaca); 
    color: var(--danger-color);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    animation: countUp 0.6s ease-out;
}

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

.stat-content p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Buttons - Modern Enterprise */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* Tables - Modern Card Style */
.table-container {
    overflow-x: auto;
    background: var(--glass-surface);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-glass);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
    position: sticky;
    top: 0;
    z-index: 10;
}

th, td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(37, 99, 235, 0.02);
}

td {
    font-size: 0.875rem;
}

tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Search and Filter */
.search-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Modal - Enterprise Glass Design (Static) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-glass);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.modal-close {
    background: var(--glass-surface);
    border: 1px solid var(--border-glass);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--danger-color);
    transform: scale(1.1);
}

.modal-body {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.3);
}

.modal-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   Mobile-First Approach for All Devices
   ============================================ */

/* Extra Small Devices (Phones: 320px - 575px) */
@media (max-width: 575px) {
    /* App Container Layout */
    .app-container {
        flex-direction: column;
    }

    /* Sidebar - Mobile Hamburger Menu */
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 99999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 20px rgba(0,0,0,0.2);
    }

    .sidebar.active {
        left: 0;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 99998;
        background: var(--primary-blue);
        color: white;
        border: none;
        border-radius: var(--radius-sm);
        padding: 12px;
        cursor: pointer;
        font-size: 1.2rem;
        box-shadow: var(--shadow);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: var(--secondary-blue);
        transform: scale(1.05);
    }

    .mobile-menu-toggle.active {
        background: var(--danger-color);
    }

    /* Overlay for mobile menu */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99997;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Main Content - Mobile */
    .main-content {
        margin-left: 0;
        padding: 80px 15px 20px;
        width: 100%;
    }

    /* Header - Mobile */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-bottom: 20px;
    }

    .header h2 {
        font-size: 1.25rem;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* Stats Grid - Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

    /* Cards - Mobile */
    .card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-title {
        font-size: 1rem;
    }

    /* Tables - Mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
        margin-bottom: 20px;
    }

    table {
        min-width: 600px;
        font-size: 0.75rem;
    }

    th, td {
        padding: 8px 6px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Mobile-specific table enhancements */
    .table-container::-webkit-scrollbar {
        height: 6px;
    }

    .table-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

    .table-container::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    /* Mobile table scroll indicator */
    .table-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .table-container.scrolled::after {
        opacity: 0;
    }

    /* Search Filter - Mobile */
    .search-filter {
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        font-size: 0.875rem;
        padding: 12px 15px;
    }

    /* Buttons - Mobile */
    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    .btn-sm {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    /* Modal - Mobile */
    .modal {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Forms - Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 0.875rem;
        padding: 12px 15px;
        border-radius: var(--radius-sm);
    }

    /* Enhanced mobile form styling */
    .form-group {
        margin-bottom: 15px;
    }

    .form-label {
        font-size: 0.875rem;
        margin-bottom: 6px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        outline: none;
    }

    /* Mobile form sections */
    .form-section {
        margin-bottom: 25px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: var(--radius-md);
        border: 1px solid var(--border-glass);
    }

    .form-section-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-blue);
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--primary-blue);
    }

    /* Mobile file upload styling */
    .image-upload-container {
        text-align: center;
        padding: 15px;
    }

    .primary-image-preview {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid var(--border-glass);
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--glass-surface);
    }

    .image-placeholder {
        text-align: center;
        color: var(--text-light);
        font-size: 0.8rem;
    }

    .image-placeholder i {
        font-size: 2rem;
        margin-bottom: 5px;
        display: block;
    }

    /* Mobile button styling */
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
        margin-bottom: 10px;
        transition: all 0.3s ease;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    /* Mobile modal form improvements */
    .modal-body .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .modal-body .form-row {
        gap: 12px;
    }

    /* Mobile dropdown styling */
    .dropdown {
        width: 100%;
    }

    .dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-content {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        margin-top: 5px;
    }

    /* Notification Dropdown - Mobile */
    .notification-dropdown {
        width: calc(100vw - 30px);
        right: 15px;
        left: 15px;
    }

    /* Quick Actions - Mobile */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .action-card {
        padding: 20px 15px;
        min-height: 100px;
    }

    .action-card i {
        font-size: 2rem;
    }

    .action-card span {
        font-size: 0.75rem;
    }

    /* Department Grid - Mobile */
    .department-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Pagination - Mobile */
    .pagination {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }

    /* Activity List - Mobile */
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .activity-icon {
        margin-right: 0;
    }

    /* User Info - Mobile */
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .logout-btn {
        padding: 10px 15px;
        font-size: 0.875rem;
    }

    /* Empty State - Mobile */
    .empty-state {
        padding: 40px 15px;
    }

    .empty-state i {
        font-size: 2.5rem;
    }

    .empty-state h3 {
        font-size: 1.1rem;
    }

    .empty-state p {
        font-size: 0.875rem;
    }

    /* Mobile Card View for Tables */
    .mobile-card-view {
        display: none;
    }

    .mobile-card-item {
        background: var(--glass-surface);
        border-radius: var(--radius-lg);
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid var(--border-glass);
        box-shadow: var(--shadow);
        transition: all 0.3s ease;
    }

    .mobile-card-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-glass);
    }

    .mobile-card-title {
        font-weight: 600;
        color: var(--primary-blue);
        font-size: 0.9rem;
    }

    .mobile-card-status {
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 500;
    }

    .mobile-card-content {
        display: grid;
        gap: 8px;
    }

    .mobile-card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
    }

    .mobile-card-label {
        color: var(--text-light);
        font-weight: 500;
        min-width: 80px;
    }

    .mobile-card-value {
        color: var(--text-primary);
        text-align: right;
        flex: 1;
    }

    .mobile-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--border-glass);
    }

    .mobile-card-actions .btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

/* Small Devices (Portrait Tablets: 576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    /* Sidebar - Tablet Portrait */
    .sidebar {
        width: 280px;
        position: fixed;
        left: -280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 99999;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }

    /* Mobile Menu Toggle - Tablet */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 99998;
        background: var(--primary-blue);
        color: white;
        border: none;
        border-radius: var(--radius-sm);
        padding: 12px;
        cursor: pointer;
        font-size: 1.2rem;
        box-shadow: var(--shadow);
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99997;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Stats Grid - Tablet Portrait */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Quick Actions - Tablet Portrait */
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Department Grid - Tablet Portrait */
    .department-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Header - Tablet Portrait */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    /* Forms - Tablet Portrait */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Tables - Tablet Portrait */
    th, td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    /* Modal - Tablet Portrait */
    .modal {
        width: 90%;
        max-width: 500px;
    }
}

/* Medium Devices (Landscape Tablets: 768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Sidebar - Tablet Landscape */
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        padding: 20px 15px;
    }

    /* Hide mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-overlay {
        display: none !important;
    }

    /* Stats Grid - Tablet Landscape */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Quick Actions - Tablet Landscape */
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Department Grid - Tablet Landscape */
    .department-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Header - Tablet Landscape */
    .header {
        flex-direction: row;
        padding: 20px;
    }

    .header h2 {
        font-size: 1.6rem;
    }

    /* Forms - Tablet Landscape */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Tables - Tablet Landscape */
    th, td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    /* Modal - Tablet Landscape */
    .modal {
        width: 85%;
        max-width: 600px;
    }

    /* Notification Dropdown - Tablet Landscape */
    .notification-dropdown {
        width: 380px;
    }
}

/* Large Devices (Desktops: 992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Sidebar - Desktop */
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
        padding: 20px;
    }

    /* Hide mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-overlay {
        display: none !important;
    }

    /* Stats Grid - Desktop */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Quick Actions - Desktop */
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Department Grid - Desktop */
    .department-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Forms - Desktop */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Tables - Desktop */
    th, td {
        padding: 14px 12px;
        font-size: 0.875rem;
    }

    /* Modal - Desktop */
    .modal {
        width: 80%;
        max-width: 650px;
    }
}

/* Extra Large Devices (Large Desktops: 1200px and up) */
@media (min-width: 1200px) {
    /* Sidebar - Large Desktop */
    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-left: 260px;
        padding: 20px 25px;
        max-width: 1400px;
    }

    /* Hide mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-overlay {
        display: none !important;
    }

    /* Stats Grid - Large Desktop */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* Quick Actions - Large Desktop */
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    /* Department Grid - Large Desktop */
    .department-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    /* Forms - Large Desktop */
    .form-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Tables - Large Desktop */
    th, td {
        padding: 16px 14px;
        font-size: 0.875rem;
    }

    /* Modal - Large Desktop */
    .modal {
        width: 75%;
        max-width: 700px;
    }

    /* Header - Large Desktop */
    .header {
        padding: 24px 32px;
    }

    .header h2 {
        font-size: 1.8rem;
    }

    /* Cards - Large Desktop */
    .card {
        padding: 32px;
    }
}

/* Ultra Wide Devices (1440px and up) */
@media (min-width: 1440px) {
    .main-content {
        max-width: 1600px;
        margin-left: 260px;
        padding: 20px 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .department-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Special Cases and Utilities */
@media (max-width: 480px) {
    /* Extra small phone optimizations */
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }

    .stat-icon {
        margin-bottom: 8px;
    }

    .action-card {
        padding: 15px 10px;
        min-height: 80px;
    }

    .action-card i {
        font-size: 1.5rem;
    }

    .action-card span {
        font-size: 0.7rem;
    }

    .notification-dropdown {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
    }

    .modal {
        width: 98%;
        margin: 1%;
    }

    .btn {
        font-size: 0.8rem;
        padding: 10px 15px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .mobile-overlay,
    .notification-container,
    .logout-btn,
    .pagination,
    .btn:not(.btn-print) {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .table-container {
        overflow-x: visible !important;
    }

    table {
        min-width: auto !important;
    }

    .modal {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .modal-overlay {
        display: block !important;
        position: static !important;
        background: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .stat-icon,
    .activity-icon,
    .notification-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* This is a placeholder for future dark mode implementation */
    /* Currently the system uses light theme only */
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        height: 100vh;
        overflow-y: auto;
    }

    .modal {
        max-height: 95vh;
        overflow-y: auto;
    }

    .mobile-menu-toggle {
        top: 10px;
        left: 10px;
        padding: 8px;
        font-size: 1rem;
    }

    .header {
        padding: 10px 15px;
        margin-bottom: 10px;
    }

    .header h2 {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 60px 15px 15px;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    min-width: 40px;
    padding: 10px 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border-radius: 6px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8fafc;
}

.dropdown-content a.delete-option {
    color: var(--danger-color);
    border-top: 1px solid var(--border-color);
}

.dropdown-content a.delete-option:hover {
    background: #fef2f2;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Table checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Current Date Display */
#current-date {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

/* Notification Bell Styles */
.notification-container {
    position: relative;
    z-index: 99998;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-dark);
    padding: 8px;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.notification-btn.has-notifications {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.notification-badge.show {
    display: block;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 420px;
    max-height: 550px;
    z-index: 9999;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.notification-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.notification-tabs {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.notif-tab {
    background: #f1f5f9;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.notif-tab:hover {
    background: #e2e8f0;
}

.notif-tab.active {
    background: var(--primary-color);
    color: white;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    scroll-behavior: smooth;
}

/* Custom scrollbar for notification list */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-icon.birthday {
    background: #fce7f3;
}

.notification-icon.medical {
    background: #fee2e2;
    color: #991b1b;
}

.notification-icon.training {
    background: #fef3c7;
    color: #92400e;
}

.notification-icon.promotion {
    background: #d1fae5;
    color: #065f46;
}

.notification-icon.anniversary {
    background: #fef3c7;
    color: #92400e;
}

.notification-icon.medical-expired,
.notification-icon.training-expired {
    background: #fee2e2;
    color: #dc2626;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 2px;
}

.notification-details {
    font-size: 0.75rem;
    color: var(--text-light);
}

.notification-priority {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.notification-priority.high {
    background: #fee2e2;
    color: #991b1b;
}

.notification-priority.medium {
    background: #fef3c7;
    color: #92400e;
}

.notification-priority.normal {
    background: #e2e8f0;
    color: #475569;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.empty-notifications {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-notifications i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.empty-notifications p {
    font-size: 0.9rem;
}

/* ============================================
   MICRO-INTERACTIONS & ANIMATIONS
   Enterprise HR System - Premium UX
   ============================================ */

/* Page Fade Transition */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: pageFadeIn 0.6s ease-out;
}

/* Hover Lift Animation */
@keyframes hoverLift {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(-2px);
    }
}

.card:hover,
.stat-card:hover,
.action-card:hover,
.department-item:hover {
    animation: hoverLift 0.3s ease-out;
}

/* Button Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Dropdown Smooth Animation */
@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-content {
    animation: dropdownSlideDown 0.3s ease-out;
}

/* Modal Scale Entrance */
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
    }
}

.modal {
    animation: modalScaleIn 0.4s ease-out;
}

/* Sidebar Expand/Collapse Animation */
@keyframes sidebarSlide {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.sidebar {
    animation: sidebarSlide 0.5s ease-out;
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Success Animation */
@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.success {
    animation: successBounce 0.6s ease-out;
}

/* Error Shake Animation */
@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.error {
    animation: errorShake 0.5s ease-out;
}

/* Table Row Hover Effect */
@keyframes rowHighlight {
    from {
        background-color: transparent;
    }
    to {
        background-color: rgba(37, 99, 235, 0.05);
    }
}

tr:hover {
    animation: rowHighlight 0.2s ease-out;
}

/* Badge Pop Animation */
@keyframes badgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.badge,
.status-badge,
.dept-badge {
    animation: badgePop 0.3s ease-out;
}

/* Notification Badge Pulse */
@keyframes notificationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notification-badge.show {
    animation: notificationPulse 2s infinite;
}

/* Search Input Focus Effect */
@keyframes searchGlow {
    from {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }
    to {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

.search-input:focus {
    animation: searchGlow 0.4s ease-out;
}

/* Card Flip Animation (for future use) */
@keyframes cardFlip {
    from {
        transform: rotateY(0);
    }
    to {
        transform: rotateY(180deg);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 2px solid var(--border-glass);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Progress Bar Animation */
@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: var(--progress-percent, 0%);
    }
}

.progress-bar {
    animation: progressFill 1s ease-out;
}

/* Tooltip Animation */
@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip {
    animation: tooltipFade 0.2s ease-out;
}

/* ============================================
   ENHANCED INTERACTIVE ELEMENTS
   ============================================ */

/* Interactive Cards */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.2);
}

.interactive-card:active {
    transform: translateY(-4px) scale(1.01);
    transition-duration: 0.1s;
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

/* Floating Labels */
.floating-label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: var(--text-secondary);
}

.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
    top: -8px;
    left: 8px;
    font-size: 0.75rem;
    color: var(--primary-blue);
    background: var(--glass-surface);
    padding: 0 4px;
}

/* Skeleton Loading */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--border-glass) 25%, rgba(37, 99, 235, 0.1) 50%, var(--border-glass) 75%);
    background-size: 200px 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --glass-surface: rgba(30, 41, 59, 0.65);
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-glass: rgba(255, 255, 255, 0.1);
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus Visible */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0066cc;
        --text-primary: #000000;
        --border-glass: #000000;
    }
    
    .glass-surface {
        background: #ffffff;
        backdrop-filter: none;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU Acceleration */
.card,
.stat-card,
.modal,
.btn,
.nav-link {
    transform: translateZ(0);
    will-change: transform;
}

/* Reduced Motion for Performance */
@media (max-width: 768px) {
    .card:hover,
    .stat-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
