/* VetKlinik — style.css */
:root {
  --primary: #0d9488;
  --primary-700: #0f766e;
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e6eaf0;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --ok: #16a34a;
  --ok-bg: #f0fdf4;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --info: #2563eb;
  --info-bg: #eff6ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.16);
  --sidebar-w: 250px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--primary-700);
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

/* ---------------- Layout ---------------- */
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f766e 0%, #134e4a 100%);
  color: #ccfbf1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}
.brand-sub {
  font-size: 11.5px;
  color: #99f6e4;
  opacity: 0.9;
}
.nav {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 10px;
  color: #d1faf3;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.nav a .ic {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.nav a.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 3px 0 0 #5eead4;
}
.nav-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 8px 6px;
}
.sidebar-foot {
  padding: 14px 18px;
  font-size: 11px;
  color: #7fd8cb;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 62px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-title {
  font-size: 18px;
  font-weight: 700;
}
.topbar-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.menu-btn {
  display: none;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}
.view {
  padding: 24px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* ---------------- Page header ---------------- */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h2 {
  font-size: 20px;
}
.page-head .sub {
  color: var(--muted);
  font-size: 13px;
}
.page-head .spacer {
  flex: 1;
}

/* ---------------- Cards ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad {
  padding: 18px 20px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.card-head .spacer {
  flex: 1;
}
.grid {
  display: grid;
  gap: 16px;
}
.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) {
  .cols-2,
  .cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Stat cards ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat .stat-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat .stat-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.stat .stat-lbl {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.ic-teal {
  background: var(--primary-50);
}
.ic-blue {
  background: var(--info-bg);
}
.ic-amber {
  background: var(--warn-bg);
}
.ic-green {
  background: var(--ok-bg);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:active {
  transform: translateY(0.5px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-700);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: #f8fafc;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  filter: brightness(0.94);
}
.btn-sm {
  padding: 5px 11px;
  font-size: 13px;
}
.btn-icon {
  padding: 6px 9px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 15px;
}
.btn-icon:hover {
  background: #f1f5f9;
  color: var(--text);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------------- Tables ---------------- */
.table-wrap {
  overflow-x: auto;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  text-align: left;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  white-space: nowrap;
}
.tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tbl tr:last-child td {
  border-bottom: none;
}
.tbl tbody tr {
  transition: background 0.1s;
}
.tbl tbody tr:hover {
  background: #f8fafc;
}
.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.row-link {
  cursor: pointer;
}
.t-strong {
  font-weight: 700;
}
.t-muted {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------- Badges ---------------- */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge-wait {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge-info {
  background: var(--info-bg);
  color: var(--info);
}
.badge-muted {
  background: #f1f5f9;
  color: var(--muted);
}
.badge-teal {
  background: var(--primary-50);
  color: var(--primary-700);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: var(--muted);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------------- Forms ---------------- */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #334155;
}
.field label .req {
  color: var(--danger);
}
.input,
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.13);
}
textarea {
  resize: vertical;
  min-height: 66px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------------- Search bar ---------------- */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.search {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search input {
  padding-left: 34px;
}
.search::before {
  content: '🔍';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.6;
}
.filter-select {
  width: auto;
  min-width: 150px;
}

/* ---------------- Modal ---------------- */
.modal-root {
  display: none;
}
.modal-root.open {
  display: block;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 100;
  overflow-y: auto;
  animation: fade 0.15s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.16s ease;
  margin: auto 0;
}
@keyframes pop {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }
}
.modal-head {
  display: flex;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 {
  font-size: 17px;
}
.modal-head .x {
  margin-left: auto;
  cursor: pointer;
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
  background: none;
  border: none;
}
.modal-body {
  padding: 20px 22px;
  max-height: 68vh;
  overflow-y: auto;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------------- Toast ---------------- */
.toast-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}
.toast {
  background: #1e293b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: 340px;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-success {
  background: #0f766e;
}
.toast-error {
  background: #b91c1c;
}
.toast-info {
  background: #1d4ed8;
}

/* ---------------- Misc ---------------- */
.loading,
.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
  font-size: 15px;
}
.empty .big {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.7;
}
.list-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 14px;
  font-size: 14px;
}
.dl dt {
  color: var(--muted);
  font-weight: 600;
}
.dl dd {
  margin: 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 12px;
  cursor: pointer;
}
.back-link:hover {
  color: var(--text);
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tabs button {
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}
.tabs button.active {
  color: var(--primary-700);
  border-bottom-color: var(--primary);
}
.alert {
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.alert-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #fde68a;
}
.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}
.timeline {
  position: relative;
  padding-left: 22px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding-bottom: 18px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-100);
}
.tl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-head .spacer {
  flex: 1;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.soap {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.soap div {
  font-size: 13.5px;
}
.soap b {
  color: var(--primary-700);
}
.money-big {
  font-size: 26px;
  font-weight: 800;
}

/* line items editor */
.items-tbl input {
  padding: 6px 8px;
  font-size: 13.5px;
}
.items-tbl td {
  padding: 5px 5px;
}
.items-tbl th {
  padding: 6px 5px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 780px) {
  .sidebar {
    position: fixed;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-btn {
    display: block;
  }
  .view {
    padding: 16px;
  }
}

/* ---------------- Print (struk/invoice) ---------------- */
.print-only {
  display: none;
}
@media print {
  .sidebar,
  .topbar,
  .no-print,
  #toast {
    display: none !important;
  }
  .app,
  .main,
  .view {
    display: block;
    padding: 0;
    margin: 0;
    max-width: none;
    background: #fff;
  }
  .card {
    border: none;
    box-shadow: none;
  }
  .print-only {
    display: block;
  }
  body {
    background: #fff;
    font-size: 12px;
  }
  @page {
    margin: 14mm;
  }
}

/* ---------------- Asisten Kasus (chat) ---------------- */
.chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 260px);
  min-height: 420px;
  overflow: hidden;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-empty {
  margin: auto;
  text-align: center;
  max-width: 560px;
  padding: 10px;
}
.chat-empty-ic {
  font-size: 40px;
  opacity: 0.8;
}
.chat-empty-title {
  font-weight: 700;
  font-size: 16px;
  margin: 6px 0 2px;
}
.chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 13px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}
.msg {
  display: flex;
  gap: 10px;
  max-width: 100%;
}
.msg-user {
  justify-content: flex-end;
}
.msg-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-50);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 76%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.msg-user .bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.msg-ai .bubble {
  background: #f1f5f9;
  color: var(--text);
  border-bottom-left-radius: 3px;
}
.bubble-err {
  background: var(--danger-bg) !important;
  color: var(--danger) !important;
  border: 1px solid #fecaca;
}
.bubble.md p {
  margin: 0 0 8px;
}
.bubble.md p:last-child {
  margin-bottom: 0;
}
.bubble.md ul,
.bubble.md ol {
  margin: 4px 0 10px;
  padding-left: 20px;
}
.bubble.md li {
  margin: 2px 0;
}
.bubble.md .md-h {
  font-weight: 700;
  margin: 10px 0 4px;
  color: var(--primary-700);
}
.bubble.md .md-h:first-child {
  margin-top: 0;
}
.bubble.md code {
  background: rgba(15, 23, 42, 0.08);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: 'Consolas', 'Menlo', monospace;
}
.chat-input {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: #fafbfc;
}
.chat-input textarea {
  flex: 1;
  min-height: 42px;
  max-height: 160px;
  resize: none;
  border-radius: 10px;
}
.chat-input .btn {
  height: 42px;
  padding: 0 18px;
  font-size: 17px;
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 3px 0;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: blink 1.2s infinite ease-in-out both;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (max-width: 780px) {
  .chat {
    height: calc(100vh - 230px);
  }
  .bubble {
    max-width: 88%;
  }
}

/* ---------------- Komunikasi (WhatsApp) ---------------- */
.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  background: #1ebe5b;
}
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.comm-list {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
}
.comm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.comm-row:last-child {
  border-bottom: none;
}
.comm-main {
  flex: 1;
  min-width: 0;
}
.comm-main .t-muted {
  font-size: 12.5px;
  margin-top: 2px;
}

