/* =============================================================================
   style.css — Meta CAPI Dashboard Styles
   =============================================================================

   Architecture:
     1.  CSS Custom Properties (Design Tokens) — dark & light themes
     2.  CSS Reset & Base Styles
     3.  Typography
     4.  Layout — App shell, Sidebar, Main, Topbar
     5.  Navigation
     6.  Form Cards & Fields
     7.  Buttons
     8.  Modals
     9.  Response Panel
    10.  Event History & History Cards
    11.  Offline Queue
    12.  Configuration Section
    13.  Status Indicators
    14.  Toast Notifications
    15.  Animations & Keyframes
    16.  Utilities
    17.  Responsive — Tablet & Mobile

   Color philosophy:
     Dark theme uses a deep navy/slate base (#0d1117) with violet/indigo accents.
     Light theme uses a soft warm white base with matching accent system.
     All colors are defined as HSL values for easy palette manipulation.
   ============================================================================= */


/* =============================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================= */

/* Dark Theme (default — [data-theme="dark"] on <html>) */
:root,
[data-theme="dark"] {

  /* === Background Layers === */
  --bg-base:        hsl(222, 20%, 7%);      /* Deepest background — page body          */
  --bg-surface:     hsl(222, 18%, 10%);     /* Cards, sidebar                          */
  --bg-elevated:    hsl(222, 16%, 13%);     /* Inputs, hover states                    */
  --bg-overlay:     hsl(222, 14%, 16%);     /* Dropdowns, code blocks                  */
  --bg-glass:       hsla(222, 18%, 12%, 0.7); /* Glassmorphism cards                   */

  /* === Brand / Accent Colors === */
  --accent-h:       252;                    /* Hue for violet-indigo accent            */
  --accent:         hsl(var(--accent-h), 80%, 65%);
  --accent-dim:     hsl(var(--accent-h), 60%, 55%);
  --accent-bright:  hsl(var(--accent-h), 90%, 72%);
  --accent-glow:    hsla(var(--accent-h), 80%, 65%, 0.35);
  --accent-subtle:  hsla(var(--accent-h), 80%, 65%, 0.1);
  --accent-border:  hsla(var(--accent-h), 80%, 65%, 0.25);

  /* === Semantic Status Colors === */
  --color-success:          hsl(142, 70%, 50%);
  --color-success-dim:      hsl(142, 60%, 40%);
  --color-success-subtle:   hsla(142, 70%, 50%, 0.12);
  --color-success-border:   hsla(142, 70%, 50%, 0.25);

  --color-error:            hsl(0, 75%, 60%);
  --color-error-dim:        hsl(0, 65%, 50%);
  --color-error-subtle:     hsla(0, 75%, 60%, 0.12);
  --color-error-border:     hsla(0, 75%, 60%, 0.25);

  --color-warning:          hsl(38, 90%, 58%);
  --color-warning-subtle:   hsla(38, 90%, 58%, 0.12);
  --color-warning-border:   hsla(38, 90%, 58%, 0.25);

  --color-info:             hsl(200, 80%, 58%);
  --color-info-subtle:      hsla(200, 80%, 58%, 0.12);

  /* === Text Colors === */
  --text-primary:   hsl(220, 20%, 95%);
  --text-secondary: hsl(220, 12%, 65%);
  --text-tertiary:  hsl(220, 10%, 45%);
  --text-disabled:  hsl(220, 8%, 35%);
  --text-inverse:   hsl(222, 20%, 7%);

  /* === Border Colors === */
  --border-subtle:  hsla(220, 20%, 60%, 0.08);
  --border-default: hsla(220, 20%, 60%, 0.14);
  --border-strong:  hsla(220, 20%, 60%, 0.25);

  /* === Sidebar === */
  --sidebar-bg:     hsl(222, 22%, 8%);
  --sidebar-width:  256px;

  /* === Misc === */
  --topbar-height:  60px;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;

  /* === Shadows === */
  --shadow-sm:      0 1px 3px hsla(0,0%,0%,0.3), 0 1px 2px hsla(0,0%,0%,0.2);
  --shadow-md:      0 4px 16px hsla(0,0%,0%,0.35), 0 2px 6px hsla(0,0%,0%,0.2);
  --shadow-lg:      0 10px 40px hsla(0,0%,0%,0.45), 0 4px 12px hsla(0,0%,0%,0.25);
  --shadow-accent:  0 0 0 1px var(--accent-border), 0 4px 20px var(--accent-glow);
  --shadow-glow:    0 0 30px var(--accent-glow), 0 0 60px hsla(var(--accent-h), 80%, 65%, 0.15);

  /* === Transitions === */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}


