/**
 * ==============================================================================
 * NAILS BY DIVYA — LUXURY ADMIN PORTAL STYLESHEET (`admin.css`)
 * Phase 5.1B: Operations, Commerce, CMS, and Review Moderation
 *
 * Design System:
 * - Editorial Palette: Warm Ivory (#FAF7F2), Champagne Gold (#D4AF37),
 *   Restrained Rose (#C59B87), Deep Charcoal (#2C2623), Pure White (#FFFFFF).
 * - Typography: Cormorant Garamond (Serif), Montserrat / Inter (Clean UI sans).
 * - Mobile-first luxury responsive layout (desktop sidebar -> mobile top/bottom bar).
 * ==============================================================================
 */

:root {
  --bg-primary: #fffaf8;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #fffdfc;
  --bg-sidebar: #26161a;
  --text-primary: #4e4446;
  --text-heading: #3d2a2f;
  --text-muted: #7d565c;
  --text-light: #fffaf8;
  --text-sidebar-muted: #d9899b;
  --primary: #3d2a2f;
  --primary-hover: #26161a;
  --accent-rose: #e7afb8;
  --accent-strong: #d9899b;
  --gold-primary: #3d2a2f;
  --gold-hover: #26161a;
  --gold-light: rgba(231, 175, 184, 0.2);
  --border-light: rgba(125, 86, 92, 0.15);
  --border-sidebar: rgba(231, 175, 184, 0.15);
  --rose-accent: #e7afb8;
  --danger: #9e3d48;
  --danger-light: rgba(158, 61, 72, 0.1);
  --success: #128c7e;
  --success-light: rgba(18, 140, 126, 0.1);
  --warning: #b45309;
  --warning-light: rgba(180, 83, 9, 0.1);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(61, 42, 47, 0.05);
  --shadow-md: 0 4px 14px rgba(61, 42, 47, 0.08);
  --shadow-lg: 0 12px 32px rgba(61, 42, 47, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   1. APP LAYOUT STRUCTURE
   -------------------------------------------------------------------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (Desktop) */
.admin-sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
  padding: 1.75rem 1.5rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-sidebar);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: block;
}

.brand-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  margin-top: 0.2rem;
  font-weight: 500;
}

