/* AtmosHR - Professional HR System Styles */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e2a3a;
    --sidebar-text: #c8d6e5;
    --sidebar-hover: #2d3f53;
    --sidebar-active: #3d8ef8;
    --topbar-height: 60px;
    --topbar-bg: #ffffff;
    --accent: #3d8ef8;
    --accent-dark: #2d7ae8;
    --body-bg: #f4f6f9;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    margin: 0; padding: 0;
}

.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-width); height: 100vh;
    background: var(--sidebar-bg);
    overflow-y: auto; overflow-x: hidden;
    z-index: 1000; display: flex; flex-direction: column;
}

.sidebar-brand {
    padding: 0 20px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: var(--topbar-height);
}

.sidebar-brand .brand-logo {
    width: 36px; height: 36px; background: var(--accent);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 18px;
    font-weight: 700; flex-shrink: 0;
}

.sidebar-brand .brand-name {
    color: #fff; font-size: 18px; font-weight: 700;
}

.sidebar-nav { padding: 16px 0; flex: 1; }

.nav-section-label {
    padding: 12px 20px 6px; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(200,214,229,0.45);
}

.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; color: var(--sidebar-text);
    text-decoration: none; font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.sidebar-nav .nav-link:hover { background: var(--sidebar-hover); color: #fff; }

.sidebar-nav .nav-link.active {
    background: rgba(61,142,248,0.2); color: var(--accent);
    border-right: 3px solid var(--accent);
}

.sidebar-nav .nav-link .nav-icon {
    font-size: 16px; width: 20px; text-align: center; flex-shrink: 0;
}

.topbar {
    position: fixed; top: 0; left: var(--sidebar-width); right: 0;
    height: var(--topbar-height); background: var(--topbar-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; padding: 0 24px;
    z-index: 999; gap: 16px;
}

.topbar-title { font-size: 16px; font-weight: 600; margin: 0; }
.topbar-spacer { flex: 1; }

.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }

.topbar-avatar {
    width: 34px; height: 34px; background: var(--accent);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 13px; font-weight: 600;
}

.main-content { margin-left: var(--sidebar-width); padding-top: var(--topbar-height); min-height: 100vh; }
.page-content { padding: 24px; }

.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}

.page-header h1 { font-size: 22px; font-weight: 700; margin: 0; }

.card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border-color);
    background: transparent; font-weight: 600; font-size: 14px;
}

.card-body { padding: 20px; }

.stat-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 20px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}

.stat-icon.blue { background: rgba(61,142,248,0.12); color: #3d8ef8; }
.stat-icon.green { background: rgba(40,167,69,0.12); color: #28a745; }
.stat-icon.orange { background: rgba(255,193,7,0.12); color: #e67e00; }
.stat-icon.red { background: rgba(220,53,69,0.12); color: #dc3545; }
.stat-icon.purple { background: rgba(102,51,153,0.12); color: #663399; }
.stat-icon.teal { background: rgba(23,162,184,0.12); color: #17a2b8; }

.stat-info .stat-value { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-info .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.table { font-size: 14px; }
.table th {
    font-weight: 600; color: var(--text-muted); font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom-width: 1px; padding: 12px 16px;
}
.table td { padding: 12px 16px; vertical-align: middle; }
.table tbody tr:hover { background: rgba(0,0,0,0.02); }

.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #2d7ae8; border-color: #2d7ae8; }

.badge { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 4px; }

.form-label { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-control, .form-select { border: 1px solid var(--border-color); border-radius: 6px; font-size: 14px; padding: 9px 12px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,142,248,0.15); }

.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e2a3a 0%, #2d3f53 100%);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}

.auth-card {
    background: white; border-radius: 16px; padding: 40px;
    width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.auth-logo .logo-icon {
    width: 48px; height: 48px; background: var(--accent); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 22px; font-weight: 700;
}
.auth-logo .logo-text { font-size: 24px; font-weight: 700; }

@media (max-width: 768px) {
    .sidebar { width: 0; overflow: hidden; }
    .main-content { margin-left: 0; }
    .topbar { left: 0; }
}
