/* ==========================================================================
   RIB Admin Console — Material Design 3 × Cupertino Warm Orange & Yellow Theme
   PT Rencana Indah Bersama
   ========================================================================== */

:root {
  --bg-canvas: #faf7f2;
  --surface: #ffffff;
  --surface-tonal: #fff8f0;
  --surface-container: #f5efe6;
  --divider: #f0e8dd;

  --ink-1: #1c1917;
  --ink-2: #57534e;
  --ink-3: #a8a29e;

  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;

  --yellow-500: #f59e0b;
  --yellow-400: #fbbf24;
  --yellow-100: #fef3c7;

  --green-600: #059669;
  --green-100: #dcfce7;
  --red-600: #dc2626;
  --red-100: #fee2e2;

  --elev-1: 0 1px 3px rgba(28, 25, 23, 0.04), 0 6px 18px rgba(28, 25, 23, 0.04);
  --elev-2: 0 12px 32px rgba(28, 25, 23, 0.1), 0 2px 8px rgba(28, 25, 23, 0.05);
  --elev-orange: 0 8px 20px -4px rgba(234, 88, 12, 0.34);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Roboto', sans-serif;
  background: var(--bg-canvas);
  color: var(--ink-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* ==================== BUTTONS & INPUTS (MATERIAL 3) ==================== */
.btn {
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-500) 100%);
  color: #ffffff;
  box-shadow: var(--elev-orange);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-tonal {
  background: var(--orange-100);
  color: var(--orange-700);
}

.btn-tonal:hover {
  background: #fed7aa;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink-1);
  box-shadow: inset 0 0 0 1.5px #e7dfd4;
}

.btn-outline:hover {
  background: var(--surface-tonal);
}

.btn-danger-tonal {
  background: var(--red-100);
  color: var(--red-600);
}

.btn-danger-tonal:hover {
  background: #fecaca;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

.icon-action {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: var(--surface-container);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.icon-action:hover {
  background: var(--orange-100);
  color: var(--orange-700);
}

.icon-action.danger:hover {
  background: var(--red-100);
  color: var(--red-600);
}

.field {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field-input,
.field-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-1);
  background: var(--surface-container);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.field-input:focus,
.field-select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inline-alert {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  background: var(--red-100);
  color: #991b1b;
}

.inline-alert.show {
  display: flex;
}

/* ==================== LOGIN VIEW (Gambar 3.36) ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.22), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(234, 88, 12, 0.16), transparent 38%),
    var(--bg-canvas);
}

.login-shell {
  width: 100%;
  max-width: 860px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--elev-2);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
}

.login-visual {
  background: linear-gradient(145deg, #c2410c 0%, #ea580c 52%, #f59e0b 100%);
  color: #ffffff;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(254, 243, 199, 0.14);
  top: -80px;
  right: -80px;
}

.login-visual::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  bottom: -60px;
  left: -40px;
}

.brand-mark-lg {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.login-visual h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  position: relative;
  z-index: 2;
}

.login-visual p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 10px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.login-visual-foot {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 2;
}

.login-form-pane {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-pane h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}

.login-form-pane .sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
  margin-bottom: 24px;
}

.login-alt-link {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
}

.login-alt-link a {
  color: var(--orange-600);
  font-weight: 700;
  text-decoration: none;
}

/* ==================== ADMIN CONSOLE SHELL ==================== */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 264px;
  background: var(--surface);
  border-right: 1px solid var(--divider);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 16px;
}

.brand-mark-sm {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange-600), var(--yellow-500));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.25);
}

.sidebar-brand-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-1);
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 600;
}

.nav-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px 6px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.side-link {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 11px 14px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  text-align: left;
  text-decoration: none;
}

.side-link:hover {
  background: var(--surface-tonal);
  color: var(--ink-1);
}

.side-link.active {
  background: var(--orange-100);
  color: var(--orange-700);
  font-weight: 700;
}

.side-link.active svg {
  color: var(--orange-600);
}

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Main Content Area */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 68px;
  padding: 0 28px;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 25;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--surface);
  color: var(--ink-1);
  box-shadow: var(--elev-1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.page-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}

.page-breadcrumb {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  padding: 5px 14px 5px 6px;
  border-radius: var(--r-pill);
  box-shadow: var(--elev-1);
}

.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-600), var(--yellow-500));
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-chip-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.2;
}

.admin-chip-role {
  font-size: 10.5px;
  color: var(--ink-2);
}

