@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Sora:wght@500;600;700&display=swap');

:root {
  --sky: #1a7fd4;
  --sky-bright: #2b93ea;
  --sky-deep: #0a3d6b;
  --sky-ink: #062846;
  --sky-soft: #e3f0fb;
  --sky-mist: #f0f6fc;
  --gold: #e8b84a;
  --gold-deep: #c9921f;
  --ink: #0f1b2d;
  --muted: #5a6b7d;
  --line: rgba(10, 61, 107, 0.1);
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --ok: #0f9f6e;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 8px 28px rgba(10, 61, 107, 0.08);
  --shadow-lg: 0 22px 50px rgba(10, 61, 107, 0.14);
  --sidebar-w: 278px;
  --radius: 18px;
  --radius-sm: 11px;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: #e8eef5;
  background-image:
    radial-gradient(ellipse 90% 55% at 100% -20%, rgba(26, 127, 212, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at -10% 80%, rgba(232, 184, 74, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3f9 0%, #e4ebf4 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--sky-deep); }

.app-shell { display: flex; min-height: 100vh; position: relative; }

/* ——— Sidebar ——— */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 40, 70, 0.45);
  backdrop-filter: blur(3px);
  z-index: 90;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

.sidebar {
  width: var(--sidebar-w);
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.14) 0%, transparent 32%),
    linear-gradient(195deg, #08325a 0%, var(--sky-deep) 48%, #0c4f8a 100%);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  box-shadow: 8px 0 40px rgba(6, 40, 70, 0.28);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease);
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 4px; }

.sidebar .brand {
  padding: 1.35rem 1.2rem 1.15rem;
  position: relative;
  flex-shrink: 0;
}
.sidebar .brand::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,184,74,.55), transparent);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.sidebar .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, #fff8, transparent 45%),
    linear-gradient(145deg, var(--sky-bright), var(--sky-deep));
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25);
  flex-shrink: 0;
  position: relative;
}
.sidebar .brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  bottom: 5px;
  right: 5px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.brand-text h1 {
  margin: 0;
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.brand-text small {
  display: block;
  opacity: .7;
  margin-top: .28rem;
  font-size: .68rem;
  line-height: 1.35;
  font-weight: 500;
}

.sidebar-nav {
  padding: .55rem 0 1.25rem;
  flex: 1;
}

.nav-section { padding: .55rem 0 .4rem; }
.nav-section .label {
  padding: .35rem 1.2rem .2rem;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .5;
  font-weight: 700;
}
.sidebar a.nav-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.86);
  padding: .55rem 1rem;
  margin: .12rem .55rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 12px;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.sidebar a.nav-link i {
  font-size: 1.08rem;
  opacity: .88;
  width: 1.3rem;
  text-align: center;
  flex-shrink: 0;
}
.sidebar a.nav-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  transform: translateX(3px);
}
.sidebar a.nav-link.active {
  background: linear-gradient(90deg, rgba(232,184,74,.22), rgba(255,255,255,.12));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}
.sidebar a.nav-link.active i { opacity: 1; color: var(--gold); }

.sidebar-foot {
  padding: .9rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .72rem;
  opacity: .65;
  line-height: 1.4;
}

/* ——— Main / Topbar ——— */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid var(--line);
  padding: .85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--sky-deep);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.menu-toggle:hover { background: var(--sky-soft); transform: scale(1.03); }

.topbar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--sky-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(10, 61, 107, 0.06);
  border: 1px solid var(--line);
  gap: 2px;
}
.lang-switch .lang-btn {
  min-width: 38px;
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: center;
  transition: background .15s, color .15s;
}
.lang-switch .lang-btn:hover { color: var(--sky-deep); background: rgba(255,255,255,.7); }
.lang-switch .lang-btn.active {
  background: linear-gradient(180deg, var(--sky-bright), var(--sky));
  color: #fff;
  box-shadow: 0 4px 10px rgba(26, 127, 212, 0.28);
}
.lang-switch.lang-switch-light {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
}
.lang-switch.lang-switch-light .lang-btn { color: rgba(255,255,255,.78); }
.lang-switch.lang-switch-light .lang-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.lang-switch.lang-switch-light .lang-btn.active {
  background: var(--gold);
  color: #3b2a05;
  box-shadow: none;
}
.lang-switch.lang-on-card {
  margin-bottom: 1rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
}
.topbar-user .avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--sky-soft), #c5dff5);
  color: var(--sky-deep);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  border: 1px solid rgba(26, 127, 212, 0.2);
}
.topbar-user .meta .name {
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.2;
}
.topbar-user .meta .role {
  font-size: .74rem;
  color: var(--muted);
}