.sidebar-nav {
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-sidebar-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.nav-link.active {
  background-color: var(--gold-light);
  color: var(--gold-primary);
  font-weight: 600;
}

.nav-link-badge {
  margin-left: auto;
  background-color: var(--gold-primary);
  color: #1A1412;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.sidebar-section-divider {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  color: var(--text-sidebar-muted);
  text-transform: uppercase;
  padding: 0.85rem 1rem 0.35rem;
  border-top: 1px solid var(--border-sidebar);
  margin-top: 0.5rem;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-sidebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user-pill {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-display-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-tag {
  font-size: 0.7rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-sidebar-muted);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.4);
}

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

/* Top Navigation Bar */
.admin-topbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu-trigger {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Page Container */
.admin-container {
  padding: 2rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* Tab Panels */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --------------------------------------------------------------------------
   2. STAT CARDS & OVERVIEW
   -------------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.metric-icon {
  font-size: 1.25rem;
  opacity: 0.8;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.metric-card.gold-border {
  border-left: 4px solid var(--gold-primary);
}

.metric-card.warning-border {
  border-left: 4px solid var(--warning);
}

.metric-card.success-border {
  border-left: 4px solid var(--success);
}

/* --------------------------------------------------------------------------
   3. TABLES, DATA GRIDS & CARDS
   -------------------------------------------------------------------------- */
.data-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  overflow: hidden;
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-input {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  width: 220px;
  background-color: var(--bg-surface-elevated);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background-color: #FFF;
}

.filter-select {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  background-color: var(--bg-surface-elevated);
  cursor: pointer;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background-color: #F8F5EE;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: rgba(250, 247, 242, 0.5);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-pending {
  background-color: var(--warning-light);
  color: var(--warning);
}

.badge-verified,
.badge-confirmed,
.badge-delivered,
.badge-completed {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-failed,
.badge-cancelled,
.badge-rejected {
  background-color: var(--danger-light);
  color: var(--danger);
}

.badge-production {
  background-color: rgba(142, 68, 173, 0.12);
  color: #8E44AD;
}

.badge-dispatched {
  background-color: rgba(41, 128, 185, 0.12);
  color: #2980B9;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & ACTIONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--primary, #3d2a2f);
  color: #fffaf8;
  border-radius: var(--radius-sm, 6px);
}

.btn-primary:hover {
  background-color: var(--primary-hover, #26161a);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary, #3d2a2f);
  border: 1px solid var(--primary, #3d2a2f);
  border-radius: var(--radius-sm, 6px);
}

.btn-secondary:hover {
  background-color: var(--bg-primary, #fffaf8);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-sm, 6px);
}

.btn-outline:hover {
  border-color: var(--primary, #3d2a2f);
  color: var(--primary, #3d2a2f);
}

.btn-danger {
  background-color: var(--danger);
  color: #FFF;
}

.btn-danger:hover {
  background-color: #C9302C;
}

.btn-success {
  background-color: var(--success);
  color: #FFF;
}

.btn-success:hover {
  background-color: #1E6B23;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* Action Button Groups */
.actions-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. MODAL DIALOGS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(44, 38, 35, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

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

.modal-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-light);
}

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

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background-color: rgba(44, 38, 35, 0.05);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: var(--bg-surface-elevated);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   6. PORTFOLIO & PRODUCT CARDS
   -------------------------------------------------------------------------- */
.cms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cms-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cms-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cms-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #EEE;
}

.cms-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cms-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cms-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cms-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   7. AUTH VIEW (PREMIUM STUDIO LOGIN SCREEN)
   -------------------------------------------------------------------------- */
.admin-auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background: radial-gradient(120% 120% at 50% 15%, #FFFFFF 0%, #FAF7F2 65%, #F4ECE7 100%);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid rgba(217, 137, 155, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: 0 20px 48px rgba(61, 42, 47, 0.08), 0 2px 8px rgba(61, 42, 47, 0.04);
  text-align: center;
  position: relative;
}

.auth-logo {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.auth-tagline {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Auth Status Notification Banner */
.auth-status-banner {
  font-size: 0.84rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.35rem;
  line-height: 1.5;
  text-align: left;
  transition: all 0.2s ease;
}

.auth-status-banner.is-error {
  background: rgba(158, 61, 72, 0.08);
  border: 1px solid rgba(158, 61, 72, 0.28);
  color: var(--danger);
}

.auth-status-banner.is-success {
  background: rgba(18, 140, 126, 0.08);
  border: 1px solid rgba(18, 140, 126, 0.28);
  color: var(--success);
}

.auth-status-banner.is-info {
  background: rgba(231, 175, 184, 0.15);
  border: 1px solid rgba(217, 137, 155, 0.35);
  color: var(--text-heading);
}

/* Active Studio Session Sync Card */
.auth-sync-card {
  background: rgba(18, 140, 126, 0.06);
  border: 1px solid rgba(18, 140, 126, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.35rem;
  text-align: left;
}

.auth-sync-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.auth-sync-icon {
  font-size: 1.1rem;
}

.auth-sync-title {
  color: #128c7e;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-sync-label {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.auth-sync-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Client Account Detected Card */
.auth-client-card {
  background: rgba(231, 175, 184, 0.16);
  border: 1px solid rgba(217, 137, 155, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.35rem;
  text-align: left;
}

.auth-client-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.auth-client-icon {
  font-size: 1.1rem;
}

.auth-client-title {
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-client-text {
  font-size: 0.83rem;
  color: var(--text-primary);
  margin: 0 0 0.9rem;
  line-height: 1.45;
}

.auth-client-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Auth Navigation Tabs */
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.83rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
}

.auth-tab-btn:hover {
  color: var(--text-heading);
  background: rgba(231, 175, 184, 0.12);
}

.auth-tab-btn.is-active {
  background: var(--bg-surface);
  border-color: rgba(217, 137, 155, 0.35);
  color: var(--text-heading);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Cohort Badges */
.badge-test {
  background-color: rgba(125, 86, 92, 0.12);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.badge-smoke {
  background-color: var(--gold-light);
  color: var(--text-heading);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(217, 137, 155, 0.4);
}

.badge-live {
  background-color: var(--success-light);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Table empty and error styling */
.table-empty-cell {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table-error-cell {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--danger);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-trigger {
    display: block;
  }

  .admin-topbar {
    padding: 1rem 1.25rem;
  }

  .admin-container {
    padding: 1.25rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .admin-auth-screen {
    padding: 1.25rem 0.75rem;
  }

  .auth-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .auth-logo {
    font-size: 1.85rem;
  }

  .auth-sync-actions,
  .auth-client-actions {
    flex-direction: column;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }

  .modal-box {
    max-height: 95vh;
  }
}
