:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #182033;
    --muted: #667085;
    --line: #e4e7ec;
    --brand: #6d3df5;
    --brand-dark: #5526d8;
    --brand-soft: #eee9ff;
    --success: #18794e;
    --success-soft: #e8f7ef;
    --danger: #b42318;
    --danger-soft: #feeceb;
    --warning: #9a6700;
    --warning-soft: #fff5d6;
    --shadow: 0 18px 50px rgba(28, 39, 60, .08);
    --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow-container { width: min(820px, calc(100% - 32px)); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(228,231,236,.9); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--brand), #8c6bff); color: white; font-weight: 900; letter-spacing: -.03em; box-shadow: 0 10px 28px rgba(109,61,245,.28); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { font-size: 12px; color: var(--muted); margin-top: -2px; }
.main-nav, .public-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a, .public-nav > a:not(.button) { color: #475467; font-weight: 650; padding: 10px 12px; border-radius: 11px; }
.main-nav a:hover, .main-nav a.active { background: var(--brand-soft); color: var(--brand-dark); }
.main-nav .nav-logout { color: var(--danger); }
.mobile-menu-button { display: none; border: 0; background: var(--surface-soft); width: 42px; height: 42px; border-radius: 12px; font-size: 22px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border: 1px solid var(--brand); border-radius: 12px; background: var(--brand); color: white; font-weight: 800; box-shadow: 0 9px 24px rgba(109,61,245,.18); }
.button:hover { color: white; background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.button-secondary { background: white; color: var(--brand); box-shadow: none; }
.button-secondary:hover { color: var(--brand-dark); background: var(--brand-soft); }
.button-small { min-height: 38px; padding: 8px 14px; }
.button-full { width: 100%; }
.button-link { padding: 0; border: 0; background: transparent; color: var(--brand); font-weight: 750; }
.danger-link { color: var(--danger); }

.hero { padding: 88px 0 74px; background: radial-gradient(circle at 80% 10%, rgba(136,105,255,.18), transparent 34%), linear-gradient(180deg, #fff, #f7f5ff 80%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.03em; }
h1 { font-size: clamp(38px, 6vw, 66px); margin-top: 12px; }
h2 { font-size: clamp(27px, 3.5vw, 40px); }
h3 { font-size: 20px; }
.hero-copy { max-width: 690px; font-size: 19px; color: #475467; margin: 24px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.small-muted { color: var(--muted); font-size: 13px; margin-top: 16px; }
.hero-card { background: rgba(255,255,255,.94); border: 1px solid rgba(109,61,245,.14); border-radius: 28px; padding: 24px; box-shadow: 0 30px 80px rgba(68,45,130,.16); transform: rotate(1.5deg); }
.hero-card-top, .mock-row, .mock-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-card-top { padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 750; }
.status-dot { color: var(--success); background: var(--success-soft); padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.mock-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mock-total { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--brand-soft); }
.mock-total span { color: #5d4d92; }

.section { padding: 78px 0; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2 { margin-top: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--brand-soft); font-size: 23px; }
.section-cta { padding-top: 18px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px; border-radius: 26px; color: white; background: linear-gradient(135deg, #1c1f2a, #3d286f); box-shadow: var(--shadow); }
.cta-box p { margin-bottom: 0; color: #ded7f7; }
.cta-box .eyebrow { color: #cfc1ff; }

.auth-page { min-height: calc(100vh - 150px); display: grid; align-items: center; padding: 56px 0; }
.auth-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.auth-grid-small { grid-template-columns: 1fr .85fr; }
.auth-copy h1 { font-size: clamp(34px, 5vw, 54px); }
.auth-copy p { font-size: 18px; color: var(--muted); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 22px; }
.auth-bottom { text-align: center; color: var(--muted); margin-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.check-list li::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 10px; }

label { display: grid; gap: 7px; color: #344054; font-size: 14px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 11px; background: white; color: var(--text); outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109,61,245,.1); }
input:disabled { background: #f2f4f7; color: #667085; }
label small { font-weight: 500; color: var(--muted); }
.optional { color: var(--muted); font-weight: 500; }
form { display: grid; gap: 16px; }
.form-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 550; }
.checkbox-label input { width: 18px; min-height: 18px; margin-top: 2px; }
.form-errors { display: grid; gap: 8px; margin-bottom: 18px; padding: 14px; color: #7a271a; background: var(--danger-soft); border: 1px solid #fecdca; border-radius: 12px; font-size: 14px; }

.flash-wrap { padding-top: 16px; }
.flash { padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.flash-success { color: #05603a; background: var(--success-soft); border: 1px solid #a6f4c5; }
.flash-error { color: #7a271a; background: var(--danger-soft); border: 1px solid #fecdca; }
.flash-info { color: #344054; background: #eef4ff; border: 1px solid #c7d7fe; }

.app-main { padding: 42px 0 70px; min-height: calc(100vh - 150px); }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { font-size: clamp(32px, 4vw, 48px); margin-top: 7px; }
.page-heading p { margin: 8px 0 0; color: var(--muted); }
.page-heading-actions { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.stat-card span, .stat-card small { color: var(--muted); }
.stat-card strong { font-size: 27px; letter-spacing: -.03em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: 22px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.panel-empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state { text-align: center; padding: 64px 28px; background: var(--surface); border: 1px dashed #c8cdd8; border-radius: 22px; }
.empty-state p { color: var(--muted); }
.empty-icon { font-size: 46px; margin-bottom: 12px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); background: #fcfcfd; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: #fcfbff; }
tbody tr:last-child td { border-bottom: 0; }
.table-note { display: block; max-width: 330px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.row-actions form { display: inline; }
.row-actions button { border: 0; background: transparent; color: var(--danger); padding: 0; }
.badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge-work { color: var(--success); background: var(--success-soft); }
.badge-vacation { color: #175cd3; background: #eff8ff; }
.badge-sick { color: var(--danger); background: var(--danger-soft); }
.badge-off { color: var(--warning); background: var(--warning-soft); }
.badge-other { color: #475467; background: #f2f4f7; }

.content-grid { display: grid; gap: 20px; }
.content-grid-sidebar { grid-template-columns: minmax(0, 1fr) 370px; align-items: start; }
.sticky-panel { position: sticky; top: 92px; }
.stack-form { padding: 22px 24px 26px; }
.employee-list { display: grid; }
.employee-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.employee-card:last-child { border-bottom: 0; }
.employee-card.is-inactive { opacity: .62; background: #fafafa; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 900; }
.employee-title { display: flex; align-items: center; gap: 8px; }
.employee-meta, .employee-contact { color: var(--muted); font-size: 13px; }
.employee-contact { margin-top: 3px; }
.employee-actions { display: flex; align-items: center; gap: 12px; }
.employee-actions form { display: inline; }

.filter-bar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.filter-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.filter-form label { min-width: 180px; }
.filter-summary { display: grid; justify-items: end; }
.filter-summary strong { font-size: 22px; }
.filter-summary span { color: var(--muted); font-size: 13px; }
.report-detail { margin-top: 20px; }
.info-box { margin-top: 20px; padding: 16px 18px; border-radius: 14px; color: #475467; background: #fffdf3; border: 1px solid #f9e79b; }

.settings-form { padding: 26px; }
.form-section { display: grid; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { font-size: 21px; }
.form-section p { margin: -8px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
    .feature-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .auth-grid, .auth-grid-small { grid-template-columns: 1fr; }
    .hero { padding-top: 58px; }
    .hero-card { transform: none; }
    .content-grid-sidebar { grid-template-columns: 1fr; }
    .sticky-panel { position: static; }
    .mobile-menu-button { display: inline-grid; place-items: center; }
    .main-nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    .nav-open .main-nav { display: flex; }
}

@media (max-width: 700px) {
    .container, .narrow-container { width: min(100% - 22px, 1180px); }
    .feature-grid, .stats-grid, .form-two, .form-three { grid-template-columns: 1fr; }
    .page-heading-actions, .filter-bar, .cta-box, .footer-inner { align-items: stretch; flex-direction: column; }
    .filter-summary { justify-items: start; }
    .public-nav > a:not(.button) { display: none; }
    .employee-card { grid-template-columns: auto 1fr; }
    .employee-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .hero-actions .button { width: 100%; }
    .auth-card { padding: 22px; }
    .panel-heading { padding: 18px; }
    .stack-form, .settings-form { padding: 18px; }
    h1 { font-size: 39px; }
}

.site-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}.checkbox-label a{color:#1d4ed8;text-decoration:underline;text-underline-offset:2px}