.content {
  padding: 1.4rem 1.55rem 2.4rem;
  flex: 1;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Keep modal above sidebar/topbar and any page overlays */
.modal { z-index: 1080; }
.modal-backdrop { z-index: 1070; }

/* ——— Dashboard hero ——— */
.dash-hero {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.55rem 1.65rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(232,184,74,.2) 0%, transparent 40%),
    linear-gradient(135deg, #08325a 0%, var(--sky-deep) 45%, var(--sky) 100%);
  box-shadow: var(--shadow-lg);
}
.dash-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.dash-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,74,.25), transparent 70%);
  top: -80px;
  right: -40px;
  pointer-events: none;
}
.dash-hero-inner { position: relative; z-index: 1; max-width: 640px; }
.dash-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: .55rem;
  color: var(--gold);
}
.dash-hero h3 {
  margin: 0 0 .45rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.dash-hero p {
  margin: 0;
  opacity: .88;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 46ch;
}

/* ——— KPI ——— */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  animation: rise .5s var(--ease);
}
.kpi-card:nth-child(1) { animation-delay: .02s; }
.kpi-card:nth-child(2) { animation-delay: .05s; }
.kpi-card:nth-child(3) { animation-delay: .08s; }
.kpi-card:nth-child(4) { animation-delay: .11s; }
.kpi-card:nth-child(5) { animation-delay: .14s; }
.kpi-card:nth-child(6) { animation-delay: .17s; }
.kpi-card:nth-child(7) { animation-delay: .2s; }
.kpi-card:nth-child(8) { animation-delay: .23s; }

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--gold));
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kpi-card .kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: .75rem;
  background: var(--sky-soft);
  color: var(--sky-deep);
}
.kpi-card .kpi-icon.accent {
  background: #fef3c7;
  color: var(--gold-deep);
}
.kpi-card .label {
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: .15rem;
  font-weight: 600;
}
.kpi-card .value {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--sky-ink);
  letter-spacing: -.03em;
  line-height: 1.2;
}

/* ——— Panels / tables ——— */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel .panel-h {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #fff, var(--surface-2));
}
.panel .panel-h h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.panel .panel-h h3 i { color: var(--sky); font-size: 1.1rem; }
.panel .panel-b { padding: 1.15rem 1.2rem; }

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.05rem;
}
.page-toolbar .toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  background: linear-gradient(180deg, #f4f8fc, #eaf1f8);
  font-weight: 700;
  border-bottom-width: 1px;
  white-space: nowrap;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.table-hover > tbody > tr {
  transition: background .15s;
}
.table-hover > tbody > tr:hover > * {
  background-color: rgba(26, 127, 212, 0.045);
}
.table td { font-size: .9rem; }

/* ——— Buttons ——— */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: transform .15s var(--ease), box-shadow .15s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn i { font-size: 1em; line-height: 1; }

.btn-hras {
  background: linear-gradient(180deg, var(--sky-bright), var(--sky));
  border: 1px solid var(--sky-deep);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 127, 212, 0.32);
}
.btn-hras:hover,
.btn-hras:focus {
  background: linear-gradient(180deg, var(--sky), var(--sky-deep));
  border-color: var(--sky-ink);
  color: #fff;
  filter: brightness(1.02);
}

.btn-accent {
  background: linear-gradient(180deg, #f0c45a, var(--gold));
  border: 1px solid var(--gold-deep);
  color: #3b2a05;
  box-shadow: 0 6px 14px rgba(201, 146, 31, 0.28);
}
.btn-accent:hover,
.btn-accent:focus {
  filter: brightness(.97);
  color: #2a1d02;
}

.btn-outline-secondary {
  border-color: rgba(15, 27, 45, 0.16);
  color: var(--ink);
  background: var(--surface);
}
.btn-outline-secondary:hover {
  background: var(--sky-mist);
  border-color: rgba(10, 61, 107, 0.28);
  color: var(--ink);
}

.btn-outline-primary {
  border-color: rgba(26, 127, 212, 0.4);
  color: var(--sky);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--sky-soft);
  border-color: var(--sky);
  color: var(--sky-deep);
}

