/* ============================================================
   HESPERIDES — Admin Panel (B&W App Design)
   ============================================================ */

/* ── 1. Admin Layout ──────────────────────────────────────── */
.admin-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F5F5F5;
  color: #000;
  min-height: 100vh;
}

.admin-layout {
  display: block;
  min-height: 100vh;
}

/* ── 2. Sidebar ───────────────────────────────────────────── */
.admin-sidebar {
  background: #000;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 240px;
  z-index: 200;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-logo-area {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}
.sidebar-coin {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}
.sidebar-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.sidebar-subtitle {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding-left: 2px;
}

.sidebar-nav { flex: 1; padding: 0.5rem 0; }

.sidebar-nav-section {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 1rem 1.25rem 0.4rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.835rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 2px solid transparent;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.sidebar-nav-item:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
}
.sidebar-nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-left-color: #fff;
}
.nav-icon { width: 16px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user { margin-bottom: 0.75rem; }
.sidebar-user-name { color: rgba(255,255,255,0.8); font-size: 0.835rem; font-weight: 600; }
.sidebar-user-role { font-size: 0.7rem; color: rgba(255,255,255,0.35); font-weight: 500; text-transform: capitalize; margin-top: 2px; }

/* ── 3. Main ─────────────────────────────────────────────── */
.admin-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: 240px;
  min-width: 0;
  overflow-x: hidden;
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid #EBEBEB;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 #EBEBEB;
}

.admin-sidebar-toggle {
  display: none;
  padding: 0.4rem;
  color: #000;
  font-size: 1.1rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}
.admin-sidebar-toggle:hover { background: #F5F5F5; }

.admin-page-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000;
  flex: 1;
}

.admin-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.admin-content { padding: 1.5rem; flex: 1; }

