:root {
    --go-primary: #2563eb;
    --go-accent: #06b6d4;
    --go-ink: #0b1220;
    --go-muted: #64748b;
    --go-line: #e5eaf1;
    --go-bg: #f4f7fb;
    --go-card: #ffffff;
    --go-danger: #dc2626;
    --go-warning: #d97706;
    --go-success: #059669;
    --go-sidebar: 252px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--go-ink); background: var(--go-bg); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.go-shell { min-height: 100vh; }
.go-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--go-sidebar); padding: 22px 16px;
    color: #dce7f8; background: radial-gradient(circle at 0 0, rgba(37,99,235,.30), transparent 28%), linear-gradient(180deg, #071426 0%, #0d2038 100%); overflow-y: auto; z-index: 30;
}
.go-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 24px; font-weight: 800; color: #fff; font-size: 17px; }
.go-brand img { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; background: #fff; padding: 4px; }
.go-brand small { display: block; color: #8da2bf; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.go-nav-label { padding: 16px 12px 7px; color: #7890af; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.go-nav { display: grid; gap: 5px; }
.go-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 8px; color: #b9c8db; font-weight: 650; }
.go-nav a:hover, .go-nav a.active { background: rgba(255,255,255,.09); color: #fff; }
.go-nav .go-dot { width: 8px; height: 8px; border-radius: 50%; background: #536b8b; }
.go-nav a.active .go-dot { background: var(--go-accent); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }

.go-main { margin-left: var(--go-sidebar); min-height: 100vh; }
.go-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 12px 28px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--go-line); backdrop-filter: blur(12px); }
.go-topbar h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.go-topbar p { margin: 3px 0 0; color: var(--go-muted); font-size: 12px; }
.go-user { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.go-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--go-primary); }
.go-content { padding: 26px 28px 48px; max-width: 1600px; margin: 0 auto; }

.go-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.go-page-head h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.go-page-head p { margin: 6px 0 0; color: var(--go-muted); }
.go-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.go-grid { display: grid; gap: 16px; }
.go-grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.go-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.go-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.go-card { background: var(--go-card); border: 1px solid var(--go-line); border-radius: 16px; box-shadow: 0 8px 30px rgba(15,35,64,.055); }
.go-card-pad { padding: 18px; }
.go-card h3 { margin: 0 0 4px; font-size: 15px; }
.go-card-sub { margin: 0; color: var(--go-muted); font-size: 12px; }
.go-stat { position: relative; overflow: hidden; padding: 18px; min-height: 120px; }
.go-stat::after { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; right: -22px; top: -25px; background: color-mix(in srgb, var(--go-primary) 12%, transparent); }
.go-stat-label { color: var(--go-muted); font-weight: 650; }
.go-stat-value { margin-top: 12px; font-size: 27px; line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.go-stat-note { margin-top: 8px; color: var(--go-muted); font-size: 12px; }

.go-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 750; transition: .15s ease; }
.go-btn:hover { transform: translateY(-1px); }
.go-btn.primary { color: #fff; background: var(--go-primary); }
.go-btn.accent { color: #fff; background: var(--go-accent); }
.go-btn.soft { color: var(--go-ink); background: #fff; border-color: var(--go-line); }
.go-btn.danger { color: #fff; background: var(--go-danger); }
.go-btn.small { min-height: 31px; padding: 5px 10px; font-size: 12px; }

.go-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px; margin-bottom: 16px; background: #fff; border: 1px solid var(--go-line); border-radius: 10px; }
.go-field { display: grid; gap: 6px; min-width: 150px; }
.go-field.grow { flex: 1; }
.go-field label { color: #475569; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.go-input, .go-select, .go-textarea { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--go-ink); background: #fff; border: 1px solid #d3deeb; border-radius: 10px; outline: none; }
.go-textarea { min-height: 94px; resize: vertical; }
.go-input:focus, .go-select:focus, .go-textarea:focus { border-color: var(--go-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--go-primary) 12%, transparent); }
.go-check { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; font-weight: 650; }
.go-check input { width: 17px; height: 17px; accent-color: var(--go-primary); }
.go-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.go-form-grid .full { grid-column: 1 / -1; }
.go-form-section { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--go-line); }

.go-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--go-line); border-radius: 11px; }
.go-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.go-table th { padding: 12px 14px; color: #64748b; background: #f8fafc; border-bottom: 1px solid var(--go-line); font-size: 10px; text-align: left; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.go-table td { padding: 13px 14px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.go-table tr:last-child td { border-bottom: 0; }
.go-table tr:hover td { background: #fbfdff; }
.go-strong { font-weight: 800; }
.go-muted { color: var(--go-muted); }
.go-mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.go-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; color: #334155; background: #eef2f7; font-size: 11px; font-weight: 800; white-space: nowrap; }
.go-badge.success { color: #047857; background: #dff8ef; }
.go-badge.warning { color: #a65b00; background: #fff3d6; }
.go-badge.danger { color: #b91c1c; background: #fee7e7; }
.go-badge.info { color: #174ea6; background: #e6f0ff; }

.go-alert { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 16px; border-radius: 9px; font-weight: 650; }
.go-alert.success { color: #065f46; background: #dff8ef; border: 1px solid #b9ead9; }
.go-alert.error { color: #991b1b; background: #feeeee; border: 1px solid #f7cccc; }

.go-details { border: 1px solid var(--go-line); border-radius: 9px; background: #fff; }
.go-details > summary { padding: 11px 13px; cursor: pointer; font-weight: 800; list-style: none; }
.go-details > summary::-webkit-details-marker { display: none; }
.go-details[open] > summary { border-bottom: 1px solid var(--go-line); }
.go-details-body { padding: 15px; }

.go-chart { display: flex; align-items: end; gap: 11px; min-height: 190px; padding-top: 20px; }
.go-bar-wrap { flex: 1; display: grid; gap: 7px; justify-items: center; min-width: 30px; }
.go-bar { width: min(30px, 65%); min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--go-primary), var(--go-accent)); }
.go-bar-label { color: var(--go-muted); font-size: 10px; }

.go-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 310px); gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.go-column { min-height: 400px; padding: 10px; background: #ebf0f6; border-radius: 11px; }
.go-column-head { display: flex; justify-content: space-between; align-items: center; padding: 5px 3px 12px; font-weight: 850; }
.go-job { display: block; padding: 13px; margin-bottom: 9px; background: #fff; border: 1px solid #dfe6ef; border-radius: 9px; box-shadow: 0 3px 10px rgba(15,23,42,.04); }
.go-job:hover { border-color: var(--go-primary); }
.go-job-top { display: flex; justify-content: space-between; gap: 8px; }
.go-job h4 { margin: 0 0 5px; font-size: 13px; }
.go-job p { margin: 4px 0 0; color: var(--go-muted); font-size: 12px; }

.go-list { display: grid; gap: 0; }
.go-list-item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--go-line); }
.go-list-item:last-child { border-bottom: 0; }
.go-empty { padding: 35px 20px; color: var(--go-muted); text-align: center; }
.go-pagination nav { margin-top: 14px; }
.go-pagination svg { width: 18px; }

.go-auth-page { display: grid; place-items: center; min-height: 100vh; padding: 22px; background: radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--go-primary) 15%, transparent), transparent 34%), #f4f7fb; }
.go-auth-card { width: min(440px, 100%); padding: 28px; background: #fff; border: 1px solid var(--go-line); border-radius: 16px; box-shadow: 0 22px 60px rgba(15,23,42,.12); }
.go-auth-logo { width: 58px; height: 58px; object-fit: contain; margin-bottom: 19px; }
.go-auth-card h1 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.go-auth-card > p { margin: 8px 0 23px; color: var(--go-muted); line-height: 1.6; }
.go-code { letter-spacing: .35em; text-align: center; font-size: 23px; font-weight: 800; }

.go-employee-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px max(18px, calc((100vw - 1100px)/2)); background: #0b1628; color: #fff; }
.go-employee-brand { display: flex; align-items: center; gap: 10px; font-weight: 850; }
.go-employee-brand img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 7px; padding: 3px; }
.go-employee-nav { display: flex; gap: 7px; align-items: center; }
.go-employee-nav a, .go-employee-nav button { padding: 8px 10px; color: #cbd8ea; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-weight: 700; }
.go-employee-nav a.active, .go-employee-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.go-employee-content { max-width: 1100px; margin: 0 auto; padding: 28px 18px 50px; }
.go-clock-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: center; padding: 24px; background: linear-gradient(125deg, #0b1628, #14335b); color: #fff; border-radius: 14px; }
.go-clock-card h2 { margin: 0 0 8px; font-size: 27px; }
.go-clock-card p { margin: 0; color: #b8c8dd; }
.go-clock-actions { display: flex; justify-content: flex-end; }
.go-clock-btn { min-width: 150px; min-height: 52px; border: 0; border-radius: 10px; color: #fff; background: var(--go-accent); cursor: pointer; font-weight: 850; font-size: 15px; }
.go-clock-btn.out { background: #f97316; }
.go-clock-btn:disabled { opacity: .55; cursor: wait; }

.go-invoice { max-width: 850px; margin: 25px auto; padding: 34px; background: #fff; border: 1px solid var(--go-line); border-radius: 12px; }
.go-invoice-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--go-ink); }
.go-invoice-logo { max-width: 145px; max-height: 65px; object-fit: contain; }
.go-total { font-size: 24px; font-weight: 900; }

@media (max-width: 1100px) {
    .go-grid.stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .go-grid.three { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
    :root { --go-sidebar: 0px; }
    .go-sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 9px 12px; overflow-x: auto; overflow-y: hidden; }
    .go-brand { display: none; }
    .go-nav-label { display: none; }
    .go-nav { display: flex; width: max-content; }
    .go-nav a { padding: 9px 11px; font-size: 12px; }
    .go-main { margin-left: 0; }
    .go-topbar { position: static; padding: 13px 16px; }
    .go-topbar p, .go-user span { display: none; }
    .go-content { padding: 20px 15px 42px; }
    .go-page-head { display: grid; }
    .go-grid.two, .go-grid.three { grid-template-columns: 1fr; }
    .go-form-grid { grid-template-columns: 1fr; }
    .go-form-grid .full { grid-column: auto; }
    .go-clock-card { grid-template-columns: 1fr; }
    .go-clock-actions { justify-content: flex-start; }
    .go-employee-top { align-items: flex-start; flex-direction: column; }
    .go-employee-nav { width: 100%; overflow-x: auto; }
}

@media (max-width: 520px) {
    .go-grid.stats { grid-template-columns: 1fr; }
    .go-auth-card { padding: 23px 19px; }
    .go-actions { width: 100%; }
    .go-actions .go-btn { flex: 1; }
    .go-invoice { margin: 0; border-radius: 0; padding: 20px; }
}

@media print {
    .go-sidebar, .go-topbar, .go-actions, .go-employee-top, .go-no-print { display: none !important; }
    .go-main { margin: 0; }
    .go-content { padding: 0; }
    body { background: #fff; }
    .go-card, .go-table-wrap { box-shadow: none; }
}
