@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --darker-color: #0f172a;
    --light-color: #f1f5f9;
    --sidebar-dark: #1e293b;
    --sidebar-hover: #334155;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 48px;
    position: relative;
    z-index: 10;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.login-card .logo-icon i {
    font-size: 32px;
    color: white;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.login-card .subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 32px;
    font-size: 14px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-dark) 0%, var(--darker-color) 100%);
    color: white;
    z-index: 999;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-brand {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand .brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.sidebar-brand .brand-icon i {
    font-size: 22px;
    color: white;
}

.sidebar-brand h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-brand small {
    font-size: 11px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 20px 12px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.3), rgba(79, 70, 229, 0.1));
    color: white;
}

.sidebar-menu a.active::before {
    height: 24px;
}

.sidebar-menu a i {
    width: 22px;
    font-size: 18px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover i {
    transform: scale(1.1);
}

.sidebar-menu a .badge {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-footer .user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.sidebar-footer .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.sidebar-footer .user-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.sidebar-footer .user-info span {
    font-size: 11px;
    opacity: 0.6;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Topbar Styles */
.topbar {
    background: white;
    padding: 0 32px;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar .page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.topbar .search-box {
    position: relative;
    width: 320px;
}

.topbar .search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--light-color);
}

.topbar .search-box input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.topbar .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.topbar .icon-btn:hover {
    background: var(--primary-color);
    color: white;
}

.topbar .icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.topbar .user-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    background: var(--light-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.topbar .user-dropdown:hover {
    background: var(--border-color);
}

.topbar .user-dropdown .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.topbar .user-dropdown .user-info {
    text-align: left;
}

.topbar .user-dropdown .user-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
}

.topbar .user-dropdown .user-info span {
    font-size: 11px;
    color: var(--secondary-color);
}

.topbar .user-dropdown i {
    color: var(--secondary-color);
    margin-left: 4px;
}

/* Page Content */
.page-content {
    padding: 32px;
    background: var(--light-color);
    min-height: calc(100vh - 72px);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

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

.card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h5 i {
    color: var(--primary-color);
}

.card-body {
    padding: 24px;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

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

.stats-card.success::before { background: var(--success-color); }
.stats-card.danger::before { background: var(--danger-color); }
.stats-card.warning::before { background: var(--warning-color); }
.stats-card.info::before { background: var(--info-color); }

.stats-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stats-card .card-icon.primary { background: rgba(79, 70, 229, 0.1); color: var(--primary-color); }
.stats-card .card-icon.success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.stats-card .card-icon.danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.stats-card .card-icon.warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.stats-card .card-icon.info { background: rgba(6, 182, 212, 0.1); color: var(--info-color); }

.stats-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stats-card .stat-label {
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 500;
}

.stats-card .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    margin-top: 8px;
}

.stats-card .stat-trend.up { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.stats-card .stat-trend.down { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }

/* Clock Widget */
.clock-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.clock-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.clock-widget::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.clock-widget .time {
    font-size: 72px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.clock-widget .date {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.clock-widget .greeting {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.clock-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.clock-buttons button {
    padding: 16px 48px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clock-buttons .clock-in {
    background: var(--success-color);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.clock-buttons .clock-out {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.clock-buttons button:hover {
    transform: translateY(-3px);
}

.clock-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--light-color);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    border: none;
    position: sticky;
    top: 0;
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(79, 70, 229, 0.02);
}

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

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.badge-info { background: rgba(6, 182, 212, 0.1); color: var(--info-color); }
.badge-primary { background: rgba(79, 70, 229, 0.1); color: var(--primary-color); }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h5 i {
    color: var(--primary-color);
}

.modal-header .btn-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--light-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    background: var(--danger-color);
    color: white;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Employee Avatar */
.employee-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s ease;
    min-width: 300px;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success { border-left: 4px solid var(--success-color); }
.toast.error { border-left: 4px solid var(--danger-color); }
.toast.warning { border-left: 4px solid var(--warning-color); }
.toast.info { border-left: 4px solid var(--info-color); }

.toast i {
    font-size: 20px;
}

.toast.success i { color: var(--success-color); }
.toast.error i { color: var(--danger-color); }
.toast.warning i { color: var(--warning-color); }
.toast.info i { color: var(--info-color); }

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    padding: 20px;
}

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

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-state-icon i {
    font-size: 32px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--dark-color);
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 8px;
}

.action-btns .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Search Filter */
.search-filter {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-filter input,
.search-filter select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-filter input {
    flex: 1;
    min-width: 200px;
}

.search-filter input:focus,
.search-filter select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-280px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar .search-box {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 20px;
    }
    
    .stats-card .stat-value {
        font-size: 24px;
    }
    
    .clock-widget .time {
        font-size: 48px;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 360px;
    max-height: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.notification-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.notification-header h6 {
    font-weight: 600;
    margin: 0;
}

.notification-header .btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
}

.notification-header .btn-link:hover {
    text-decoration: underline;
}

.notification-body {
    max-height: 340px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--dark-color);
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:hover {
    background: var(--light-color);
}

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

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.notification-icon.primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.notification-content p {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
}

.notification-content small {
    color: var(--secondary-color);
    font-size: 11px;
}

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

.notification-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 13px;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--light-color);
}

.search-result-item .result-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-item .result-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 2px;
}

.search-result-item .result-info span {
    font-size: 11px;
    color: var(--secondary-color);
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-280px);
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.active ~ .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    .notification-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}
