@font-face {
  font-family: "GameX SC";
  src: url("../fonts/notosans-regular.7a69138dad92.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GameX SC";
  src: url("../fonts/notosans-semibold.92d766383715.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --ink: #17211f;
  --ink-soft: #53605d;
  --line: #dbe2df;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --teal: #17786b;
  --teal-dark: #105c53;
  --teal-soft: #e3f1ed;
  --coral: #c85643;
  --coral-dark: #9f3f31;
  --coral-soft: #fae9e5;
  --amber: #bc7b16;
  --amber-soft: #fff1d7;
  --shadow: 0 16px 45px rgba(19, 39, 34, 0.09);
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
@font-face {
  font-family: "GameX BN";
  src: url("../fonts/notosans-bengali-regular.e76717b416a6.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GameX BN";
  src: url("../fonts/notosans-bengali-semibold.a3d0fc6abcc3.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "GameX SC", "GameX BN", "Microsoft YaHei", "Nirmala UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}
button, input, select { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; background: white; padding: 10px; }
.skip-link:focus { top: 12px; }

.tri-text { display: inline-flex; max-width: 100%; min-width: 0; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.tri-secondary { max-width: 100%; color: var(--ink-soft); font-size: 0.76em; font-weight: 400; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.tri-light, .tri-light .tri-secondary { color: #fff; }
.tri-display > span:first-child { font-size: 34px; font-weight: 600; }
.tri-display .tri-secondary { margin-top: 9px; font-size: 15px; color: rgba(255,255,255,.78); }
.tri-heading > span:first-child { font-size: 28px; font-weight: 700; }
.tri-heading .tri-secondary { margin-top: 4px; font-size: 14px; }
.tri-heading-small > span:first-child { font-size: 20px; font-weight: 650; }
.tri-page-title > span:first-child { font-size: 30px; font-weight: 700; }
.tri-page-title .tri-secondary { margin-top: 4px; font-size: 14px; }
.tri-body > span:first-child { font-size: 14px; }
.tri-body .tri-secondary { margin-top: 2px; font-size: 12px; }
.tri-label > span:first-child { font-size: 13px; font-weight: 600; }
.tri-label .tri-secondary { font-size: 10px; margin-top: 1px; }
.tri-button { align-items: center; }
.tri-button > span:first-child { font-size: 13px; font-weight: 650; }
.tri-button .tri-secondary { font-size: 9px; line-height: 1.1; color: inherit; opacity: .75; }
.tri-nav > span:first-child { font-size: 13px; font-weight: 600; }
.tri-nav .tri-secondary { font-size: 9px; color: inherit; opacity: .62; }
.tri-table > span:first-child { font-size: 12px; font-weight: 650; }
.tri-table .tri-secondary { margin-top: 2px; font-size: 9px; }
.tri-metric > span:first-child { font-size: 12px; font-weight: 600; }
.tri-metric .tri-secondary { font-size: 9px; }
.tri-value > span:first-child { font-size: 18px; font-weight: 700; }
.tri-value .tri-secondary { font-size: 9px; }
.tri-count { align-items: center; }
.tri-count > span:first-child { font-size: 11px; font-weight: 600; }
.tri-count .tri-secondary { font-size: 8px; }
.tri-user-role > span:first-child { font-size: 8px; }
.tri-user-role .tri-secondary { font-size: 6px; line-height: 1.2; }

.brand, .auth-brand {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
}
.brand span, .auth-brand span { color: var(--coral); }

.auth-body { background: #dfe5e2; }
.auth-stage { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 48%) minmax(500px, 52%); }
.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #283d37;
  background-image: url("../images/studio-team.a23ba26e6ff6.webp");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: white;
}
.auth-visual::after { content: ""; position: absolute; inset: 0; background: rgba(11, 31, 26, .18); }
.visual-copy { position: absolute; left: clamp(32px, 6%, 74px); right: 42px; bottom: 14%; z-index: 1; max-width: 560px; }
.visual-eyebrow { display: block; margin-bottom: 22px; }
.visual-eyebrow .tri-text > span:first-child { font-size: 11px; text-transform: uppercase; }
.visual-eyebrow .tri-secondary { color: rgba(255,255,255,.65); font-size: 9px; }
.auth-brand { margin-bottom: 22px; font-size: 58px; color: white; }
.auth-brand span { color: #ffc766; }
.visual-copy h1 { margin: 0; }
.visual-index { position: absolute; z-index: 1; left: clamp(32px, 6%, 74px); right: 42px; top: 48px; display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,.72); }
.auth-panel { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #fbfcfb; padding: 34px 54px; overflow-y: auto; }
.auth-panel-inner { width: min(100%, 570px); }
.auth-panel-brand { display: none; margin-bottom: 32px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); height: 62px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.auth-tabs a { position: relative; min-width: 0; padding: 0 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #6c7774; }
.auth-tabs a::after { content: ""; position: absolute; height: 3px; left: 0; right: 0; bottom: -1px; background: transparent; }
.auth-tabs a.active { color: var(--ink); }
.auth-tabs a.active::after { background: var(--teal); }
.tri-tab { align-items: center; text-align: center; }
.tri-tab > span:first-child { font-size: 14px; font-weight: 650; }
.tri-tab .tri-secondary { color: inherit; font-size: 10px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading.compact { margin-bottom: 20px; }
.auth-heading h2 { margin: 0 0 10px; }
.auth-heading p { margin: 0; color: var(--ink-soft); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.registration-form { gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-span-2 { grid-column: 1 / -1; }
.form-field { min-width: 0; }
.form-field label { display: block; margin-bottom: 7px; }
.control-wrap { position: relative; }
.control-wrap > svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; color: #7a8582; transform: translateY(-50%); pointer-events: none; }
.form-control {
  width: 100%;
  height: 48px;
  border: 1px solid #cfd8d4;
  border-radius: 6px;
  padding: 0 13px 0 42px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
select.form-control { cursor: pointer; }
.form-control:hover { border-color: #a6b3ae; }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,120,107,.12); }
.has-error .form-control { border-color: var(--coral); }
.field-errors, .form-alert { color: var(--coral-dark); font-size: 11px; line-height: 1.45; }
.field-errors { margin-top: 5px; display: flex; flex-direction: column; }
.form-alert { padding: 11px 13px; background: var(--coral-soft); border-left: 3px solid var(--coral); border-radius: 4px; }

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: white; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: #eef3f0; border-color: #bdcac5; }
.button-danger { background: var(--coral); color: white; }
.button-danger:hover { background: var(--coral-dark); }
.button-wide { width: 100%; margin-top: 4px; }
.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.icon-button:hover { background: #e7ece9; color: var(--ink); }
.icon-button.outlined { border: 1px solid var(--line); }
.success-state, .empty-state, .error-state { display: flex; flex-direction: column; align-items: center; text-align: center; }
.success-state { padding: 54px 0; }
.success-state h2, .empty-state h2 { margin: 20px 0 10px; }
.success-state p, .empty-state p { margin: 0 0 28px; color: var(--ink-soft); }
.state-icon { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--teal); background: var(--teal-soft); }
.state-icon.danger { color: var(--coral); background: var(--coral-soft); }

.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 18px 20px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.sidebar > .brand { margin-left: 14px; }
.primary-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 50px; }
.nav-item { min-height: 52px; padding: 8px 13px; border-radius: 6px; display: flex; align-items: center; gap: 12px; color: #65716d; }
.nav-item:hover { color: var(--ink); background: #f1f5f3; }
.nav-item.active { color: var(--teal-dark); background: var(--teal-soft); }
.sidebar-user { margin-top: auto; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px minmax(0, 1fr) 38px; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-weight: 700; }
.user-copy { min-width: 0; display: flex; flex-direction: column; }
.user-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-copy > .tri-user-role { margin-top: 2px; color: var(--ink-soft); }
.mobile-header, .mobile-menu { display: none; }
.main-content { min-height: 100vh; margin-left: var(--sidebar); padding: 0; }
.page-shell { width: min(100%, 1440px); margin: 0 auto; padding: 54px 50px; }
.page-header { min-height: 132px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 8px 0 9px; }
.dashboard-greeting { display: flex; align-items: flex-start; gap: 13px; }
.greeting-name { padding-top: 0; font-size: 30px; font-weight: 700; line-height: 1.25; }
.page-header p { margin: 0; color: var(--ink-soft); }
.page-kicker { color: var(--teal); font-size: 10px; font-weight: 700; }
.date-mark { color: #86918e; font-size: 12px; margin-top: 25px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.metric-card { min-height: 116px; padding: 20px; display: flex; align-items: center; gap: 15px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.metric-card > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.metric-icon { width: 44px; height: 44px; border-radius: 6px; display: grid; place-items: center; }
.metric-icon.mint { color: var(--teal); background: var(--teal-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.coral { color: var(--coral); background: var(--coral-soft); }
.metric-card .number { font-size: 25px; }
.metric-action .icon-button { margin-left: auto; }
.count-badge { min-width: 90px; padding: 12px 16px; border: 1px solid #edd3a7; border-radius: 7px; background: var(--amber-soft); display: flex; align-items: center; gap: 9px; }
.count-badge strong { color: var(--amber); font-size: 24px; }
.search-bar { height: 54px; margin: 26px 0 16px; padding: 5px 6px 5px 15px; display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.search-bar > svg { color: #84908c; }
.search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-bar .button { min-height: 42px; }
.data-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th { height: 62px; padding: 10px 14px; text-align: left; background: #f8faf9; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.data-table td { height: 72px; padding: 12px 14px; border-bottom: 1px solid #e8edeb; vertical-align: middle; font-size: 13px; word-break: break-word; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfb; }
.data-table th:nth-child(1) { width: 17%; }
.data-table th:nth-child(2) { width: 15%; }
.data-table th:nth-child(3) { width: 18%; }
.data-table th:nth-child(4) { width: 17%; }
.data-table th:nth-child(5) { width: 19%; }
.data-table th:nth-child(6) { width: 14%; }
.username { display: block; margin-bottom: 6px; }
.status-chip { display: inline-block; max-width: 100%; padding: 2px 6px; border-radius: 4px; font-size: 8px; line-height: 1.3; }
.status-chip.pending { color: #795116; background: var(--amber-soft); }
.status-chip.approved { color: var(--teal-dark); background: var(--teal-soft); }
.phone-value, time { color: var(--ink-soft); font-size: 12px; }
.dot { padding: 0 6px; color: #abb5b1; }
.actions-cell { text-align: right !important; white-space: nowrap; }
td.actions-cell { display: table-cell; }
td.actions-cell form { display: inline-flex; }
.icon-button.approve { color: var(--teal); background: var(--teal-soft); }
.icon-button.reject { color: var(--coral); background: var(--coral-soft); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.pagination > span { color: var(--ink-soft); font-size: 12px; }
.empty-state { min-height: 300px; justify-content: center; background: white; border: 1px dashed #cbd5d1; border-radius: 8px; }
.confirm-shell { min-height: calc(100vh - 100px); display: grid; place-items: center; padding: 40px; }
.confirm-panel { width: min(100%, 560px); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.confirm-panel h1 { margin: 20px 0 12px; }
.confirm-panel > p { margin: 0; color: var(--ink-soft); }
.confirm-summary { margin: 26px 0; border-top: 1px solid var(--line); }
.confirm-summary > div { display: grid; grid-template-columns: 45% 55%; padding: 12px 0; border-bottom: 1px solid var(--line); }
.confirm-summary dt { color: var(--ink-soft); font-size: 11px; }
.confirm-summary dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.message-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.message { padding: 11px 14px; border-radius: 5px; border-left: 3px solid var(--teal); background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; }
.message.warning, .message.error { border-left-color: var(--coral); background: var(--coral-soft); color: var(--coral-dark); }
.error-state { min-height: 70vh; justify-content: center; padding: 30px; }
.error-state.standalone { min-height: 100vh; }
.error-state > strong { color: #ccd4d1; font-size: 72px; line-height: 1; }
.error-state h1 { margin: 20px 0 10px; }
.error-state p { margin: 0 0 28px; color: var(--ink-soft); }
.employee-table th:nth-child(1) { width: 14%; }
.employee-table th:nth-child(2) { width: 14%; }
.employee-table th:nth-child(3) { width: 16%; }
.employee-table th:nth-child(4) { width: 16%; }
.employee-table th:nth-child(5) { width: 14%; }
.employee-table th:nth-child(6) { width: 17%; }
.employee-table th:nth-child(7) { width: 9%; }
.employee-count { border-color: #bcd9d1; background: var(--teal-soft); }
.employee-count strong { color: var(--teal); }
.employee-edit-shell { max-width: 1040px; }
.back-link { min-height: 38px; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.back-link:hover { color: var(--teal); }
.compact-header { min-height: 118px; align-items: center; }
.avatar.large { width: 54px; height: 54px; font-size: 18px; }
.employee-edit-form { margin-top: 24px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.employee-edit-form .form-grid { gap: 20px; }
.edit-actions { margin-top: 26px; padding-top: 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }

@media (max-width: 1050px) {
  :root { --sidebar: 210px; }
  .page-shell { padding-left: 30px; padding-right: 30px; }
  .auth-stage { grid-template-columns: minmax(320px, 40%) minmax(480px, 60%); }
  .auth-panel { padding-left: 36px; padding-right: 36px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 760px) {
  .auth-stage { display: block; }
  .auth-visual { min-height: 220px; height: 28vh; max-height: 290px; background-position: center 34%; }
  .visual-copy { left: 24px; right: 24px; bottom: 25px; }
  .visual-eyebrow, .visual-copy h1, .visual-index { display: none; }
  .auth-brand { margin: 0; font-size: 42px; }
  .auth-panel { min-height: 72vh; padding: 26px 20px 40px; align-items: flex-start; }
  .auth-tabs { margin-bottom: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .sidebar { display: none; }
  .mobile-header { position: sticky; z-index: 30; top: 0; height: 64px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
  .mobile-menu { position: fixed; z-index: 29; top: 64px; left: 0; right: 0; padding: 12px 18px 18px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu a, .mobile-menu button { width: 100%; min-height: 48px; padding: 8px 10px; display: flex; align-items: center; border: 0; border-radius: 5px; background: transparent; text-align: left; }
  .main-content { margin-left: 0; }
  .page-shell { padding: 30px 18px; }
  .page-header { min-height: 0; padding-bottom: 24px; }
  .page-header .date-mark { display: none; }
  .review-header { align-items: flex-end; }
  .count-badge { min-width: 86px; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
  .count-badge .tri-count { align-items: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .search-bar { height: auto; min-height: 52px; flex-wrap: wrap; }
  .search-bar input { min-width: calc(100% - 38px); height: 40px; }
  .search-bar .button { width: 100%; }
  .data-table-wrap { overflow: visible; border: 0; background: transparent; }
  .data-table, .data-table tbody { display: block; }
  .data-table thead { display: none; }
  .data-table tr { display: block; margin-bottom: 12px; padding: 10px 14px; background: white; border: 1px solid var(--line); border-radius: 8px; }
  .data-table td, td.actions-cell { min-height: 44px; height: auto; padding: 10px 0; display: grid; grid-template-columns: minmax(115px, 42%) 1fr; align-items: center; border-bottom: 1px solid #edf1ef; text-align: right !important; }
  .data-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: 9px; text-align: left; white-space: normal; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td > * { justify-self: end; }
  td.actions-cell { display: flex; justify-content: flex-end; gap: 8px; }
  td.actions-cell::before { margin-right: auto; align-self: center; }
  .confirm-shell { min-height: calc(100vh - 64px); padding: 20px; }
  .confirm-panel { padding: 26px 20px; }
  .employee-edit-form { padding: 20px 16px; }
  .compact-header .avatar { display: none; }
  .edit-actions { flex-direction: column-reverse; }
  .edit-actions .button { width: 100%; }
}

@media (max-width: 380px) {
  .auth-panel { padding-left: 15px; padding-right: 15px; }
  .tri-page-title > span:first-child { font-size: 25px; }
  .count-badge { min-width: 74px; padding: 9px 10px; }
  .page-shell { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