/* Light Theme */
[data-theme="light"] {

  --bg-base:        hsl(220, 20%, 97%);
  --bg-surface:     hsl(0, 0%, 100%);
  --bg-elevated:    hsl(220, 16%, 94%);
  --bg-overlay:     hsl(220, 14%, 90%);
  --bg-glass:       hsla(0, 0%, 100%, 0.85);

  --accent-h:       252;
  --accent:         hsl(var(--accent-h), 70%, 55%);
  --accent-dim:     hsl(var(--accent-h), 60%, 48%);
  --accent-bright:  hsl(var(--accent-h), 80%, 60%);
  --accent-glow:    hsla(var(--accent-h), 70%, 55%, 0.25);
  --accent-subtle:  hsla(var(--accent-h), 70%, 55%, 0.08);
  --accent-border:  hsla(var(--accent-h), 70%, 55%, 0.20);

  --color-success:          hsl(142, 60%, 38%);
  --color-success-dim:      hsl(142, 55%, 32%);
  --color-success-subtle:   hsla(142, 60%, 38%, 0.10);
  --color-success-border:   hsla(142, 60%, 38%, 0.22);

  --color-error:            hsl(0, 65%, 50%);
  --color-error-dim:        hsl(0, 60%, 44%);
  --color-error-subtle:     hsla(0, 65%, 50%, 0.10);
  --color-error-border:     hsla(0, 65%, 50%, 0.22);

  --color-warning:          hsl(38, 85%, 44%);
  --color-warning-subtle:   hsla(38, 85%, 44%, 0.10);
  --color-warning-border:   hsla(38, 85%, 44%, 0.22);

  --color-info:             hsl(200, 75%, 42%);
  --color-info-subtle:      hsla(200, 75%, 42%, 0.10);

  --text-primary:   hsl(222, 25%, 12%);
  --text-secondary: hsl(222, 15%, 38%);
  --text-tertiary:  hsl(222, 10%, 55%);
  --text-disabled:  hsl(222, 8%, 68%);
  --text-inverse:   hsl(220, 20%, 97%);

  --border-subtle:  hsla(222, 15%, 30%, 0.06);
  --border-default: hsla(222, 15%, 30%, 0.12);
  --border-strong:  hsla(222, 15%, 30%, 0.22);

  --sidebar-bg:     hsl(222, 25%, 14%);

  --shadow-sm:      0 1px 3px hsla(0,0%,0%,0.08), 0 1px 2px hsla(0,0%,0%,0.05);
  --shadow-md:      0 4px 16px hsla(0,0%,0%,0.10), 0 2px 6px hsla(0,0%,0%,0.07);
  --shadow-lg:      0 10px 40px hsla(0,0%,0%,0.14), 0 4px 12px hsla(0,0%,0%,0.08);
  --shadow-accent:  0 0 0 1px var(--accent-border), 0 4px 20px var(--accent-glow);
  --shadow-glow:    0 0 30px var(--accent-glow);
}


/* =============================================================================
   2. CSS RESET & BASE
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;     /* Include padding/border in element size calculations */
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;    /* Smooth scrolling for anchor links */
  -webkit-text-size-adjust: 100%; /* Prevent font scaling on mobile orientation change */
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle radial gradient on the body for depth */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, hsla(var(--accent-h), 80%, 65%, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, hsla(var(--accent-h), 80%, 65%, 0.04) 0%, transparent 60%);
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Remove list styles for nav elements */
ul, ol { list-style: none; }

/* Anchor base reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Image base */
img, svg { display: block; max-width: 100%; }

/* Button base reset */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Input/select base reset */
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Code elements */
code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12.5px;
}

/* Focus visible styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p { color: var(--text-secondary); }


/* =============================================================================
   4. APP LAYOUT — Shell, Sidebar, Main, Topbar
   ============================================================================= */

/* Root app container — CSS Grid with sidebar + main */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 100vh;
  height: 100vh;
  overflow: hidden;           /* Prevent body scroll — each region scrolls independently */
}

/* ---- SIDEBAR ---- */
.sidebar {
  grid-column: 1;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 100;
  transition: transform var(--transition-base);
  /* Subtle top gradient line as a decorative accent */
  background-image: linear-gradient(180deg,
    hsla(var(--accent-h), 80%, 65%, 0.04) 0%,
    transparent 30%
  );
}

.sidebar__header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--accent-glow);
  flex-shrink: 0;
  /* Subtle pulse animation on the logo icon */
  animation: logoPulse 4s ease-in-out infinite;
}