.content-wrap {
  padding: 24px 28px 40px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.view-panel {
  display: none;
  animation: fadeIn 0.16s ease-out;
}

.view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0.65; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== DASHBOARD VIEW ==================== */
.welcome-hero {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 55%, #f59e0b 100%);
  color: #ffffff;
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px -10px rgba(234, 88, 12, 0.36);
}

.welcome-hero::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(254, 243, 199, 0.16);
  top: -90px;
  right: 120px;
  pointer-events: none;
}

.welcome-hero h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.welcome-hero p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

.hero-btn-white {
  background: #ffffff;
  color: var(--orange-700);
  box-shadow: 0 6px 16px rgba(28, 25, 23, 0.14);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--elev-1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.kpi-val {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink-1);
  margin-top: 6px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--orange-100);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon.yellow {
  background: var(--yellow-100);
  color: #b45309;
}

.kpi-icon.green {
  background: var(--green-100);
  color: var(--green-600);
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--elev-1);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.card-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

.live-map-box {
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #ede6dc;
  position: relative;
}

#adminLiveMap,
#outletPickerMap {
  width: 100%;
  height: 100%;
}

.leaflet-tile-pane {
  filter: saturate(0.92) sepia(0.05) contrast(1.02);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--green-100);
  color: var(--green-600);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-pill.off {
  background: var(--red-100);
  color: var(--red-600);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sales-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sales-status-item {
  background: var(--surface-tonal);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ss-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-1);
}

.ss-meta {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.ss-coord {
  font-size: 11px;
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 2px;
}

/* ==================== TOOLBAR & DATA TABLES ==================== */
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--surface-container);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-1);
  transition: background 0.15s, box-shadow 0.15s;
}

.search-box input:focus {
  outline: none;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--orange-500);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-input {
  height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--surface-container);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink-1);
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 11px 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-tonal);
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}

.data-table th:first-child {
  border-radius: 12px 0 0 12px;
}

.data-table th:last-child {
  border-radius: 0 12px 12px 0;
}

.data-table td {
  padding: 12px 11px;
  border-bottom: 1px solid var(--divider);
  color: var(--ink-1);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: #fffcf7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.orange { background: var(--orange-100); color: var(--orange-700); }
.badge.yellow { background: var(--yellow-100); color: #92400e; }
.badge.green { background: var(--green-100); color: var(--green-600); }
.badge.neutral { background: var(--surface-container); color: var(--ink-2); }

.actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.empty-table {
  text-align: center;
  padding: 42px 20px;
  color: var(--ink-2);
}

.empty-table h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 4px;
}

/* ==================== JOURNEY PLAN HUB (Gambar 3.40 - 3.43) ==================== */
.jp-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.jp-hub-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--elev-1);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
}

.jp-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
}

.jp-hub-card.active {
  border-color: var(--orange-500);
  background: var(--orange-50);
}

.jp-hub-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--orange-100);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jp-hub-icon.yellow {
  background: var(--yellow-100);
  color: #b45309;
}

.jp-hub-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink-1);
}

.jp-hub-card p {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.45;
}

/* ==================== MODALS (CRUD, MAP PICKER, DETAIL KUNJUNGAN) ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.48);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: var(--surface);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: var(--elev-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popIn 0.16s ease-out;
}

.modal-dialog.wide {
  max-width: 720px;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink-1);
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.picker-map-wrap {
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #ede6dc;
}

.visit-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: start;
}

.visit-photo-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #141210;
  aspect-ratio: 4 / 3;
  box-shadow: var(--elev-1);
}

.visit-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-kv {
  background: var(--surface-tonal);
  border-radius: 16px;
  overflow: hidden;
}

.detail-kv-row {
  padding: 11px 14px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.detail-kv-row:last-child {
  border-bottom: none;
}

.detail-kv-row span:first-child {
  color: var(--ink-2);
}

.detail-kv-row span:last-child {
  font-weight: 700;
  color: var(--ink-1);
  text-align: right;
}

.selected-outlets-box {
  background: var(--surface-tonal);
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
}

/* Custom Leaflet Pins */
.admin-pin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-600);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 8px rgba(28, 25, 23, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.admin-sales-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.24), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #1c1917;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--elev-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s, transform 0.18s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: #065f46; }
.toast.error { background: #991b1b; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-visual {
    padding: 28px 24px;
  }
  .sidebar {
    position: fixed;
    left: -280px;
    z-index: 60;
    transition: left 0.2s ease;
    box-shadow: var(--elev-2);
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .topbar {
    padding: 0 16px;
  }
  .content-wrap {
    padding: 18px 16px 32px;
  }
  .jp-hub-grid,
  .visit-detail-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .welcome-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
