/* =====================================================
   Dallas Palms Venue - Admin Design System
   Fonts: Cormorant (headings) + Inter (body)
   Accent: Warm Orange #EFA065
   ===================================================== */

/* -- Custom Properties -------------------------------- */
:root {
  --dp-dark:   #1C1C2E;
  --dp-mid:    #2D2D44;
  --dp-light:  #FAFAF8;
  --palm-50:   #fff8f0;
  --palm-100:  #ffecda;
  --palm-200:  #fdd6b1;
  --palm-300:  #f5bc82;
  --palm-400:  #EFA065;
  --palm-500:  #d8854a;
  --palm-600:  #c06e34;
  --palm-700:  #9a5428;
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
}

/* -- Reset / Base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dp-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant', Georgia, serif;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--palm-200); color: var(--dp-dark); }

/* =====================================================
   Admin Layout
   ===================================================== */

.dp-admin-body {
  padding-top: 0;
  background: var(--stone-100);
  min-height: 100vh;
}

.dp-login-body {
  background: var(--dp-dark);
  min-height: 100vh;
}

/* -- Sidebar ------------------------------------------ */
.admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 224px;
  background: var(--dp-dark);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-brand-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.admin-sidebar-brand-text {
  font-family: 'Cormorant', serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.admin-sidebar-brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: var(--palm-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* -- Nav Items ---------------------------------------- */
.admin-nav {
  flex: 1;
  padding: 8px 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.admin-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.admin-nav-item.active {
  color: #fff;
  background: rgba(239,160,101,0.15);
}

.admin-nav-item.active .admin-nav-icon {
  color: var(--palm-400);
}

.admin-nav-icon {
  display: inline-block;
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.admin-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 16px;
}

.admin-nav-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 12px 16px 4px;
  margin: 0;
}

/* -- Sidebar Footer ----------------------------------- */
.admin-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
}

/* -- Main Content Area -------------------------------- */
.admin-main {
  margin-left: 224px;
  min-height: 100vh;
  padding: 32px 32px 48px;
}

/* -- Top Bar ------------------------------------------ */
.admin-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--dp-dark);
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 999;
}

.admin-topbar-title {
  font-family: 'Cormorant', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.admin-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.admin-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* Desktop topbar override */
@media(min-width:768px) {
  .admin-topbar {
    display: flex !important;
    position: fixed;
    top: 0; left: 224px; right: 0;
    height: 52px;
    background: #fff;
    border-bottom: 1px solid #e7e5e4;
    padding: 0 24px;
    z-index: 500;
    gap: 0;
  }
  .admin-topbar .admin-hamburger { display: none; }
  .admin-topbar-title { display: none; }
  .dp-admin-body .admin-main { padding-top: 84px; }
}

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

.admin-topbar-user-info {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.admin-topbar-user-info:hover {
  background: rgba(255,255,255,0.12);
}

.admin-topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--dp-dark); color: var(--palm-400);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase;
}

.admin-topbar-user-text {
  display: flex; flex-direction: column; line-height: 1.25;
}

.admin-topbar-username {
  font-size: 13px; font-weight: 600; color: var(--dp-dark);
}

.admin-topbar-role {
  font-size: 11px; color: #a8a29e; text-transform: capitalize;
}

.admin-topbar-signout-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: #78716c;
  background: #f5f4f2; border: 1px solid #e7e5e4;
  border-radius: 2px; padding: 5px 12px;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}

.admin-topbar-signout-btn:hover { background: #ede8e3; color: var(--dp-dark); }

@media(max-width:767px) {
  .admin-topbar-avatar { background: var(--palm-400); color: var(--dp-dark); }
  .admin-topbar-username, .admin-topbar-role { color: rgba(255,255,255,.85); }
  .admin-topbar-signout-btn {
    background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
  }
}

/* -- Mobile Overlay ----------------------------------- */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.admin-overlay.open { display: block; }

/* -- Mobile Responsive -------------------------------- */
@media (max-width: 767px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-topbar { display: flex; }
  .dp-admin-body .admin-main {
    margin-left: 0;
    padding: 68px 16px 32px;
  }
}

/* =====================================================
   Admin Components
   ===================================================== */

/* -- Page Title --------------------------------------- */
.admin-page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dp-dark);
  margin: 0 0 24px;
}