.sidebar__brand {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sidebar__sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- MAIN AREA ---- */
.main {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ---- TOPBAR ---- */
.topbar {
  height: var(--topbar-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar__menu-btn {
  display: none;              /* Hidden on desktop — shown on mobile */
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.topbar__menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.topbar__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- SCROLLABLE CONTENT AREA ---- */
.main > :not(.topbar) {
  overflow-y: auto;
  flex: 1;
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.main > :not(.topbar)::-webkit-scrollbar { width: 6px; }
.main > :not(.topbar)::-webkit-scrollbar-track { background: transparent; }
.main > :not(.topbar)::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

/* ---- CONTENT SECTIONS ---- */
.content-section {
  padding: 28px 32px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  animation: sectionFadeIn 0.3s ease both;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.section-header__desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.section-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}


/* =============================================================================
   5. SIDEBAR NAVIGATION
   ============================================================================= */

.sidebar__nav {
  flex: 1;
  padding: 12px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.sidebar__link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.sidebar__link--active {
  background: var(--accent-subtle);
  color: var(--accent-bright);
  font-weight: 600;
}

/* Active link left border accent */
.sidebar__link--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.sidebar__link-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar__badge {
  margin-left: auto;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-border);
  min-width: 24px;
  text-align: center;
}

.sidebar__footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}


/* =============================================================================
   6. FORM CARDS & FIELDS
   ============================================================================= */

/* ---- FORM LAYOUT ---- */
.event-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- FORM CARD ---- */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-card:hover {
  border-color: var(--border-strong);
}

/* Accent card (test mode) */
.form-card--accent {
  border-color: var(--color-warning-border);
  background: linear-gradient(135deg,
    var(--bg-surface) 0%,
    var(--color-warning-subtle) 100%
  );
}

.form-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.form-card__icon {
  font-size: 18px;
}

.form-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.form-card__badge {
  margin-left: auto;
  background: var(--color-warning-subtle);
  color: var(--color-warning);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-warning-border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- FIELD COMPONENT ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-user-select: none;
  user-select: none;
}

.field__required {
  color: var(--color-error);
  font-size: 13px;
  line-height: 1;
}

.field__optional {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 400;
}

/* The wrapper holds the icon prefix + input */
.field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.field__input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* Error state */
.field--error .field__input-wrap {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-subtle);
}

/* Success state (after validation passes) */
.field--valid .field__input-wrap {
  border-color: var(--color-success);
}

.field__prefix-icon {
  padding: 0 10px;
  font-size: 15px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  line-height: 1;
}

.field__input {
  flex: 1;
  padding: 10px 12px 10px 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 400;
  min-width: 0;             /* Allows flex shrinking below content size */
}

.field__input::placeholder { color: var(--text-disabled); }

.field__input--mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* Number inputs — hide browser default arrows */
.field__input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.field__input[type="number"]::-webkit-outer-spin-button,
.field__input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Datetime-local color fix for dark mode */
.field__input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.field__select {
  flex: 1;
  padding: 10px 12px 10px 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.field__select--sm {
  font-size: 12px;
  padding: 6px 10px;
}

/* Action button inside input (e.g. auto-generate order ID) */
.field__action-btn {
  padding: 6px 10px;
  color: var(--text-tertiary);
  font-size: 14px;
  border-left: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.field__action-btn:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

.field__hint {
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.field__error {
  font-size: 12px;
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeSlideDown 0.2s ease both;
}

.field__error::before {
  content: '⚠️';
  font-size: 11px;
}

/* Side-by-side field row */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
}

/* ---- TEST MODE BANNER ---- */
.test-mode-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-warning-subtle);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-md);
  animation: fadeSlideDown 0.25s ease both;
}

.test-mode-banner__icon { font-size: 18px; flex-shrink: 0; }

.test-mode-banner__text {
  font-size: 12.5px;
  color: var(--color-warning);
  line-height: 1.6;
  margin: 0;
}


/* =============================================================================
   7. BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Click ripple effect via ::after */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: hsla(0, 0%, 100%, 0);
  transition: background var(--transition-fast);
}

.btn:active::after {
  background: hsla(0, 0%, 100%, 0.08);
}

.btn:active { transform: scale(0.97); }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* Sizes */
.btn--sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

/* Icon within button */
.btn__icon { font-size: 15px; }

/* Variants */
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

/* Glow variant — extra glow for the main CTA */
.btn--glow:hover:not(:disabled) {
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--bg-overlay);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn--danger {
  background: var(--color-error-subtle);
  color: var(--color-error);
  border-color: var(--color-error-border);
}

.btn--danger:hover:not(:disabled) {
  background: var(--color-error);
  color: white;
  border-color: transparent;
}

/* Loading state content inside submit button */
.btn__loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- SPINNER ---- */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid hsla(0, 0%, 100%, 0.25);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ---- FORM ACTIONS ROW ---- */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}


/* =============================================================================
   8. MODALS
   ============================================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Using [hidden] attribute to hide/show modals */
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: hsla(220, 25%, 5%, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  animation: backdropFadeIn 0.2s ease both;
}

.modal__card {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-subtle);
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal__card--wide {
  max-width: 680px;
}

.modal__icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 12px;
  animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.1s;
}