/* ── 4. Buttons ───────────────────────────────────────────── */
.a-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55em 1.15em;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.a-btn-primary  { background: #000; color: #fff; border-color: #000; }
.a-btn-primary:hover  { background: #222; transform: translateY(-1px); }
.a-btn-secondary { background: #111; color: #fff; border-color: #111; }
.a-btn-secondary:hover { background: #333; }
.a-btn-outline  { background: #fff; color: #000; border-color: #DEDEDE; }
.a-btn-outline:hover  { background: #F5F5F5; border-color: #000; }
.a-btn-danger   { background: #000; color: #fff; border-color: #000; }
.a-btn-danger:hover   { background: #C0392B; border-color: #C0392B; }
.a-btn-ghost    { background: transparent; color: #666; border-color: transparent; font-weight: 500; }
.a-btn-ghost:hover    { color: #000; }
.a-btn-sm { padding: 0.35em 0.85em; font-size: 0.75rem; }
.a-btn-xs { padding: 0.25em 0.65em; font-size: 0.7rem; }
.a-btn-icon { padding: 0.45em; }
.a-btn[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── 5. Stats ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-icon.olive { background: #F0F0F0; }
.stat-icon.brown { background: #EBEBEB; }
.stat-icon.gold  { background: #F5F5F5; }

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #888;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── 6. Table ─────────────────────────────────────────────── */
.admin-table-wrap {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.admin-table-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #FAFAFA;
}
.admin-table-header h3 {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #000;
}
.admin-search {
  flex: 1;
  max-width: 240px;
  padding: 0.45em 0.85em;
  border: 1.5px solid #EBEBEB;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  background: #fff;
  color: #000;
  transition: border-color 0.2s;
}
.admin-search:focus { outline: none; border-color: #000; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th {
  padding: 0.7rem 1.25rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #F0F0F0;
  background: #FAFAFA;
  white-space: nowrap;
}
.admin-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #F5F5F5;
  vertical-align: middle;
  color: #111;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FAFAFA; }

.admin-table .table-image {
  width: 52px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #F5F5F5;
}
.admin-table .table-title   { font-weight: 700; max-width: 260px; letter-spacing: -0.01em; }
.admin-table .table-excerpt {
  font-size: 0.78rem;
  color: #888;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-table .table-actions { display: flex; gap: 0.35rem; }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-published { background: #F0F0F0; color: #000; border: 1px solid #DDD; }
.badge-draft     { background: #F8F8F8; color: #888; border: 1px solid #EBEBEB; }
.badge-featured  { background: #000; color: #fff; border: 1px solid #000; }

/* ── 7. Forms ─────────────────────────────────────────────── */
.admin-form-page { max-width: 820px; }

.form-card {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  padding: 1.35rem;
  margin-bottom: 0.75rem;
}
.form-card-title {
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-row.full   { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}
.form-label .required { color: #C0392B; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.58em 0.85em;
  border: 1.5px solid #E5E5E5;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  transition: border-color 0.18s;
  line-height: 1.5;
}
.form-control:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.form-control::placeholder { color: #BBB; }
.form-control.error { border-color: #C0392B; }

textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23333' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 2rem;
}

.form-hint  { font-size: 0.72rem; color: #999; font-weight: 500; }
.form-error { font-size: 0.72rem; color: #C0392B; }
.form-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 1rem 0 0;
  border-top: 1px solid #F0F0F0;
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #F5F5F5;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info .toggle-label { font-size: 0.875rem; font-weight: 700; color: #000; letter-spacing: -0.01em; }
.toggle-info .toggle-desc  { font-size: 0.75rem; color: #888; margin-top: 2px; }

.toggle { position: relative; width: 42px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0;
  border-radius: 22px;
  background: #DEDEDE;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  left: 3px; top: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle input:checked + .toggle-slider { background: #000; }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Rich Text Editor */
.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0.4rem;
  border: 1.5px solid #E5E5E5;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #FAFAFA;
}
.rte-btn {
  padding: 0.3em 0.6em;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #555;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  min-width: 28px;
  text-align: center;
}
.rte-btn:hover { background: #EBEBEB; border-color: #DEDEDE; }
.rte-btn.active { background: #000; color: #fff; border-color: #000; }
.rte-divider { width: 1px; background: #E5E5E5; margin: 3px 2px; }

.rte-body {
  width: 100%;
  min-height: 220px;
  padding: 0.85em;
  border: 1.5px solid #E5E5E5;
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: #111;
  font-size: 0.9rem;
  line-height: 1.7;
  font-family: inherit;
  overflow-y: auto;
}
.rte-body:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.rte-body h2 { font-size: 1.15rem; font-weight: 800; margin: 0.75em 0 0.35em; letter-spacing: -0.02em; }
.rte-body h3 { font-size: 1rem; font-weight: 700; margin: 0.75em 0 0.3em; }
.rte-body p  { margin-bottom: 0.6em; }
.rte-body ul, .rte-body ol { padding-left: 1.5em; margin-bottom: 0.6em; }
.rte-body blockquote {
  border-left: 3px solid #000;
  padding-left: 1em;
  color: #666;
  margin: 0.75em 0;
  font-style: italic;
}

/* Media input */
.media-input-row { display: flex; gap: 0.65rem; align-items: flex-start; }
.media-input-row .form-control { flex: 1; }
.media-preview-thumb {
  width: 60px; height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #E5E5E5;
  background: #F5F5F5;
  flex-shrink: 0;
}

/* ── 8. Media Grid ────────────────────────────────────────── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.media-item {
  border: 1.5px solid #EBEBEB;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.media-item:hover { border-color: #000; }
.media-item.selected { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.1); }
.media-item-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #F5F5F5; display: block; filter: grayscale(30%); }
.media-item-name { font-size: 0.7rem; padding: 0.35rem 0.5rem; color: #666; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-item-delete {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff; border: none;
  border-radius: 4px;
  width: 20px; height: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
}
.media-item:hover .media-item-delete { opacity: 1; }

/* ── 9. Modal ─────────────────────────────────────────────── */
.admin-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.admin-modal-overlay.open { opacity: 1; pointer-events: all; }
.admin-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  max-width: 440px;
  width: 100%;
  padding: 1.5rem;
  transform: scale(0.96);
  transition: transform 0.2s;
}
.admin-modal-overlay.open .admin-modal { transform: scale(1); }
.admin-modal-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.admin-modal p     { color: #555; font-size: 0.875rem; margin-bottom: 1.25rem; }
.admin-modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

/* ── 10. Toast ────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 2000;
  display: flex; flex-direction: column; gap: 0.4rem;
  pointer-events: none;
}
.toast {
  background: #000; color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 0.65rem;
  min-width: 240px;
  pointer-events: all;
  animation: toastIn 0.25s cubic-bezier(0.4,0,0.2,1);
  border-left: 3px solid rgba(255,255,255,0.3);
}
.toast.success { border-left-color: #fff; }
.toast.error   { border-left-color: #fff; background: #111; }
.toast-icon    { font-size: 0.9rem; flex-shrink: 0; }
@keyframes toastIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:none; } }

/* ── 11. Dashboard ────────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid #F5F5F5;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #000;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-dot.blog  { background: #333; }
.activity-dot.city  { background: #000; }
.activity-dot.media { background: #666; }
.activity-text { font-size: 0.825rem; color: #000; flex: 1; font-weight: 500; }
.activity-time { font-size: 0.72rem; color: #999; white-space: nowrap; font-weight: 500; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; }
.dashboard-card { background: #fff; border: 1px solid #EBEBEB; border-radius: 12px; overflow: hidden; }
.dashboard-card-header {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #F5F5F5;
  display: flex; align-items: center; justify-content: space-between;
  background: #FAFAFA;
}
.dashboard-card-header h3 { font-size: 0.825rem; font-weight: 800; letter-spacing: -0.01em; }
.dashboard-card-body { padding: 0.85rem 1.1rem; }

/* ── 12. Login Page ───────────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-coin {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.login-logo h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}
.login-logo p {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
}

.login-form { display: flex; flex-direction: column; gap: 0.85rem; }
.login-error {
  padding: 0.75rem 1rem;
  background: #F8F8F8;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  color: #000;
  font-size: 0.82rem;
  font-weight: 600;
  display: none;
  border-left: 3px solid #000;
}
.login-error.visible { display: block; }

.login-submit { margin-top: 0.5rem; }
.login-submit button {
  width: 100%;
  padding: 0.875em;
  background: #000;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.login-submit button:hover  { background: #222; transform: translateY(-1px); }
.login-submit button:active { transform: none; }
.login-hint {
  text-align: center;
  font-size: 0.72rem;
  color: #999;
  font-weight: 500;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #F0F0F0;
}

/* ── 13. Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-sidebar-toggle { display: flex; }
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-content { padding: 0.875rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-table-header { flex-direction: column; align-items: flex-start; }
  .admin-search { max-width: 100%; }
}

/* ── 14. UI Improvements ───────────────────────────────────── */

/* Stat card — tighter, more readable */
.stat-card {
  transition: box-shadow 0.18s;
}
.stat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.stat-info { min-width: 0; }

/* Form card — better section feel */
.form-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.18s;
}
.form-card:focus-within {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
}

/* Better table row transition */
.admin-table tr { transition: background 0.12s; }
.admin-table tr:hover td { background: #FAFAFA; }

/* Empty state inside table */
.table-empty-state {
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: #aaa;
}
.table-empty-state-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.35;
}
.table-empty-state p {
  font-size: 0.875rem;
  color: #999;
  margin: 0;
}

/* Admin header — breadcrumb section label */
.admin-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  margin-right: -0.25rem;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.sidebar-overlay.open { display: block; }

/* Route city tag in admin */
.route-city-tag button:hover { color: #c00; }

/* Better sidebar section separators */
.sidebar-nav-section {
  margin-top: 0.25rem;
}

/* Dashboard quick-action buttons: consistent height */
.dashboard-card-body .a-btn { height: 38px; font-size: 0.82rem; }

/* Scrollable tables on small admin screens */
.admin-table-wrap { overflow-x: auto; }

/* Form page max-width bump for badge/route forms */
.admin-form-page { max-width: 860px; }

/* ── Language Tab Switcher (Bilingual Admin) ───────────────── */
.lang-tab-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.875rem 1.25rem;
  margin-bottom: 0;
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
}
.lang-tab-card + .form-card { border-radius: 0 0 var(--radius-md) var(--radius-md); margin-top: 0; border-top: none; }
.lang-tabs { display: flex; gap: 0.5rem; }
.lang-tab-btn {
  padding: 0.35em 1em;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid #DEDEDE;
  border-radius: 6px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.lang-tab-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.lang-tab-hint {
  font-size: 0.76rem;
  color: #888;
  margin: 0;
}
.lang-panel { transition: opacity 0.15s; }
.lang-panel[hidden] { display: none; }