/* -- Cards -------------------------------------------- */
.admin-card {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
}

.admin-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dp-dark);
  margin: 0 0 20px;
}

/* -- Toolbar ------------------------------------------ */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  max-width: 480px;
}

.admin-search-input { flex: 1; }

/* -- Buttons ------------------------------------------ */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}

.admin-btn-primary {
  background: var(--palm-500);
  color: #fff;
}

.admin-btn-primary:hover {
  background: var(--palm-600);
  color: #fff;
}

.admin-btn-secondary {
  background: var(--stone-100);
  color: var(--stone-600);
  border: 1px solid var(--stone-200);
}

.admin-btn-secondary:hover {
  background: var(--stone-200);
}

.admin-btn-danger {
  background: #fee2e2;
  color: #991b1b;
}

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

/* -- Inputs ------------------------------------------- */
.admin-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--dp-dark);
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.admin-input:focus {
  outline: none;
  border-color: var(--palm-400);
  box-shadow: 0 0 0 2px rgba(239,160,101,0.15);
}

.admin-textarea {
  resize: vertical;
  min-height: 72px;
}

/* -- Form Layout -------------------------------------- */
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-form-group { margin-bottom: 16px; }
.admin-form-row > .admin-form-group { margin-bottom: 0; }

.admin-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--stone-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.admin-required { color: #ef4444; }

.admin-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* -- Select ------------------------------------------- */
.admin-select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--dp-dark);
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  transition: border-color 0.15s;
  box-sizing: border-box;
  cursor: pointer;
}

.admin-select:focus {
  outline: none;
  border-color: var(--palm-400);
  box-shadow: 0 0 0 2px rgba(239,160,101,0.15);
}

/* -- Tables ------------------------------------------- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--stone-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 2px solid var(--stone-200);
}

.admin-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--stone-100);
  color: var(--stone-600);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: var(--stone-50);
}

/* -- Action Links ------------------------------------- */
.admin-action-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--palm-600);
  text-decoration: none;
  margin-right: 8px;
  cursor: pointer;
}

.admin-action-link:hover {
  color: var(--palm-700);
  text-decoration: underline;
}

.admin-action-delete { color: #ef4444; }
.admin-action-delete:hover { color: #dc2626; }

/* -- Status Messages ---------------------------------- */
.admin-status-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}

.admin-status-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* -- Flash Message ------------------------------------ */
.flash-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2000;
  max-width: 420px;
  width: 100%;
}

.flash-container .alert {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.btn-close {
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; opacity: 0.6; line-height: 1; padding: 0;
}
.btn-close:hover { opacity: 1; }

/* -- Status Badges ------------------------------------ */
.lead-status-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.status-blue   { background: #dbeafe; color: #1e40af; }
.status-purple { background: #ede9fe; color: #6d28d9; }
.status-yellow { background: #fef9c3; color: #a16207; }
.status-orange { background: #ffedd5; color: #c2410c; }
.status-amber  { background: #fef3c7; color: #b45309; }
.status-teal   { background: #ccfbf1; color: #0f766e; }
.status-green  { background: #dcfce7; color: #166534; }
.status-cyan   { background: #cffafe; color: #0e7490; }
.status-stone  { background: var(--stone-100); color: var(--stone-500); }
.status-faded  { background: var(--stone-100); color: var(--stone-400); }

/* =====================================================
   Dashboard
   ===================================================== */

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.dash-kpi-card {
  display: block;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 4px;
  padding: 20px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-kpi-card:hover {
  border-color: var(--palm-400);
  box-shadow: 0 2px 8px rgba(239,160,101,0.15);
}

.dash-kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--palm-600);
  margin-bottom: 8px;
}

.dash-kpi-val {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dp-dark);
  line-height: 1;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}

.dash-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-card-header .admin-card-title { margin-bottom: 0; }

.dash-view-all {
  font-size: 12px;
  color: var(--palm-600);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.dash-view-all:hover { color: var(--dp-dark); }

.dash-tour-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--stone-100);
  font-size: 13px;
}

.dash-tour-row:last-child { border-bottom: none; }
.dash-tour-name { font-weight: 600; color: var(--dp-dark); }
.dash-tour-date { color: var(--stone-400); white-space: nowrap; }

.dash-pipeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--stone-100);
}

.dash-pipeline-row:last-child { border-bottom: none; }

.dash-pipeline-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--dp-dark);
}

.dash-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-actions .admin-btn { text-align: center; }

/* =====================================================
   Login Page
   ===================================================== */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--dp-dark);
}