.modal__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 6px;
}

.modal__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

/* Order summary inside confirm modal */
.modal__summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-row__label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.summary-row__value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.summary-row__value--accent {
  color: var(--accent);
  font-size: 14px;
}

.summary-row__value--test {
  color: var(--color-warning);
  font-size: 11px;
  background: var(--color-warning-subtle);
  border: 1px solid var(--color-warning-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* JSON preview inside json modal */
.json-preview {
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.json-preview__code {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-all;
}


/* =============================================================================
   9. RESPONSE PANEL
   ============================================================================= */

.response-panel {
  margin-top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: fadeSlideDown 0.3s ease both;
}

.response-panel--success {
  border-color: var(--color-success-border);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--color-success-subtle) 100%);
}

.response-panel--error {
  border-color: var(--color-error-border);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--color-error-subtle) 100%);
}

.response-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.response-panel__icon { font-size: 20px; }

.response-panel__title {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.response-panel__close {
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.response-panel__close:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.response-panel__body {
  padding: 16px 18px;
  max-height: 300px;
  overflow-y: auto;
}

.response-panel__json {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}

.response-panel__actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}


/* =============================================================================
   10. EVENT HISTORY
   ============================================================================= */

/* ---- HISTORY CONTROLS ---- */
.history-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.history-stats {
  display: flex;
  gap: 8px;
}

/* Stat chips */
.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.stat-chip--success {
  background: var(--color-success-subtle);
  border-color: var(--color-success-border);
  color: var(--color-success);
}

.stat-chip--error {
  background: var(--color-error-subtle);
  border-color: var(--color-error-border);
  color: var(--color-error);
}

.stat-chip--info {
  background: var(--color-info-subtle);
  border-color: var(--border-default);
  color: var(--color-info);
}

.stat-chip__value {
  font-size: 14px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.stat-chip__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---- HISTORY LIST ---- */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- HISTORY CARD ---- */
.history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: start;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  animation: historyCardSlideIn 0.3s ease both;
}

.history-card:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.history-card--success { border-left: 3px solid var(--color-success); }
.history-card--error   { border-left: 3px solid var(--color-error);   }
.history-card--queued  { border-left: 3px solid var(--color-warning);  }

.history-card__status-icon { font-size: 18px; margin-top: 2px; }

.history-card__body { min-width: 0; }

.history-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.history-card__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.history-card__tag--test {
  color: var(--color-warning);
  background: var(--color-warning-subtle);
  border-color: var(--color-warning-border);
}

.history-card__time {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.history-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.history-card__action-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.history-card__action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state__icon {
  font-size: 48px;
  opacity: 0.5;
  animation: floatIcon 3s ease-in-out infinite;
}

.empty-state__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state__desc {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 320px;
}


/* =============================================================================
   11. OFFLINE QUEUE
   ============================================================================= */

.offline-queue {
  margin-top: 24px;
  background: var(--color-warning-subtle);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.offline-queue__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.offline-queue__icon { font-size: 20px; }

.offline-queue__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-warning);
}

.offline-queue__count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-warning);
  background: var(--color-warning-subtle);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-warning-border);
}

.offline-queue__desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.offline-queue__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.offline-queue__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.queue-item__name {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item__attempts {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ---- QUEUE BADGE (topbar indicator) ---- */
.queue-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--color-warning-subtle);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-warning);
  animation: queuePulse 2s ease-in-out infinite;
}


/* =============================================================================
   12. CONFIGURATION SECTION
   ============================================================================= */

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.config-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color var(--transition-fast);
}

.config-card:hover { border-color: var(--border-strong); }

.config-card__icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.config-card__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.config-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.config-card__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.config-card__value--mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.health-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.health-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.health-panel__title {
  font-size: 14px;
  font-weight: 600;
}

.health-panel__output {
  padding: 16px 18px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.7;
  min-height: 60px;
}

