/*
 * Free Bot Host — Premium Admin & GUI Stylesheet
 * Custom Dark Theme (charcoal, slate, and amber/gold highlights)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-main: #0a0d16;
  --bg-card: #111524;
  --bg-input: #181d30;
  --bg-sidebar: #0e111d;
  --border-color: #20273f;
  --border-focus: #fbbf24;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary-gold: #fbbf24;
  --primary-gold-hover: #f59e0b;
  --danger-red: #ef4444;
  --danger-red-hover: #dc2626;
  --success-green: #10b981;
  --success-green-hover: #059669;
  --info-blue: #3b82f6;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--primary-gold-hover);
}

/* Monospace fonts for code elements */
code, pre, textarea.code-editor, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.875rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────────────────
 * Setup & Login Styles
 * ──────────────────────────────────────────────────────────────────────── */
.setup-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: radial-gradient(circle at top right, #1a1510, var(--bg-main) 60%);
}

.setup-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.setup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), #f59e0b);
}

.eyebrow {
  color: var(--primary-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.setup-card h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Layout Components (Admin Panel)
 * ──────────────────────────────────────────────────────────────────────── */
.admin-body {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.side {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding-left: 0.5rem;
}

.brand .mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-gold), #d97706);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
}
.brand .mark::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  background-color: var(--bg-sidebar);
  border-radius: 3px;
}

.brand strong {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  letter-spacing: -0.01em;
}

.brand small {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.side nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.side nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
  transition: var(--transition-fast);
}

.side nav a .fbh-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  color: var(--text-muted);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.side nav a:hover {
  color: var(--text-primary);
  background-color: var(--bg-input);
}

.side nav a:hover .fbh-icon {
  color: var(--primary-gold);
}

.side nav a.on {
  color: #fff;
  background-color: var(--bg-input);
  border-left: 3px solid var(--primary-gold);
  padding-left: calc(1rem - 3px);
  font-weight: 600;
}

.side nav a.on .fbh-icon {
  color: var(--primary-gold);
}

.side-out {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.925rem;
  margin-top: auto;
  transition: var(--transition-fast);
}
.side-out .fbh-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  color: var(--text-muted);
  flex-shrink: 0;
}
.side-out:hover {
  color: var(--danger-red);
  background-color: rgba(239, 68, 68, 0.08);
}
.side-out:hover .fbh-icon {
  color: var(--danger-red);
}

/* Main Area */
.admin-main {
  flex: 1;
  padding: 2.5rem;
  overflow-x: hidden;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.head h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-top: 0.25rem;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Cards & Layout Grids
 * ──────────────────────────────────────────────────────────────────────── */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

/* Stats Dashboard Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-grid article {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.stat-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: var(--shadow-md);
}

.stat-grid article small {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: block;
}

.stat-grid article b {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1.2;
  margin: 0.5rem 0 0.25rem 0;
}

.stat-grid article span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

/* Multi-column layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Data Tables
 * ──────────────────────────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.925rem;
  vertical-align: middle;
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

td code {
  background-color: var(--bg-input);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--primary-gold);
  border: 1px solid var(--border-color);
}

/* ──────────────────────────────────────────────────────────────────────────
 * Buttons & Tags
 * ──────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  outline: none;
}

.btn.gold {
  background-color: var(--primary-gold);
  color: #000;
}
.btn.gold:hover {
  background-color: var(--primary-gold-hover);
}

.btn.ghost {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn.ghost:hover {
  background-color: var(--bg-input);
  border-color: var(--text-muted);
}

.btn.danger {
  background-color: var(--danger-red);
  color: #fff;
}
.btn.danger:hover {
  background-color: var(--danger-red-hover);
}

.btn.sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.775rem;
  border-radius: 4px;
}

.acts {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.acts form {
  display: inline-flex;
  gap: 0.35rem;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.tag.bad {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  font-weight: 500;
  border-left-width: 4px;
  border-left-style: solid;
}

.alert.good {
  background-color: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  border-left-color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert.bad {
  background-color: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border-left-color: var(--danger-red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ──────────────────────────────────────────────────────────────────────────
 * Form Styling
 * ──────────────────────────────────────────────────────────────────────── */
label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 100%;
}

label.chk {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  padding: 0.25rem 0;
}
label.chk input {
  width: auto;
  margin: 0;
}

