/* ═══════════════════════════════════════════════════
   SINLI Panel de Control — Estilos
   ═══════════════════════════════════════════════════ */

:root {
  /* Color palette — deep navy + accent */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-glass: rgba(30, 41, 59, 0.6);
  --border-glass: rgba(100, 116, 139, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-hover: #f87171;

  /* Spacing */
  --nav-height: 56px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background gradient mesh */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(99,102,241,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(16,185,129,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ═══ Glass morphism ═══ */
.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ═══ Screen System ═══ */
.screen { display: none; }
.screen.active { display: block; }
.view { display: none; padding: 24px 32px; }
.view.active { display: block; }

/* ═══ LOGIN ═══ */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.5s ease;
}

.login-header { text-align: center; margin-bottom: 32px; }
.logo-icon { font-size: 48px; margin-bottom: 12px; }
.login-header h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.login-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="search"],
select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.error-msg {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}

.hidden { display: none !important; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 16px var(--accent-glow); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-glass); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

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

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══ NAVIGATION ═══ */
#top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 24px;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 8px; }

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  margin-right: 20px;
  letter-spacing: -0.3px;
}

.nav-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-tab:hover { color: var(--text-secondary); background: rgba(255,255,255,0.04); }
.nav-tab.active { color: var(--text-primary); background: rgba(99,102,241,0.15); }

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

/* ═══ VIEW HEADER ═══ */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.view-header h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.view-actions { display: flex; gap: 8px; }

/* ═══ STATS GRID ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-2px); }

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══ PIPELINE RESULT ═══ */
.pipeline-result {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 14px;
  white-space: pre-wrap;
  font-family: monospace;
  max-height: 400px;
  overflow-y: auto;
}

.pipeline-result.has-errors {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ═══ FILTERS BAR ═══ */
.filters-bar {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
}

.filter-select {
  width: auto;
  min-width: 120px;
}

/* ═══ TABLE ═══ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  background: rgba(15, 23, 42, 0.8);
  position: sticky;
  top: 0;
}

th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
  user-select: none;
}

th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--accent); }
th.sortable.asc::after { content: ' ▲'; font-size: 10px; }
th.sortable.desc::after { content: ' ▼'; font-size: 10px; }

td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
  color: var(--text-primary);
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

tr:hover td { background: rgba(99, 102, 241, 0.04); }

.th-check, td:first-child { width: 40px; text-align: center; }

/* Inline edit inputs */
.inline-input {
  width: 80px;
  padding: 4px 8px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  color: var(--text-primary);
  text-align: right;
}

.inline-input:focus { border-color: var(--accent); }

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--text-muted);
  border-radius: 20px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Action buttons in table */
.actions-cell { display: flex; gap: 4px; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}

.btn-icon:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.btn-icon.danger:hover { background: rgba(239,68,68,0.15); color: var(--danger); }
.btn-icon.sync:hover { background: rgba(99,102,241,0.15); color: var(--accent); }

/* ═══ PAGINATION ═══ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  padding: 8px 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.page-info { color: var(--text-muted); font-size: 13px; margin: 0 12px; }

/* ═══ BULK ACTIONS ═══ */
.bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border-radius: var(--radius);
  margin-top: 12px;
  border: 1px solid var(--border-glass);
}

#selected-count { font-size: 13px; color: var(--text-secondary); margin-right: auto; }

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  width: 90%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}

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

.modal-header h3 { font-size: 16px; font-weight: 600; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

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

.modal-body { padding: 24px; }
.modal-body .form-group { margin-bottom: 16px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-glass);
}

/* ═══ TOAST ═══ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--shadow);
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--accent); }
.toast.warning { background: var(--warning); color: #1a1a1a; }

.toast.removing { animation: slideOutRight 0.3s ease forwards; }

/* ═══ STATUS BADGES ═══ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-accent { background: rgba(99,102,241,0.15); color: var(--accent); }

/* ═══ LOADING ═══ */
.loading-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { to { opacity: 0; transform: translateX(100px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ EDIT BOOK MODAL ═══ */
.modal-wide { max-width: 720px; }

.modal-wide .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.modal-wide .modal-body::-webkit-scrollbar { width: 6px; }
.modal-wide .modal-body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.edit-book-form { display: flex; flex-direction: column; gap: 8px; }

.form-section {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0;
  background: rgba(15, 23, 42, 0.3);
}

.form-section legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 0 8px;
  letter-spacing: 0.3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row .form-group { margin-bottom: 12px; }

.readonly-field {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.3) !important;
}

.highlight-field {
  border-color: var(--accent) !important;
  background: rgba(99, 102, 241, 0.08) !important;
}

textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
  min-height: 60px;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-icon.edit:hover { background: rgba(99,102,241,0.15); color: var(--accent); }

/* ═══ HELP VIEW ═══ */
.help-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
}

.help-nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

.help-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.help-nav-link.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
  border-left-color: var(--accent);
}

.help-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
}

.help-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.help-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.help-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--accent);
}

.help-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.help-card ul, .help-card ol {
  margin-left: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.help-card li {
  margin-bottom: 8px;
}

.help-card strong {
  color: var(--text-primary);
}

.help-card code {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.05);
}

.help-image-container {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  background: rgba(0,0,0,0.2);
  transition: transform var(--transition);
}

.help-image-container:hover {
  transform: scale(1.01);
}

.help-image {
  width: 100%;
  height: auto;
  display: block;
}

.help-note {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}

.help-note p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.help-warning {
  background: rgba(245, 158, 11, 0.15);
  border-left: 4px solid var(--warning);
  padding: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}

.help-warning p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .help-container {
    grid-template-columns: 1fr;
  }
  .help-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
  }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .view { padding: 16px; }
  .view-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filters-bar { flex-direction: column; }
  .search-input { min-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-tab { font-size: 12px; padding: 6px 10px; }
  td { font-size: 12px; padding: 8px 10px; }
  .modal-wide { max-width: 95%; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══ Book cover and thumbnail styles ═══ */
.book-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.book-thumbnail-small {
  width: 32px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.book-thumbnail-small:hover {
  transform: scale(1.15);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.no-thumb-icon {
  font-size: 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--border-glass);
  border-radius: 4px;
  flex-shrink: 0;
}

.no-thumb-icon:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
}

.no-thumb-empty {
  font-size: 16px;
  opacity: 0.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  background: rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.02);
  border-radius: 4px;
  flex-shrink: 0;
}

.book-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* Modal preview for covers */
.cover-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.cover-modal-img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
}

.cover-modal-actions {
  display: flex;
  gap: 10px;
}

/* ═══ Configuration Page Styles ═══ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.settings-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-card h3 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-row .form-group.col-8 {
  flex: 2;
}

.form-row .form-group.col-6 {
  flex: 1;
}

.form-row .form-group.col-4 {
  flex: 1;
  max-width: 120px;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  .form-row .form-group.col-4 {
    max-width: none;
  }
}