/* ---- SETUP CHECKLIST ---- */
.setup-checklist {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.setup-checklist__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checklist__icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.checklist__text { font-size: 13px; color: var(--text-secondary); }
.checklist__text code {
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
  font-size: 12px;
}

.checklist__item--done .checklist__icon::before { content: '✅'; }
.checklist__item--done .checklist__text { color: var(--color-success); }


/* =============================================================================
   13. STATUS INDICATORS
   ============================================================================= */

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.status-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator__dot--unknown  { background: var(--text-disabled); }
.status-indicator__dot--ok       { background: var(--color-success); box-shadow: 0 0 6px var(--color-success); animation: statusPulse 2s ease infinite; }
.status-indicator__dot--error    { background: var(--color-error); box-shadow: 0 0 6px var(--color-error); }
.status-indicator__dot--checking { background: var(--color-warning); animation: statusPulse 1s ease infinite; }

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-default);
  font-size: 17px;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-overlay);
  border-color: var(--border-strong);
  transform: rotate(15deg);
}


/* =============================================================================
   14. TOAST NOTIFICATIONS
   ============================================================================= */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;  /* New toasts appear at bottom, stack upward */
  gap: 10px;
  pointer-events: none;            /* Container itself doesn't block clicks */
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;             /* Individual toasts do receive clicks */
  cursor: pointer;
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Progress bar at the bottom of each toast */
.toast::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.toast--success {
  border-color: var(--color-success-border);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--color-success-subtle) 100%);
}
.toast--success::before { background: var(--color-success); animation: toastTimer var(--duration, 5s) linear both; }

.toast--error {
  border-color: var(--color-error-border);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--color-error-subtle) 100%);
}
.toast--error::before { background: var(--color-error); animation: toastTimer var(--duration, 5s) linear both; }

.toast--warning {
  border-color: var(--color-warning-border);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--color-warning-subtle) 100%);
}
.toast--warning::before { background: var(--color-warning); animation: toastTimer var(--duration, 5s) linear both; }

.toast--info {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--accent-subtle) 100%);
}
.toast--info::before { background: var(--accent); animation: toastTimer var(--duration, 5s) linear both; }

/* Exit animation class added by JS */
.toast--exit {
  animation: toastSlideOut 0.3s ease both;
}

.toast__icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.toast__body { flex: 1; min-width: 0; }

.toast__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast__message {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.toast__close {
  font-size: 13px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: 4px;
  margin-top: 1px;
  transition: color var(--transition-fast);
}

.toast__close:hover { color: var(--text-primary); }


/* =============================================================================
   15. ANIMATIONS & KEYFRAMES
   ============================================================================= */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 4px 12px var(--accent-glow); }
  50%       { box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 4px var(--accent-subtle); }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes queuePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.02); }
}

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes historyCardSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes iconBounce {
  from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); max-height: 200px; }
  to   { opacity: 0; transform: translateX(40px); max-height: 0; padding: 0; margin: 0; }
}

@keyframes toastTimer {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}


/* =============================================================================
   16. UTILITIES
   ============================================================================= */

/* Screen-reader only — visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide an element visually and from the DOM */
[hidden] { display: none !important; }

/* Divider line */
.divider {
  height: 1px;
  background: var(--border-subtle);
  border: none;
  margin: 8px 0;
}

/* Inline code */
code {
  background: var(--bg-elevated);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--border-subtle);
}


/* =============================================================================
   17. RESPONSIVE — TABLET & MOBILE
   ============================================================================= */

/* ---- TABLET (≤ 900px) ---- */
@media (max-width: 900px) {
  .content-section {
    padding: 20px 20px;
  }

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

  .field-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---- MOBILE (≤ 680px) ---- */
@media (max-width: 680px) {

  /* Switch from sidebar layout to stacked layout */
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  /* Sidebar becomes a slide-in drawer on mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--sidebar-width);
    transform: translateX(-100%);    /* Hidden off-screen by default */
    z-index: 200;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
  }

  /* Sidebar open state — toggled by app.js */
  .sidebar--open {
    transform: translateX(0);
  }

  /* Sidebar overlay (dim background when sidebar is open) */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: hsla(220, 25%, 5%, 0.6);
    z-index: 199;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: backdropFadeIn 0.2s ease both;
  }

  /* Show the hamburger menu button */
  .topbar__menu-btn {
    display: flex;
  }

  .topbar {
    padding: 0 16px;
  }

  .main {
    grid-column: 1;
    height: calc(100vh - 0px);
  }

  .content-section {
    padding: 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .modal__card {
    padding: 24px 20px;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: unset;
    max-width: 100%;
  }

  .history-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-card {
    grid-template-columns: 24px 1fr;
  }

  .history-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .modal__actions {
    flex-direction: column-reverse;
  }

  .modal__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