.login-card {
  background: #fff;
  border-radius: 4px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.login-brand h1 {
  font-family: 'Cormorant', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dp-dark);
  margin-bottom: 4px;
}

.login-brand p {
  font-size: 12px;
  color: var(--stone-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-form-group {
  margin-bottom: 16px;
}

.login-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--stone-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.login-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--dp-dark);
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: var(--palm-400);
  box-shadow: 0 0 0 2px rgba(239,160,101,0.15);
}

.login-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--palm-500);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}

.login-btn:hover { background: var(--palm-600); }

.login-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.login-clockin-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stone-200);
}

.login-clockin-link a {
  font-size: 13px;
  color: var(--stone-400);
  text-decoration: none;
  transition: color 0.15s;
}

.login-clockin-link a:hover { color: var(--palm-400); }

/* =====================================================
   Kiosk (ClockIn Page)
   ===================================================== */

.kiosk-body {
  background: var(--dp-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Inter', system-ui, sans-serif;
}

.kiosk-card {
  background: #fff;
  border-radius: 6px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  text-align: center;
}

.kiosk-brand { margin-bottom: 32px; }
.kiosk-brand-icon { font-size: 40px; margin-bottom: 8px; }

.kiosk-brand h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 26px; font-weight: 700;
  color: var(--dp-dark); margin: 0 0 4px;
}

.kiosk-brand p {
  font-size: 11px; color: var(--stone-400);
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0;
}

.kiosk-input-pin {
  display: block; width: 100%; padding: 14px 16px;
  font-family: 'Inter', sans-serif; font-size: 28px;
  font-weight: 700; letter-spacing: 0.6em; text-align: center;
  color: var(--dp-dark); background: #fff;
  border: 2px solid var(--stone-300); border-radius: 4px;
  transition: border-color 0.15s; box-sizing: border-box;
}

.kiosk-input-pin:focus {
  outline: none; border-color: var(--palm-400);
  box-shadow: 0 0 0 3px rgba(239,160,101,0.2);
}

.kiosk-btn {
  display: block; width: 100%; padding: 14px;
  background: var(--palm-500); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 14px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border: none; border-radius: 4px; cursor: pointer;
  transition: background 0.15s; margin-top: 16px;
}

.kiosk-btn:hover { background: var(--palm-600); }

.kiosk-btn-secondary {
  display: block; width: 100%; padding: 12px;
  background: var(--stone-100); color: var(--stone-600);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  border: 1px solid var(--stone-200); border-radius: 4px;
  cursor: pointer; transition: background 0.15s;
  margin-top: 10px; text-decoration: none; text-align: center;
}

.kiosk-btn-secondary:hover { background: var(--stone-200); }

.kiosk-form-group { text-align: left; margin-bottom: 14px; }

.kiosk-form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--stone-500); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 6px;
}

.kiosk-input {
  display: block; width: 100%; padding: 10px 14px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--dp-dark); background: #fff;
  border: 1px solid var(--stone-300); border-radius: 4px;
  transition: border-color 0.15s; box-sizing: border-box;
}

.kiosk-input:focus {
  outline: none; border-color: var(--palm-400);
  box-shadow: 0 0 0 2px rgba(239,160,101,0.15);
}

