:root {
  --bg: #f4f7fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #71829a;
  --line: #dfe6ef;
  --primary: #2d6df6;
  --primary2: #6c92ff;
  --accent: #16c784;
  --danger: #ed5f74;
  --warning: #ffb84d;
  --shadow: 0 14px 40px rgba(15, 31, 61, 0.08);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #eef4fb, #f8fbff 40%);
  color: var(--ink);
}
a {
  text-decoration: none;
  color: inherit;
}
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0e1726;
  color: #fff;
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.sub {
  color: #9eb2ce;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
.menu {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}
.menu a,
.menu button {
  display: block;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #b9c6d9;
  padding: 13px 14px;
  font-weight: 800;
  text-align: left;
}
.menu a:hover,
.menu button:hover {
  background: #14233a;
  color: #fff;
}
.main {
  padding: 22px 24px 80px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.lang {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill,
.input,
.btn,
.select,
.textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
}
.btn {
  font-weight: 800;
  cursor: pointer;
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn.alt {
  background: #eef4ff;
  color: var(--primary);
  border-color: #d4e0ff;
}
.btn.good {
  background: var(--accent);
  color: #07301e;
  border-color: var(--accent);
}
.btn.warn {
  background: var(--warning);
  color: #3d2600;
  border-color: var(--warning);
}
.btn.danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-sm {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}
.grid {
  display: grid;
  gap: 16px;
}
.dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
}
.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid rgba(223, 230, 239, 0.9);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 10px;
}
.headline {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 6px 0 4px;
}
.hero {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 18px 0;
}
.clock-button {
  cursor: pointer;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  border: 0;
  background: radial-gradient(circle at 30% 20%, #85a7ff, #2d6df6 55%, #1d47b8);
  color: #fff;
  box-shadow: 0 26px 64px rgba(45, 109, 246, 0.35);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.timer {
  font-size: clamp(44px, 11vw, 84px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.stack {
  display: grid;
  gap: 12px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.flash {
  padding: 13px 14px;
  border-radius: 16px;
  margin-bottom: 14px;
  font-weight: 700;
}
.flash.success {
  background: #eafaf2;
  color: #0d6b42;
  border: 1px solid #bcebd2;
}
.flash.error {
  background: #fff0f3;
  color: #b42343;
  border: 1px solid #ffc7d3;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.list {
  display: grid;
  gap: 10px;
}
.muted {
  color: var(--muted);
}
.tagline {
  max-width: 660px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(
    circle at top left,
    #eef4ff,
    #f7fbff 55%,
    #eef2f8
  );
}
.login-card {
  width: min(520px, 100%);
  background: var(--paper);
  padding: 28px;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(14, 23, 38, 0.1);
  border: 1px solid var(--line);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.calendar-cell {
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: #fbfdff;
}
.calendar-cell.is-muted {
  opacity: 0.45;
}
.calendar-cell.is-today {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 109, 246, 0.08);
}
.calendar-day {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 8px;
}
.calendar-items {
  display: grid;
  gap: 6px;
}
.calendar-item {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.calendar-item.schedule {
  background: #eef4ff;
  color: #1d47b8;
}
.calendar-item.holiday {
  background: #fff7e8;
  color: #8a5b00;
}
.calendar-item.absence {
  background: #fff0f3;
  color: #a82951;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.kpi-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.small {
  font-size: 12px;
}
.docs-code {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: #0e1726;
  color: #d9e6fb;
  overflow: auto;
}
@media (max-width: 900px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .menu {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    overflow: auto;
  }
  .main {
    padding: 14px 14px 90px;
  }
  .dashboard-grid,
  .cards,
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-direction: column;
  }
  .clock-button {
    width: 180px;
    height: 180px;
  }
  .table thead {
    display: none;
  }
  .table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px;
    margin-bottom: 10px;
  }
  .table td {
    display: block;
    border: 0;
    padding: 6px 0;
  }
  .calendar-cell {
    min-height: auto;
  }
}
.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}
@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }
  .mobile-menu-toggle {
    display: grid;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 60;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: #0e1726;
    box-shadow: 0 14px 34px rgba(14, 23, 38, 0.24);
    place-content: center;
    gap: 5px;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(14, 23, 38, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    z-index: 40;
    transition: opacity 0.18s ease;
  }
  .mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 310px);
    height: 100vh;
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow: auto;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .menu {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .main {
    padding: 72px 14px 90px;
  }
  .dashboard-grid,
  .cards,
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-direction: column;
  }
  .topbar .headline {
    padding-right: 54px;
  }
  .clock-button {
    width: 180px;
    height: 180px;
  }
  .table thead {
    display: none;
  }
  .table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px;
    margin-bottom: 10px;
  }
  .table td {
    display: block;
    border: 0;
    padding: 6px 0;
  }
  .calendar-cell {
    min-height: auto;
  }
}
.admin-dashboard-cards {
  margin-bottom: 18px;
}