input, select, textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.65rem 0.875rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.925rem;
  outline: none;
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.row-form {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.row-form label {
  flex: 1;
  min-width: 180px;
}

.row-form button {
  height: 42px;
  flex-shrink: 0;
}

.search {
  display: flex;
  gap: 0.5rem;
}
.search input {
  width: 240px;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Bot Studio GUI & Mobile Miniapp Styling
 * ──────────────────────────────────────────────────────────────────────── */
.gui-body {
  padding: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.gui-top {
  margin-bottom: 1.5rem;
}

.gui-top .eyebrow {
  margin-bottom: 0.25rem;
}

.gui-top h1 {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.gui-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1px;
}

.gui-nav a {
  padding: 0.75rem 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.gui-nav a:hover {
  color: var(--text-primary);
}

.gui-nav a.on, .gui-nav a.active {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
  font-weight: 600;
}

.gui-main {
  flex: 1;
}

/* Code Editor Specific UI */
.editor-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

/* Code editor wrapper & Line numbers gutter */
.code-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #080a11;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.code-editor-main {
  display: flex;
  position: relative;
  height: 460px;
  background: #080a11;
  overflow: hidden;
}
.line-numbers {
  width: 48px;
  min-width: 48px;
  background: #04060a;
  color: #64748b;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.75rem 0.5rem 0.75rem 0.25rem;
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  white-space: pre-line;
  box-sizing: border-box;
}
textarea.code-editor {
  flex: 1;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  background-color: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  padding: 0.75rem 0.85rem;
  resize: none;
  line-height: 1.5;
  tab-size: 4;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre;
  word-wrap: normal;
  box-sizing: border-box;
}
textarea.code-editor:focus {
  border: none;
  box-shadow: none;
}

/* Editor Bottom Overview / Status Bar */
.editor-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #04060a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}
.editor-status-bar .status-left,
.editor-status-bar .status-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.editor-status-bar .status-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.editor-status-bar .status-sep {
  color: rgba(255, 255, 255, 0.2);
}
.editor-status-bar .status-badge {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Env variables editor styling */
.env-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.env-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.env-row input {
  flex: 1;
}

.env-row input.env-key {
  max-width: 160px;
  font-weight: 600;
  color: var(--primary-gold);
}

.env-row input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: rgba(255,255,255,0.02);
}

/* Database management UI */
.db-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.db-card-stats {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.db-card-stats div {
  flex: 1;
}

.db-card-stats div small {
  color: var(--text-muted);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.db-card-stats div span {
  font-size: 1.125rem;
  font-weight: 600;
}

.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-wrapper input[type="file"] {
  display: none;
}

.file-upload-label {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px dashed var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.file-upload-label:hover {
  border-color: var(--primary-gold);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Live Analytics & Graphs UI
 * ──────────────────────────────────────────────────────────────────────── */
.analytics-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.kpi-card .kpi-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.kpi-card .kpi-badge {
  font-size: 0.7rem;
  color: #10b981;
  margin-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-pills {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
}

.chart-pill {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  transition: var(--transition-fast);
}

.chart-pill.active {
  background: var(--primary-gold);
  color: #000;
}

.chart-svg-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  height: 200px;
  display: block;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Hourly 24-Bar Chart */
.hourly-chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 0.5rem 0 0 0;
  border-bottom: 1px solid var(--border-color);
}

.hourly-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.hourly-bar-fill {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--primary-gold), rgba(251, 191, 36, 0.2));
  min-height: 3px;
  transition: height 0.3s ease;
}

.hourly-bar-col:hover .hourly-bar-fill {
  background: #f59e0b;
}

.hourly-bar-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Language Demographics Bars */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lang-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.lang-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  background: var(--primary-gold);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Responsive Breakpoints
 * ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-body {
    flex-direction: column;
  }
  
  .side {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
  }
  
  .brand {
    margin-bottom: 1.25rem;
  }
  
  .side nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }
  
  .side nav a {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
  
  .side nav a.on {
    border-left: none;
    border-bottom: 2px solid var(--primary-gold);
    border-radius: 4px;
    padding-left: 0.75rem;
    padding-bottom: calc(0.5rem - 2px);
  }
  
  .side-out {
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    align-self: flex-start;
  }
  
  .admin-main {
    padding: 1.25rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .search {
    width: 100%;
  }
  .search input {
    flex: 1;
    width: auto;
  }
  
  .row-form {
    flex-direction: column;
    align-items: stretch;
  }
  .row-form button {
    width: 100%;
  }
}