/* ---------------- Kedatangan Pasien (antrian ruang tunggu) ---------------- */
.q-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.q-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.q-chip b {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.q-chip.q-total b {
  color: var(--primary-700);
}
.q-chip.q-wait b {
  color: var(--warn);
}
.q-chip.q-exam b {
  color: var(--info);
}
.q-chip.q-done b {
  color: var(--ok);
}
.q-no {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 800;
  font-size: 13px;
}

/* ---------------- Login (layar autentikasi) ---------------- */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, #0f766e 0%, #134e4a 55%, #0f172a 100%);
}
.auth-card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  padding: 32px 30px;
  text-align: center;
}
.auth-logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--primary-50);
  display: grid;
  place-items: center;
  font-size: 34px;
  margin: 0 auto 14px;
}
.auth-title {
  font-size: 24px;
  font-weight: 800;
}
.auth-sub {
  color: var(--muted);
  margin: 4px 0 20px;
  font-size: 13.5px;
}
.auth-card form {
  text-align: left;
}
.auth-err {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Kotak identitas user di kaki sidebar */
.sidebar-foot .user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.user-ava {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.user-meta {
  min-width: 0;
}
.user-name {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  color: #99f6e4;
  font-size: 11.5px;
  font-weight: 600;
}
.user-actions {
  display: flex;
  gap: 8px;
}
.user-actions .btn {
  flex: 1;
  justify-content: center;
}