.kiosk-success { text-align: center; }
.kiosk-success-action {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--palm-500); margin-bottom: 8px;
}
.kiosk-success-name {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 32px; font-weight: 700; color: var(--dp-dark); margin-bottom: 8px;
}
.kiosk-success-time { font-size: 18px; color: var(--stone-500); margin-bottom: 4px; }
.kiosk-success-hours { font-size: 15px; font-weight: 600; color: var(--palm-600); margin-top: 8px; }
.kiosk-countdown { font-size: 12px; color: var(--stone-400); margin-top: 24px; }
.kiosk-error { color: #ef4444; font-size: 13px; margin-top: 10px; }

.kiosk-link {
  display: inline-block; margin-top: 16px; font-size: 12px;
  color: var(--stone-400); text-decoration: none; transition: color 0.15s;
}
.kiosk-link:hover { color: var(--palm-400); }

/* =====================================================
   Modals / Misc
   ===================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 90%; max-width: 640px;
  max-height: 85vh; overflow-y: auto;
}

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--stone-200);
}
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--stone-200);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* -- Empty State -------------------------------------- */
.admin-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--stone-400);
  font-size: 14px;
}

/* -- Badges ------------------------------------------ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info    { background: #dbeafe; color: #1e40af; }

/* -- Utilities --------------------------------------- */
.text-muted   { color: var(--stone-400); }
.text-center  { text-align: center; }
.hide-mobile  { }

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 767px) {
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-search-wrap { max-width: none; }
  .hide-mobile { display: none; }
  .kiosk-card { padding: 32px 24px; }
  .kiosk-input-pin { font-size: 22px; letter-spacing: 0.4em; }
  .kiosk-success-name { font-size: 26px; }
}

@media print {
  .admin-sidebar, .admin-topbar, .admin-overlay { display: none !important; }
  .admin-main { margin-left: 0 !important; padding-top: 0 !important; }
  .flash-container, .admin-btn { display: none !important; }
}

/* =====================================================
   Legacy class aliases (used by existing page templates)
   ===================================================== */

.card { background:#fff; border:1px solid var(--stone-200); border-radius:4px; padding:24px; margin-bottom:20px; }
.card h3 { font-family:'Inter',sans-serif; font-size:16px; font-weight:700; color:var(--dp-dark); margin-bottom:12px; }
.card p  { font-size:13.5px; color:var(--stone-500); margin-bottom:0; }

.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-bottom:20px; }

.btn { display:inline-flex; align-items:center; justify-content:center; padding:8px 16px;
  font-family:'Inter',sans-serif; font-size:13px; font-weight:600; border-radius:4px;
  border:none; cursor:pointer; text-decoration:none; white-space:nowrap; transition:background .15s; }
