/* ANYONE VINA 2026 — Enterprise employee experience design system */
:root {
  --av-ink: #102a43;
  --av-muted: #627d98;
  --av-subtle: #829ab1;
  --av-bg: #f3f7fb;
  --av-surface: #ffffff;
  --av-surface-soft: #f8fbfe;
  --av-line: #d9e6f2;
  --av-navy: #073a63;
  --av-navy-deep: #052d4f;
  --av-cyan: #00a7b5;
  --av-blue: #1376d8;
  --av-green: #0f9f6e;
  --av-amber: #e99a18;
  --av-coral: #e65f5c;
  --av-shadow-sm: 0 4px 16px rgba(19, 55, 83, .08);
  --av-shadow-md: 0 14px 40px rgba(19, 55, 83, .12);
  --av-shadow-lg: 0 28px 72px rgba(7, 46, 78, .2);
  --av-radius-sm: 10px;
  --av-radius: 16px;
  --av-radius-lg: 24px;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--av-bg); }
body {
  color: var(--av-ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 167, 181, .09), transparent 28rem),
    linear-gradient(180deg, #f8fbfe 0%, var(--av-bg) 100%);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.006em;
}

button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: var(--av-cyan); }
:focus-visible { outline: 3px solid rgba(0, 167, 181, .3); outline-offset: 2px; }

