:root {
    --sidebar-width: 260px;
    --primary-color: #2563eb;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f1f5f9;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.wrapper { display: flex; width: 100%; min-height: 100vh; }

.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #fff;
    transition: margin-left 0.3s;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.25rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h5 { margin: 0; font-weight: 600; }
.sidebar-header small { opacity: 0.7; font-size: 0.75rem; }

.sidebar .components { padding: 0.5rem 0; }
.sidebar .components li a {
    padding: 0.65rem 1.25rem;
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar .components li a:hover,
.sidebar .components li.active a {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar .components li a i { margin-right: 0.5rem; width: 20px; }

.menu-label {
    padding: 0.75rem 1.25rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.content {
    width: 100%;
    min-height: 100vh;
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-card .stat-label { color: #64748b; font-size: 0.85rem; }

.card { border: none; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.table th { font-weight: 600; font-size: 0.85rem; color: #475569; white-space: nowrap; }
.table td { vertical-align: middle; font-size: 0.9rem; }

.employee-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.employee-photo-lg {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.salary-slip {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.salary-slip .company-header { text-align: center; border-bottom: 2px solid #2563eb; padding-bottom: 1rem; margin-bottom: 1.5rem; }

@media print {
    .sidebar, .navbar, .no-print { display: none !important; }
    .content { margin: 0 !important; padding: 0 !important; }
    body { background: #fff; }
}

@media (max-width: 768px) {
    .sidebar { margin-left: calc(-1 * var(--sidebar-width)); position: fixed; z-index: 1000; }
    .sidebar.active { margin-left: 0; }
}

.attendance-grid input, .attendance-grid select { font-size: 0.85rem; }
.btn-action { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