.btn-primary  { background:var(--palm-500); color:#fff; }
.btn-primary:hover { background:var(--palm-600); color:#fff; }
.btn-danger   { background:#fee2e2; color:#991b1b; }
.btn-danger:hover { background:#fecaca; }
.btn-outline  { background:transparent; color:var(--palm-600); border:1px solid var(--palm-500); }
.btn-outline:hover { background:var(--palm-500); color:#fff; }
.btn-secondary { background:var(--stone-100); color:var(--stone-600); border:1px solid var(--stone-200); }
.btn-secondary:hover { background:var(--stone-200); }
.btn-sm { padding:5px 12px; font-size:12px; }
.btn-logout { background:rgba(255,255,255,.15); color:#fff; }

table { width:100%; border-collapse:collapse; font-size:13.5px; }
th { text-align:left; font-size:11px; font-weight:600; color:var(--stone-400);
  text-transform:uppercase; letter-spacing:.06em; padding:8px 12px;
  border-bottom:2px solid var(--stone-200); background:transparent; }
td { padding:10px 12px; border-bottom:1px solid var(--stone-100); color:var(--stone-600); vertical-align:middle; }
tbody tr:hover { background:var(--stone-50); }

label { display:block; font-size:12px; font-weight:600; color:var(--stone-500);
  text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="url"], input[type="tel"], input[type="date"], select, textarea {
  width:100%; padding:8px 12px; font-family:'Inter',sans-serif; font-size:13.5px;
  color:var(--dp-dark); background:#fff; border:1px solid var(--stone-300);
  border-radius:4px; transition:border-color .15s; box-sizing:border-box; }
input:focus, select:focus, textarea:focus {
  outline:none; border-color:var(--palm-400); box-shadow:0 0 0 2px rgba(239,160,101,.15); }
textarea { resize:vertical; min-height:100px; }
input[type="checkbox"] { width:auto; margin-right:.5rem; }

.badge { display:inline-block; padding:3px 10px; border-radius:10px; font-size:11px; font-weight:600; }
.badge-success { background:#dcfce7; color:#166534; }
.badge-danger  { background:#fee2e2; color:#991b1b; }
.badge-warning { background:#fef3c7; color:#92400e; }
.badge-info    { background:#dbeafe; color:#1e40af; }
.badge-new       { background:#e0f2fe; color:#0277bd; }
.badge-contacted { background:#f3e5f5; color:#7b1fa2; }
.badge-tour      { background:#fff3e0; color:#ef6c00; }
.badge-proposal  { background:#e8f5e8; color:#2e7d32; }
.badge-booked    { background:#e1f5fe; color:#0288d1; }
.badge-lost      { background:#ffebee; color:#c62828; }

.modal-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.5); z-index:1100; justify-content:center; align-items:center; }
.modal-overlay.active { display:flex; }
.modal { background:#fff; border-radius:4px; width:90%; max-width:800px;
  max-height:80vh; overflow-y:auto; box-shadow:0 8px 32px rgba(0,0,0,.2); }
.modal-header { display:flex; justify-content:space-between; align-items:center;
  padding:16px 24px; border-bottom:1px solid var(--stone-200); }
.modal-header h3 { margin:0; font-size:16px; }
.modal-close { background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--stone-400); }
.modal-body { padding:24px; }
.modal-footer { padding:16px 24px; border-top:1px solid var(--stone-200);
  display:flex; justify-content:flex-end; gap:8px; }

.tab-bar { display:flex; gap:.5rem; margin-bottom:1.5rem;
  background:var(--stone-100); padding:.35rem; border-radius:4px; }
.tab-link { padding:.6rem 1.25rem; text-decoration:none; color:var(--stone-500);
  font-weight:600; font-size:.875rem; border-radius:3px; transition:all .2s; }
.tab-link:hover { color:var(--dp-dark); background:rgba(0,0,0,.05); }
.tab-link.active { color:#fff; background:var(--palm-500); }

.pagination { display:flex; gap:.25rem; justify-content:center; margin:2rem 0; }
.page-link { padding:.5rem .75rem; border:1px solid var(--stone-200); background:#fff;
  color:var(--stone-600); text-decoration:none; border-radius:4px; font-size:13px; }
.page-link:hover { background:var(--stone-100); }
.page-link.active { background:var(--palm-500); color:#fff; border-color:var(--palm-500); }

.alert { padding:10px 16px; border-radius:4px; font-size:13px; margin-bottom:16px;
  display:flex; justify-content:space-between; align-items:center; gap:12px; }
.alert-close { background:none; border:none; font-size:1.1rem; cursor:pointer; opacity:.6; }
.alert-close:hover { opacity:1; }

.login-container { display:flex; justify-content:center; align-items:center;
  min-height:100vh; padding:24px; background:var(--dp-dark); }

.clockin-container { display:flex; justify-content:center; align-items:center;
  min-height:100vh; padding:24px; background:var(--dp-dark); }
.clockin-card { background:#fff; border-radius:4px; padding:48px 40px; width:100%;
  max-width:420px; box-shadow:0 8px 32px rgba(0,0,0,.3); text-align:center; }
.clockin-card h1 { font-family:'Cormorant',serif; font-size:26px; font-weight:700;
  color:var(--dp-dark); margin-bottom:16px; }
.clockin-card .pin-input { display:block; width:100%; padding:14px; font-size:28px;
  font-weight:700; letter-spacing:.6em; text-align:center; color:var(--dp-dark);
  background:#fff; border:2px solid var(--stone-300); border-radius:4px;
  transition:border-color .15s; box-sizing:border-box; margin:24px 0; }
.clockin-card .pin-input:focus { outline:none; border-color:var(--palm-400);
  box-shadow:0 0 0 3px rgba(239,160,101,.2); }

.flex { display:flex; }
.flex-between { justify-content:space-between; }
.gap-1 { gap:.5rem; }
.mt-1 { margin-top:.5rem; }
.mt-2 { margin-top:1rem; }
.mb-1 { margin-bottom:.5rem; }
.mb-2 { margin-bottom:1rem; }