.btn-outline-danger:hover {
  background: #fef2f2;
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: rgba(10, 61, 107, 0.14);
  font-size: .9rem;
  padding: .58rem .8rem;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 .22rem rgba(26, 127, 212, 0.16);
}
.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: .28rem;
}
.input-icon-wrap { position: relative; }
.input-icon-wrap > i {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.input-icon-wrap .form-control { padding-left: 2.5rem; }

.muted { color: var(--muted); font-size: .85rem; }

.badge {
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: .35em .7em;
  font-size: .72rem;
}
.badge.text-bg-success { background: #d1fae5 !important; color: #065f46 !important; }
.badge.text-bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge.text-bg-secondary { background: #e2e8f0 !important; color: #334155 !important; }
.badge.text-bg-primary { background: var(--sky-soft) !important; color: var(--sky-deep) !important; }
.badge.text-bg-info { background: #e0f2fe !important; color: #075985 !important; }
.badge.text-bg-danger { background: #fee2e2 !important; color: #991b1b !important; }

.alert {
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: var(--shadow);
}

.modal-content {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  background: linear-gradient(180deg, #fff, var(--sky-mist));
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
}
.modal-header .modal-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--sky-ink);
}
.modal-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.disclaimer {
  font-size: .74rem;
  color: var(--muted);
  border-top: 1px dashed rgba(10, 61, 107, 0.14);
  margin-top: 2rem;
  padding-top: 1rem;
  line-height: 1.5;
}

.tip-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--muted);
}
.tip-list strong { color: var(--ink); }

.chart-hint {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.chart-canvas-wrap {
  position: relative;
  cursor: pointer;
}
.chart-detail {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise .35s var(--ease);
}
.chart-detail .panel-h {
  background: linear-gradient(180deg, #fff, var(--sky-mist));
}
.chart-detail-empty {
  color: var(--muted);
  font-size: .92rem;
  padding: .35rem 0;
  margin: 0;
}
.chart-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (min-width: 768px) {
  .chart-detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.chart-stat {
  background: var(--sky-mist);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
}
.chart-stat .k {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .2rem;
}
.chart-stat .v {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sky-ink);
  letter-spacing: -.02em;
}
.chart-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.chart-detail table {
  margin-top: .85rem;
  margin-bottom: 0;
}
.chart-detail-title {
  margin: 0 0 .85rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sky-ink);
}

/* ——— Login ——— */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  padding: 0;
  position: relative;
  background: #071f38;
}
.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2.75rem 3rem;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(7, 31, 56, 0.35) 0%, rgba(10, 61, 107, 0.55) 50%, rgba(8, 50, 90, 0.75) 100%),
    linear-gradient(135deg, #0a3d6b 0%, #1a7fd4 55%, #3aa0ef 100%);
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 L50 0 L100 50 L50 100 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  pointer-events: none;
}
.login-visual::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,74,.28), transparent 68%);
  top: -120px;
  right: -80px;
  pointer-events: none;
  animation: glow 8s ease-in-out infinite alternate;
}
@keyframes glow {
  from { transform: translate(0, 0) scale(1); opacity: .8; }
  to { transform: translate(-30px, 40px) scale(1.12); opacity: 1; }
}
.login-visual-inner { position: relative; z-index: 1; max-width: 440px; }
.login-visual .star {
  width: 36px;
  height: 36px;
  margin-bottom: 1.4rem;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 6px 16px rgba(232,184,74,.45));
  animation: pulse-star 2.8s ease-in-out infinite;
}
@keyframes pulse-star {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.login-visual .brand-name {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: 0 0 .75rem;
}
.login-visual .brand-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: .9;
  max-width: 34ch;
}
.login-visual .brand-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.login-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(26,127,212,.08), transparent 40%),
    linear-gradient(180deg, #f5f8fc, #e8eef5);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 2.1rem 2rem 1.85rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.9);
  animation: rise .5s var(--ease) both;
}
.login-card .logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--sky-bright), var(--sky-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 24px rgba(26, 127, 212, 0.35);
  position: relative;
}
.login-card .logo-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  bottom: 6px;
  right: 6px;
}
.login-card h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--sky-ink);
  font-size: 1.35rem;
}
.login-card .btn-hras {
  padding: .72rem 1rem;
  font-size: .95rem;
  margin-top: .25rem;
}

/* ——— Report ——— */
.report-page {
  background: #fff;
  min-height: 100vh;
  padding: 1.5rem;
  font-family: var(--font);
  color: var(--ink);
}
.report-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--sky);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.report-header .logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--sky), var(--sky-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
}
.report-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}
.report-actions { margin-bottom: 1.25rem; }
.report-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

@media print {
  .report-actions, .no-print { display: none !important; }
  .report-page { padding: 0; }
  body { background: #fff; }
}

/* ——— Responsive ——— */
@media (max-width: 992px) {
  .menu-toggle { display: inline-flex; }
  .sidebar {
    transform: translateX(-105%);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding: .75rem 1rem; }
  .content { padding: 1rem 1rem 2rem; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual {
    min-height: 240px;
    padding: 1.75rem 1.5rem;
    justify-content: center;
  }
  .login-visual .brand-name { font-size: 1.55rem; }
  .login-visual .brand-lead { font-size: .95rem; }
  .login-visual .brand-meta { margin-top: 1.25rem; }
}

@media (max-width: 576px) {
  .topbar h2 { font-size: 1.05rem; }
  .kpi-card .value { font-size: 1.25rem; }
  .dash-hero { padding: 1.25rem; }
}
