/* ============================================================
   Southern Oak Store Locator — Admin Styles
   ============================================================ */

:root {
  --sl-sidebar-bg:    #1a1f2e;
  --sl-sidebar-width: 220px;
  --sl-primary:       #3b82f6;
  --sl-primary-dark:  #2563eb;
  --sl-topbar-h:      56px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  background: #f3f4f6;
  color: #1f2937;
}

/* ── Layout ─────────────────────────────────────────────── */

.sl-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────── */

.sl-sidebar {
  width: var(--sl-sidebar-width);
  background: var(--sl-sidebar-bg);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

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

.sl-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--sl-primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  flex-shrink: 0;
}

.sl-logo-text {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.sl-nav {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  flex: 1;
}

.sl-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  margin: 2px 8px;
  transition: background .15s, color .15s;
}

.sl-nav li a:hover,
.sl-nav li.active a {
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
}

.sl-nav li.active a {
  background: var(--sl-primary);
  color: #fff;
}

.sl-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 12px;
}

.sl-sidebar-footer a {
  color: #64748b;
}

.sl-sidebar-footer a:hover {
  color: #94a3b8;
}

/* ── Main ────────────────────────────────────────────────── */

.sl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sl-topbar {
  height: var(--sl-topbar-h);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sl-page-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.sl-content {
  padding: 24px;
  flex: 1;
}

/* ── Cards ───────────────────────────────────────────────── */

.card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.card-header {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  border-radius: 8px 8px 0 0;
}

/* ── Tables ──────────────────────────────────────────────── */

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6b7280;
  font-weight: 600;
  border-top: none;
}

.table td {
  vertical-align: middle;
  font-size: 13px;
}

/* ── Empty state ─────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

/* ── Login page ──────────────────────────────────────────── */

.sl-login-body {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.sl-login-wrap {
  width: 100%;
  max-width: 380px;
  padding: 16px;
}

.sl-login-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.sl-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

/* ── Utilities ───────────────────────────────────────────── */

.font-monospace { font-family: 'SFMono-Regular', Consolas, monospace; }

pre { white-space: pre-wrap; word-break: break-all; }