.app { min-height: 100vh; background: transparent; }
.sidebar {
  width: 252px;
  padding: 24px 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(46, 196, 204, .25), transparent 18rem),
    linear-gradient(180deg, #073f6d 0%, #052e51 54%, #042540 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 10px 0 36px rgba(4, 37, 64, .12);
}
.brand {
  min-height: 52px;
  padding: 0 14px 19px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .12em;
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.brand::after {
  content: "Employee Experience";
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-dot { width: 8px; height: 8px; background: #35d0c8; box-shadow: 0 0 0 5px rgba(53,208,200,.13); }
.nav { display: grid; gap: 5px; padding-top: 18px; }
.nav-item {
  min-height: 46px;
  padding: 0 13px;
  color: rgba(255,255,255,.7);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.nav-item svg { width: 18px; height: 18px; opacity: .85; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.075); transform: translateX(2px); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0,167,181,.96), rgba(19,118,216,.94));
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 9px 24px rgba(0, 42, 77, .3);
}
.sidebar-footer { padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer-logo { max-width: 136px; height: auto; filter: brightness(0) invert(1); opacity: .82; }
.public-note { color: rgba(255,255,255,.47); font-size: 10px; }

.main { margin-left: 252px; min-width: 0; }
.topbar {
  height: 76px;
  padding: 0 28px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(196,214,229,.8);
  box-shadow: 0 8px 30px rgba(19,55,83,.04);
  backdrop-filter: blur(18px);
}
.company { color: var(--av-navy); font-size: 13px; font-weight: 850; letter-spacing: .055em; }
.topbar-actions { gap: 8px; }
.session-user {
  min-height: 52px;
  padding: 6px 12px 6px 7px;
  border: 1px solid var(--av-line);
  border-radius: 15px;
  background: var(--av-surface-soft);
}
.session-avatar {
  width: 38px; height: 38px;
  color: #fff;
  background: linear-gradient(145deg, var(--av-cyan), var(--av-blue));
  box-shadow: 0 8px 18px rgba(19,118,216,.22);
}
.session-copy strong { color: var(--av-ink); font-size: 12px; }
.session-copy small { color: var(--av-muted); }
.session-action, .language-control {
  min-width: 42px; min-height: 42px;
  color: var(--av-navy);
  border: 1px solid var(--av-line);
  border-radius: 12px;
  background: #fff;
  transition: .18s ease;
}
.session-action:hover, .language-control:hover { color: var(--av-cyan); border-color: #9bd6da; box-shadow: var(--av-shadow-sm); transform: translateY(-1px); }

.content { width: min(100%, 1680px); margin: 0 auto; padding: 28px clamp(18px, 2.5vw, 38px) 54px; }
.view { animation: avViewIn .28s ease both; }
@keyframes avViewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.attendance-heading, .employee-lookup-hero, .documents-hero, .feedback-hero, .payroll-hero,
.admin-page-header, .workforce-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(187,211,229,.82);
  border-radius: var(--av-radius-lg);
  background:
    radial-gradient(circle at 92% 20%, rgba(0,167,181,.15), transparent 18rem),
    linear-gradient(135deg, #fff 0%, #f5fbfd 100%);
  box-shadow: var(--av-shadow-sm);
}
.attendance-heading::before, .employee-lookup-hero::before, .documents-hero::before,
.feedback-hero::before, .payroll-hero::before, .admin-page-header::before, .workforce-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--av-cyan), var(--av-blue));
}
.attendance-eyebrow, .admin-eyebrow {
  color: var(--av-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.title, .admin-page-header h1, .workforce-hero h1 {
  color: var(--av-navy-deep);
  font-size: clamp(25px, 2.25vw, 38px);
  font-weight: 900;
  letter-spacing: -.035em;
}

.panel, .table-card, .profile, .metric, .hr-profile-card, .documents-list,
.feedback-form-card, .feedback-history-card, .payroll-panel, .admin-table-shell,
.workforce-panel, .workforce-kpi {
  border: 1px solid rgba(201,218,232,.92);
  border-radius: var(--av-radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--av-shadow-sm);
}
.profile { padding: 18px; }
.portrait { border: 4px solid #fff; box-shadow: 0 8px 28px rgba(10,79,119,.16); }
.status { color: #087b57; background: #e8f8f2; border: 1px solid #bce9d8; }
.attendance-profile-item { min-height: 62px; padding: 10px 13px; border-radius: 13px; background: var(--av-surface-soft); border: 1px solid #e6eef5; }
.info-label { color: var(--av-muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.info-value { color: var(--av-ink); font-weight: 750; }

.cards { gap: 14px; }
.metric { min-height: 128px; padding: 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.metric:hover { transform: translateY(-3px); border-color: #b6d3e7; box-shadow: var(--av-shadow-md); }
.metric small { color: var(--av-muted); font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.metric strong { color: var(--av-navy-deep); font-size: 31px; font-weight: 900; letter-spacing: -.04em; }
.metric-icon { width: 46px; height: 46px; border-radius: 14px; }
.metric-blue { color: var(--av-blue); background: #eaf4ff; }
.metric-green { color: var(--av-green); background: #e7f8f1; }
.metric-amber { color: var(--av-amber); background: #fff5df; }
.metric-coral { color: var(--av-coral); background: #fff0ee; }

.button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--av-navy);
  border: 1px solid #c9d9e7;
  border-radius: 11px;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(19,55,83,.04);
  transition: .18s ease;
}
.button:hover:not(:disabled) { color: var(--av-cyan); border-color: #80cbd1; transform: translateY(-1px); box-shadow: var(--av-shadow-sm); }
.button.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--av-cyan), var(--av-blue));
  box-shadow: 0 9px 20px rgba(11,124,175,.22);
}
.button.primary:hover:not(:disabled) { color: #fff; filter: saturate(1.08) brightness(1.03); box-shadow: 0 12px 26px rgba(11,124,175,.3); }
.button:disabled { opacity: .52; cursor: not-allowed; }

input, select, textarea, .input,
.admin-search input, .attendance-admin-search input, .employee-info-input-wrap input {
  color: var(--av-ink);
  border: 1px solid #c7d8e6;
  border-radius: 11px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input, select, .input { min-height: 43px; }
textarea { min-height: 108px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #9dbbd1; }
input:focus, select:focus, textarea:focus {
  border-color: var(--av-cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,167,181,.12);
  outline: 0;
}
input::placeholder, textarea::placeholder { color: #93a8b8; }
label > span:first-child { color: #486581; font-weight: 750; }

.table-card, .admin-table-shell { overflow: hidden; }
.table-wrap, .admin-table-scroll, .workforce-list-shell { scrollbar-color: #9ec3d4 #eef5f8; scrollbar-width: thin; }
table { border-collapse: separate; border-spacing: 0; }
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #fff;
  background: linear-gradient(180deg, #0a527d, #073e66);
  border-color: rgba(255,255,255,.11) !important;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .025em;
}
tbody td { color: #243b53; border-color: #e5edf4 !important; }
tbody tr:nth-child(even) td { background: #f9fcfe; }
tbody tr:hover td { background: #edf8fa; }
tfoot td { color: var(--av-navy); background: #eaf4f8; font-weight: 850; }
.admin-data-table { min-width: 960px; }
.admin-data-table td, .admin-data-table th { min-height: 48px; padding: 12px 13px; }
.admin-toolbar, .attendance-internal-controls {
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--av-line);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--av-shadow-sm);
}
.admin-search { min-height: 44px; border-radius: 11px; }
.admin-result-bar { color: var(--av-muted); border-radius: 12px; background: #eaf5f8; }
.admin-result-bar strong { color: var(--av-navy); }
.admin-status, .feedback-status-pill { border-radius: 999px; font-weight: 800; }

dialog {
  color: var(--av-ink);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--av-shadow-lg);
}
dialog::backdrop { background: rgba(3, 29, 50, .58); backdrop-filter: blur(5px); }
.password-dialog-card, .admin-record-form, .photo-upload-card {
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px;
  background: #fff;
}
.password-dialog-head, .admin-record-head { padding-bottom: 15px; border-bottom: 1px solid var(--av-line); }
.password-dialog-head h2, .admin-record-head h2 { color: var(--av-navy-deep); font-size: 23px; font-weight: 900; }
.admin-record-fields { gap: 16px; }
.admin-record-actions, .password-dialog-actions { padding-top: 16px; border-top: 1px solid var(--av-line); }

.document-link {
  min-height: 100px;
  border: 1px solid var(--av-line);
  border-radius: 15px;
  background: #fff;
  transition: .2s ease;
}
.document-link:hover { border-color: #99ccd4; transform: translateY(-3px); box-shadow: var(--av-shadow-md); }
.document-link-icon { border-radius: 14px; background: #e9f7fa; color: var(--av-cyan); }
.document-open-icon { color: var(--av-blue); background: #edf5fd; }

.loading {
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px 14px 44px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(5,45,79,.95);
  box-shadow: var(--av-shadow-lg);
  backdrop-filter: blur(16px);
}
.loading::before { content: ""; position: absolute; left: 16px; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: avSpin .7s linear infinite; }
@keyframes avSpin { to { transform: rotate(360deg); } }

/* Login */
.auth-screen { background: #eef5f9; }
.auth-showcase {
  background:
    linear-gradient(150deg, rgba(4,47,82,.86), rgba(2,70,91,.7)),
    linear-gradient(135deg, var(--av-navy), var(--av-cyan));
}
.auth-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}
.auth-brand, .auth-message, .auth-values { z-index: 2; }
.auth-brand-mark { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); }
.auth-message h1 { max-width: 720px; font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.auth-kicker { color: #8ef0e7; }
.auth-values span { border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(3,39,69,.35); backdrop-filter: blur(10px); }
.auth-panel { background: #f7fafc; }
.auth-card {
  width: min(440px, 100%);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid #dbe8f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(9,49,78,.15);
}
.auth-card-brand-mark, .auth-card-icon { background: linear-gradient(145deg, var(--av-cyan), var(--av-blue)); box-shadow: 0 10px 24px rgba(19,118,216,.22); }
.auth-heading h2 { color: var(--av-navy-deep); font-size: 29px; font-weight: 900; letter-spacing: -.03em; }
.auth-input { min-height: 52px; border: 1px solid #c7d8e6; border-radius: 13px; background: #fbfdff; }
.auth-input:focus-within { border-color: var(--av-cyan); box-shadow: 0 0 0 4px rgba(0,167,181,.12); }
.auth-submit { min-height: 52px; border-radius: 13px; font-size: 14px; }
.auth-security-note { color: var(--av-muted); border-radius: 12px; background: #f0f8fa; }

/* Workforce and payroll */
.workforce-kpi { overflow: hidden; min-height: 126px; border-top: 4px solid var(--av-blue); }
.workforce-kpi.green { border-top-color: var(--av-green); }
.workforce-kpi.amber { border-top-color: var(--av-amber); }
.workforce-kpi.red { border-top-color: var(--av-coral); }
.workforce-kpi strong { color: var(--av-navy-deep); font-size: 30px; }
.payroll-amount, .payroll-net-value, .hr-money { font-variant-numeric: tabular-nums; }
.payroll-net-card { border-radius: 20px; background: linear-gradient(140deg, var(--av-navy), #086a83); box-shadow: var(--av-shadow-md); }

@media (max-width: 1100px) {
  .sidebar { width: 218px; }
  .main { margin-left: 218px; }
  .content { padding-inline: 20px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { padding-bottom: 74px; }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    width: 100%;
    height: 68px;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 -12px 32px rgba(5,45,79,.18);
  }
  .brand, .sidebar-footer { display: none; }
  .nav { display: flex; gap: 4px; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 76px; min-height: 53px; padding: 5px 4px; justify-content: center; flex-direction: column; gap: 3px; font-size: 9px; border-radius: 11px; }
  .nav-item:hover { transform: none; }
  .nav-item svg { width: 19px; height: 19px; }
  .main { margin-left: 0; }
  .topbar { height: 64px; padding: 0 12px; }
  .company { max-width: 120px; font-size: 9px; line-height: 1.25; }
  .session-user { min-height: 44px; padding: 4px; border: 0; background: transparent; }
  .session-avatar { width: 35px; height: 35px; }
  .session-copy { display: none; }
  .session-action, .language-control { min-width: 38px; min-height: 38px; }
  .content { padding: 16px 12px 28px; }
  .attendance-heading, .employee-lookup-hero, .documents-hero, .feedback-hero, .payroll-hero, .admin-page-header, .workforce-hero { border-radius: 18px; }
  .title, .admin-page-header h1, .workforce-hero h1 { font-size: 25px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { min-height: 116px; padding: 14px; }
  .metric strong { font-size: 25px; }
  .profile { border-radius: 16px; }
  .button { min-height: 44px; }
  .admin-toolbar { align-items: stretch; }
  .admin-toolbar .button { flex: 1 1 auto; }
  .admin-search { flex: 1 0 100%; }
  dialog { width: calc(100vw - 20px) !important; max-height: calc(100dvh - 24px); margin: auto; border-radius: 18px; }
  .auth-screen { min-height: 100dvh; }
  .auth-showcase { min-height: 225px; }
  .auth-message h1 { font-size: 31px; }
  .auth-values { display: none; }
  .auth-panel { padding: 18px 13px 28px; }
  .auth-card { padding: 25px 20px; border-radius: 20px; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .metric { min-height: 96px; }
  .attendance-period-actions, .employee-search-actions, .password-dialog-actions, .admin-record-actions { width: 100%; }
  .attendance-period-actions .button, .employee-search-actions .button, .password-dialog-actions .button, .admin-record-actions .button { flex: 1; }
  .auth-showcase { min-height: 190px; }
  .auth-message p, .auth-brand { display: none; }
  .auth-message h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

