/* ============================================================
   AUGERPROS INVENTORY — FIRETRUCK RED + INDUSTRIAL STEEL
   ============================================================ */

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

:root {
  /* Firetruck Red Palette */
  --red-deep:       #8B0000;
  --red-base:       #CC1111;
  --red-bright:     #E01A1A;
  --red-gloss:      #FF2222;
  --red-shine:      #FF6666;
  --red-dark-panel: #6A0000;
  --red-shadow:     #3D0000;

  /* Steel / Metal Palette */
  --steel-dark:     #1C1C1E;
  --steel-mid:      #2E2E32;
  --steel-panel:    #3A3A3F;
  --steel-light:    #52525A;
  --steel-chrome:   #8A8A96;
  --steel-shine:    #C0C0CC;
  --steel-highlight:#E8E8F0;

  /* Bolt / Rivet */
  --bolt-body:      #5A5A64;
  --bolt-shine:     #9A9AAA;
  --bolt-shadow:    #111114;

  /* Mapped to old vars for backward compat */
  --brand:          var(--red-base);
  --brand-dark:     var(--red-deep);
  --brand-light:    var(--red-shine);
  --surface-bg:     var(--steel-dark);
  --surface-card:   var(--steel-mid);
  --surface-border: var(--steel-light);
  --surface-hover:  var(--steel-panel);
  --text-primary:   #F0F0F5;
  --text-muted:     #8A8A96;
  --accent:         var(--steel-chrome);
  --success:        #00CC66;
  --warning:        #FFAA00;
  --danger:         #FF4444;
  --info:           #3b82f6;
}

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

html { font-size: 16px; }

body {
  font-family: 'Roboto Condensed', sans-serif;
  background-color: var(--steel-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(
      0deg, transparent, transparent 39px,
      rgba(255,255,255,0.015) 39px, rgba(255,255,255,0.015) 40px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 39px,
      rgba(255,255,255,0.015) 39px, rgba(255,255,255,0.015) 40px
    );
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--steel-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red-base) 0%, var(--red-deep) 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red-bright); }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  background:
    linear-gradient(180deg,
      var(--red-bright) 0%,
      var(--red-base) 35%,
      var(--red-deep) 70%,
      var(--red-shadow) 100%
    );
  border-bottom: 4px solid var(--steel-dark);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,100,100,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

/* Gloss sheen */
.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.04) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Chrome strip at bottom */
.header::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--steel-dark) 0%,
    var(--steel-chrome) 20%,
    var(--steel-shine) 50%,
    var(--steel-chrome) 80%,
    var(--steel-dark) 100%
  );
  z-index: 1;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
  z-index: 2;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg,
    var(--steel-shine) 0%,
    var(--steel-chrome) 40%,
    var(--steel-mid) 100%
  );
  border-radius: 8px;
  border: 2px solid var(--steel-chrome);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.6),
    inset 0 1px 2px rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--red-base);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo-sub {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,220,220,0.75);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,220,220,0.8);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--text-primary);
  background: linear-gradient(180deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.08) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 2px 6px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
}

.nav-logout {
  color: rgba(255,200,200,0.9);
  border: 1px solid rgba(255,150,150,0.3);
  margin-left: 8px;
}

.nav-logout:hover {
  color: var(--text-primary);
  border-color: rgba(255,200,200,0.6);
  background: rgba(255,255,255,0.08);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  gap: 0.25rem;
  background: var(--red-dark-panel);
}

.mobile-nav.open {
  display: flex;
}

/* ── Main layout ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 28px 60px;
}

/* ============================================================
   CARDS — Steel panels
   ============================================================ */
.card {
  background: linear-gradient(180deg,
    var(--steel-panel) 0%,
    var(--steel-mid) 100%
  );
  border: 1px solid var(--steel-light);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

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

.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.stat-card {
  background: linear-gradient(180deg,
    var(--steel-panel) 0%,
    var(--steel-mid) 100%
  );
  border: 1px solid var(--steel-light);
  border-top: 3px solid var(--red-base);
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-shine);
  line-height: 1;
}

.stat-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--steel-chrome);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ============================================================
   BUTTONS — Chrome + Red
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 40px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.btn-primary {
  color: var(--red-base);
  background: linear-gradient(180deg,
    var(--steel-highlight) 0%,
    var(--steel-shine) 30%,
    var(--steel-chrome) 70%,
    var(--steel-light) 100%
  );
  border: 2px solid var(--steel-shine);
  box-shadow:
    0 3px 10px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg,
    #fff 0%,
    var(--steel-highlight) 30%,
    var(--steel-shine) 70%,
    var(--steel-chrome) 100%
  );
  box-shadow:
    0 4px 14px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.btn-secondary {
  color: var(--text-primary);
  background: linear-gradient(180deg,
    var(--steel-panel) 0%,
    var(--steel-mid) 60%,
    var(--steel-dark) 100%
  );
  border: 1px solid var(--steel-chrome);
  box-shadow:
    0 3px 10px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-secondary:hover {
  border-color: var(--steel-shine);
  background: linear-gradient(180deg,
    var(--steel-light) 0%,
    var(--steel-panel) 60%,
    var(--steel-mid) 100%
  );
}

.btn-success {
  color: var(--text-primary);
  background: linear-gradient(180deg,
    var(--red-bright) 0%,
    var(--red-base) 40%,
    var(--red-deep) 100%
  );
  border: 1px solid var(--red-dark-panel);
  box-shadow:
    0 3px 10px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,100,100,0.4);
}

.btn-success:hover {
  background: linear-gradient(180deg,
    var(--red-gloss) 0%,
    var(--red-bright) 40%,
    var(--red-base) 100%
  );
}

.btn-danger {
  background: linear-gradient(180deg, #cc2222 0%, #881111 100%);
  color: #fff;
  border: 1px solid #aa1111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.btn-danger:hover {
  background: linear-gradient(180deg, #ee3333 0%, #aa1111 100%);
}

.btn-sm {
  font-size: 11px;
  padding: 6px 14px;
  min-height: 32px;
}

.btn-full { width: 100%; }

/* ============================================================
   FORMS — Dark steel inputs
   ============================================================ */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel-chrome);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: linear-gradient(180deg,
    var(--steel-dark) 0%,
    #141416 100%
  );
  border: 1px solid var(--steel-light);
  border-radius: 4px;
  padding: 9px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 40px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05);
}

.form-control:focus {
  outline: none;
  border-color: var(--red-base);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.4),
    0 0 0 2px rgba(204,17,17,0.25);
}

.form-control::placeholder {
  color: var(--steel-chrome);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A96' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  padding-right: 32px;
}

/* ============================================================
   TABLES — Industrial steel
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--steel-panel) 0%, var(--steel-mid) 100%);
  border: 1px solid var(--steel-light);
  border-radius: 6px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel-chrome);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--red-deep);
  white-space: nowrap;
  background: linear-gradient(180deg, var(--steel-dark) 0%, #141416 100%);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  border-left: 3px solid transparent;
  transition: border-color 0.15s;
}

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

tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

tbody tr:hover {
  background: linear-gradient(90deg,
    rgba(204,17,17,0.08) 0%,
    rgba(204,17,17,0.03) 100%
  );
}

tbody tr:hover td:first-child {
  border-left: 3px solid var(--red-base);
}

/* ============================================================
   BADGES — Status with glow dot
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-active {
  color: var(--success);
  background: rgba(0,204,102,0.1);
  border: 1px solid rgba(0,204,102,0.3);
}
.badge-active::before { background: var(--success); box-shadow: 0 0 4px var(--success); }

.badge-pending {
  color: var(--warning);
  background: rgba(255,170,0,0.1);
  border: 1px solid rgba(255,170,0,0.3);
}
.badge-pending::before { background: var(--warning); box-shadow: 0 0 4px var(--warning); }

.badge-removed, .badge-lost_stolen, .badge-stolen {
  color: var(--danger);
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.3);
}
.badge-removed::before, .badge-lost_stolen::before, .badge-stolen::before {
  background: var(--danger);
  box-shadow: 0 0 4px var(--danger);
}

.badge-transferred {
  color: var(--info);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
}
.badge-transferred::before { background: var(--info); box-shadow: 0 0 4px var(--info); }

.badge-sold {
  color: #a855f7;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
}
.badge-sold::before { background: #a855f7; box-shadow: 0 0 4px #a855f7; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  border-radius: 5px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid;
}

.flash-success {
  background: rgba(0,204,102,0.1);
  border-color: rgba(0,204,102,0.3);
  color: var(--success);
}

.flash-error {
  background: rgba(255,68,68,0.1);
  border-color: rgba(255,68,68,0.3);
  color: var(--danger);
}

.flash-warning {
  background: rgba(255,170,0,0.1);
  border-color: rgba(255,170,0,0.3);
  color: var(--warning);
}

.flash-warning a {
  color: inherit;
  text-decoration: underline;
}

/* ============================================================
   PHOTO GRID
   ============================================================ */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.photo-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--steel-light);
  cursor: pointer;
  transition: border-color 0.15s;
}

.photo-thumb:hover {
  border-color: var(--red-base);
}

/* Photo upload zone */
.upload-zone {
  border: 2px dashed var(--steel-light);
  border-radius: 6px;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--steel-chrome);
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 0.875rem;
  background: rgba(0,0,0,0.2);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--red-base);
  color: var(--text-primary);
}

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.6),
    0 0 30px rgba(200,0,0,0.15);
}

.page-title-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg,
    var(--red-bright) 0%,
    var(--red-deep) 60%,
    var(--red-shadow) 100%
  );
  border-radius: 6px;
  border: 2px solid var(--steel-chrome);
  box-shadow:
    0 3px 10px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,100,100,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--steel-chrome);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-text {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ============================================================
   VIN DECODE RESULT
   ============================================================ */
.vin-result {
  background: rgba(0,204,102,0.08);
  border: 1px solid rgba(0,204,102,0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  display: none;
}

.vin-result.visible { display: block; }

/* ============================================================
   LOGIN PAGE — special handling
   ============================================================ */
.login-card {
  border-top: 4px solid var(--red-base);
}

.login-card h2 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .container { padding: 1.25rem 12px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  table th:nth-child(n+4),
  table td:nth-child(n+4) {
    display: none;
  }

  .btn {
    min-height: 44px;
    font-size: 12px;
  }

  .form-control { min-height: 44px; }

  .navbar-bolts { display: none; }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-title {
    font-size: 22px;
  }
}

/* ============================================================
   BOLT / RIVET COMPONENT
   ============================================================ */
.bolt {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    var(--bolt-shine) 0%,
    var(--bolt-body) 40%,
    var(--bolt-shadow) 100%
  );
  box-shadow:
    0 1px 3px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255,255,255,0.15);
  position: relative;
  flex-shrink: 0;
}

.bolt::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  background: var(--bolt-shadow);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.8;
}

.bolt-lg {
  width: 20px;
  height: 20px;
}
.bolt-lg::after {
  width: 7px; height: 7px;
}

/* ── Navbar bolt row ── */
.navbar-bolts {
  position: absolute;
  bottom: -14px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
  z-index: 20;
}
.navbar-bolts .bolt {
  width: 16px;
  height: 16px;
}

/* ============================================================
   FILTER PANEL
   ============================================================ */
.filter-panel {
  background: linear-gradient(180deg,
    var(--steel-panel) 0%,
    var(--steel-mid) 100%
  );
  border: 1px solid var(--steel-light);
  border-top: 3px solid var(--red-base);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
  position: relative;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Red glow line at top */
.filter-panel::before {
  content: '';
  position: absolute;
  top: -3px; left: 20px; right: 20px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--red-gloss) 20%,
    var(--red-shine) 50%,
    var(--red-gloss) 80%,
    transparent 100%
  );
}

/* Corner bolts on filter panel */
.filter-panel .fp-bolt {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    var(--bolt-shine) 0%,
    var(--bolt-body) 40%,
    var(--bolt-shadow) 100%
  );
  box-shadow: 0 1px 3px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.15);
}
.filter-panel .fp-bolt::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 4px;
  background: var(--bolt-shadow);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.fp-bolt-tl { top: 8px; left: 8px; }
.fp-bolt-tr { top: 8px; right: 8px; }
.fp-bolt-bl { bottom: 8px; left: 8px; }
.fp-bolt-br { bottom: 8px; right: 8px; }

/* ============================================================
   TABLE PANEL DECORATIONS
   ============================================================ */
.table-panel-topbar {
  background: linear-gradient(90deg,
    var(--red-shadow) 0%,
    var(--red-deep) 15%,
    var(--red-base) 40%,
    var(--red-bright) 50%,
    var(--red-base) 60%,
    var(--red-deep) 85%,
    var(--red-shadow) 100%
  );
  height: 6px;
  position: relative;
}
.table-panel-topbar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 30%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0.35) 70%,
    transparent 100%
  );
}

.table-bolt-row {
  background: linear-gradient(180deg,
    var(--steel-dark) 0%,
    var(--steel-mid) 100%
  );
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--steel-light);
}
.bolt-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bottom-bolt-strip {
  background: linear-gradient(180deg,
    var(--steel-mid) 0%,
    var(--steel-dark) 100%
  );
  border-top: 2px solid var(--red-deep);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-footer-text {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel-chrome);
}

/* ============================================================
   LOGO IMAGE (custom uploaded logo)
   ============================================================ */
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ============================================================
   THEME: WARM TERRACOTTA
   Elegant, minimal — Open Sans, light header, no bolts/icons
   ============================================================ */

/* ── Global font & background ── */
[data-theme="terracotta"],
[data-theme="terracotta"] body {
  font-family: 'Open Sans', sans-serif;
  background-color: #ede9de;
  background-image: none;
  color: #3d3929;
}

[data-theme="terracotta"] ::-webkit-scrollbar-track { background: #ede9de; }
[data-theme="terracotta"] ::-webkit-scrollbar-thumb {
  background: #c96442;
  border-radius: 4px;
}
[data-theme="terracotta"] ::-webkit-scrollbar-thumb:hover { background: #d97757; }

/* ── Header — light, transparent, elegant ── */
[data-theme="terracotta"] .header {
  background: #faf9f5;
  border-bottom: 1px solid #dad9d4;
  box-shadow: 0 1px 6px rgba(61,57,41,0.07);
}

[data-theme="terracotta"] .header::before,
[data-theme="terracotta"] .header::after {
  display: none;
}

/* ── Logo ── */
[data-theme="terracotta"] .logo-icon {
  background: #c96442;
  border: none;
  box-shadow: none;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}

[data-theme="terracotta"] .logo-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #3d3929;
  text-shadow: none;
  letter-spacing: 0;
  text-transform: none;
}

[data-theme="terracotta"] .logo-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #83827d;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Nav links ── */
[data-theme="terracotta"] .nav-link {
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #535146;
  letter-spacing: 0;
  text-transform: none;
}

[data-theme="terracotta"] .nav-link:hover {
  color: #c96442;
  background: rgba(201,100,66,0.07);
}

[data-theme="terracotta"] .nav-link.active {
  color: #c96442;
  background: rgba(201,100,66,0.09);
  border: 1px solid rgba(201,100,66,0.18);
  box-shadow: none;
}

[data-theme="terracotta"] .nav-logout {
  color: #83827d;
  border: 1px solid #dad9d4;
  margin-left: 8px;
}

[data-theme="terracotta"] .nav-logout:hover {
  color: #c96442;
  border-color: #c96442;
  background: rgba(201,100,66,0.07);
}

/* ── Mobile nav ── */
[data-theme="terracotta"] .mobile-nav {
  background: #faf9f5;
  border-top: 1px solid #dad9d4;
}

/* ── Hide all bolts & decorative industrial elements ── */
[data-theme="terracotta"] .navbar-bolts,
[data-theme="terracotta"] .bolt,
[data-theme="terracotta"] .fp-bolt,
[data-theme="terracotta"] .table-panel-topbar,
[data-theme="terracotta"] .table-bolt-row,
[data-theme="terracotta"] .bottom-bolt-strip {
  display: none;
}

/* ── Hide page title icon box ── */
[data-theme="terracotta"] .page-title-icon {
  display: none;
}

/* ── Cards ── */
[data-theme="terracotta"] .card {
  background: #faf9f5;
  border: 1px solid #dad9d4;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(61,57,41,0.07);
  color: #3d3929;
}

[data-theme="terracotta"] .card-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Stat cards ── */
[data-theme="terracotta"] .stat-card {
  background: #faf9f5;
  border: 1px solid #dad9d4;
  border-top: 3px solid #c96442;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(61,57,41,0.06);
}

[data-theme="terracotta"] .stat-number {
  font-family: 'Open Sans', sans-serif;
  color: #c96442;
}

[data-theme="terracotta"] .stat-label {
  font-family: 'Open Sans', sans-serif;
  color: #83827d;
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ── Buttons ── */
[data-theme="terracotta"] .btn {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 6px;
}

[data-theme="terracotta"] .btn-primary {
  color: #fff;
  background: #c96442;
  border: none;
  box-shadow: 0 1px 4px rgba(201,100,66,0.3);
}

[data-theme="terracotta"] .btn-primary:hover {
  background: #d97757;
  box-shadow: 0 2px 8px rgba(201,100,66,0.4);
}

[data-theme="terracotta"] .btn-secondary {
  color: #535146;
  background: #fff;
  border: 1px solid #dad9d4;
  box-shadow: none;
}

[data-theme="terracotta"] .btn-secondary:hover {
  background: #f5f4ee;
  border-color: #83827d;
}

[data-theme="terracotta"] .btn-success {
  color: #fff;
  background: #c96442;
  border: none;
  box-shadow: 0 1px 4px rgba(201,100,66,0.3);
}

[data-theme="terracotta"] .btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  box-shadow: none;
}

[data-theme="terracotta"] .btn-danger:hover {
  background: #ef4444;
}

/* ── Forms ── */
[data-theme="terracotta"] .form-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #83827d;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

[data-theme="terracotta"] .form-control {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  border: 1px solid #dad9d4;
  color: #3d3929;
  border-radius: 6px;
  box-shadow: none;
}

[data-theme="terracotta"] .form-control:focus {
  border-color: #c96442;
  box-shadow: 0 0 0 3px rgba(201,100,66,0.12);
}

[data-theme="terracotta"] .form-control::placeholder { color: #b4b2a7; }

[data-theme="terracotta"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2383827d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  background-color: #fff;
}

/* ── Tables ── */
[data-theme="terracotta"] .table-wrap {
  background: #faf9f5;
  border: 1px solid #dad9d4;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(61,57,41,0.07);
}

[data-theme="terracotta"] th {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: #f5f4ee;
  color: #83827d;
  border-bottom: 1px solid #dad9d4;
  letter-spacing: 0.5px;
}

[data-theme="terracotta"] td {
  font-family: 'Open Sans', sans-serif;
  border-bottom: 1px solid #ede9de;
  color: #3d3929;
  border-left: 3px solid transparent;
}

[data-theme="terracotta"] tbody tr:nth-child(even) { background: rgba(0,0,0,0.012); }

[data-theme="terracotta"] tbody tr:hover { background: rgba(201,100,66,0.04); }

[data-theme="terracotta"] tbody tr:hover td:first-child { border-left: 3px solid #c96442; }

/* ── Page title ── */
[data-theme="terracotta"] .page-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #3d3929;
  text-shadow: none;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Badges ── */
[data-theme="terracotta"] .badge {
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0;
}

/* ── Filter panel ── */
[data-theme="terracotta"] .filter-panel {
  background: #faf9f5;
  border: 1px solid #dad9d4;
  border-radius: 8px;
  border-top: 3px solid #c96442;
  box-shadow: 0 1px 6px rgba(61,57,41,0.07);
}

[data-theme="terracotta"] .filter-panel::before {
  display: none;
}

/* ── Upload zone ── */
[data-theme="terracotta"] .upload-zone {
  border: 2px dashed #dad9d4;
  border-radius: 8px;
  background: rgba(0,0,0,0.015);
  color: #83827d;
}

[data-theme="terracotta"] .upload-zone:hover,
[data-theme="terracotta"] .upload-zone.drag-over {
  border-color: #c96442;
  color: #3d3929;
  background: rgba(201,100,66,0.03);
}

/* ── Photo thumb ── */
[data-theme="terracotta"] .photo-thumb { border: 1px solid #dad9d4; }
[data-theme="terracotta"] .photo-thumb:hover { border-color: #c96442; }

/* ── Flash messages ── */
[data-theme="terracotta"] .flash { font-family: 'Open Sans', sans-serif; border-radius: 6px; }
[data-theme="terracotta"] .flash-success { background: rgba(21,128,61,0.07); border-color: rgba(21,128,61,0.2); color: #15803d; }
[data-theme="terracotta"] .flash-error { background: rgba(220,38,38,0.07); border-color: rgba(220,38,38,0.2); color: #dc2626; }
[data-theme="terracotta"] .flash-warning { background: rgba(201,100,66,0.08); border-color: rgba(201,100,66,0.25); color: #c96442; }

/* ── Login card ── */
[data-theme="terracotta"] .login-card {
  background: #faf9f5;
  border-top: 3px solid #c96442;
}

[data-theme="terracotta"] .login-card h2 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

/* ============================================================
   SETTINGS PAGE
   ============================================================ */

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.settings-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.settings-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #8A8A96);
  margin-bottom: 1.25rem;
}

.settings-form-bottom { margin-bottom: 1.5rem; }

.settings-logo-card { margin-top: 1.5rem; }

/* ── Logo section ── */
.settings-logo-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.settings-logo-current { flex-shrink: 0; }

.settings-logo-current-label {
  font-size: 10px;
  color: var(--text-muted, #8A8A96);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.settings-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--surface-border, #52525A);
  background: rgba(255,255,255,0.05);
  display: block;
}

.settings-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 2px dashed var(--surface-border, #52525A);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #8A8A96);
  font-size: 11px;
  text-align: center;
  line-height: 1.3;
}

.settings-logo-remove { margin-top: 0.5rem; }

.settings-logo-upload {
  flex: 1;
  min-width: 220px;
}

.settings-upload-zone {
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.settings-upload-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.settings-upload-text {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.settings-upload-hint {
  font-size: 0.75rem;
  opacity: 0.7;
}

.settings-file-input { display: none; }

.settings-logo-preview {
  display: none;
  margin-top: 0.75rem;
  align-items: center;
  gap: 1rem;
}

.settings-logo-preview-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid var(--surface-border, #52525A);
}

.settings-logo-filename {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* ── Theme picker cards grid ── */
.theme-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.theme-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* ── Shared preview elements ── */
.tc-preview__header {
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.tc-preview__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.tc-preview__body { padding: 10px 12px; }

.tc-preview__bars {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.tc-preview__bar { border-radius: 3px; height: 6px; flex: 1; }

.tc-preview__inner-card { padding: 8px; margin-bottom: 6px; }
.tc-preview__inner-card .tc-preview__bar { height: 5px; margin-bottom: 5px; }
.tc-preview__inner-card .tc-preview__bar:last-child { margin-bottom: 0; }

.tc-preview__table-row {
  border-radius: 4px;
  margin-bottom: 6px;
  height: 28px;
}

.tc-preview__buttons {
  display: flex;
  gap: 6px;
}

.tc-preview__btn-primary,
.tc-preview__btn-secondary {
  flex: 1;
  border-radius: 3px;
}

.tc-preview__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
}

.tc-preview__label { font-size: 10px; }

.tc-preview__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
  background: transparent;
}

.tc-preview__nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.tc-preview__nav-item { font-size: 10px; }

/* ── Firetruck Red preview ── */
.tc-preview--firetruck {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.tc-preview--firetruck .tc-preview__header {
  background: linear-gradient(180deg, #E01A1A 0%, #CC1111 40%, #8B0000 100%);
  height: 56px;
}

.tc-preview--firetruck .tc-preview__logo {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #e8e8f0 0%, #c0c0cc 50%, #2e2e32 100%);
  border-radius: 4px;
  border: 1px solid #c0c0cc;
  font-size: 9px;
  color: #CC1111;
}

.tc-preview--firetruck .tc-preview__name {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
}

.tc-preview--firetruck .tc-preview__body { background: #1C1C1E; }

.tc-preview--firetruck .tc-preview__bar { background: #3A3A3F; }

.tc-preview--firetruck .tc-preview__table-row {
  background: linear-gradient(180deg, #3A3A3F 0%, #2E2E32 100%);
  border: 1px solid #52525A;
}

.tc-preview--firetruck .tc-preview__btn-primary {
  height: 20px;
  background: linear-gradient(180deg, #e8e8f0 0%, #8A8A96 100%);
  border: 1px solid #c0c0cc;
}

.tc-preview--firetruck .tc-preview__btn-secondary {
  height: 20px;
  background: linear-gradient(180deg, #3A3A3F 0%, #1C1C1E 100%);
  border: 1px solid #52525A;
}

.tc-preview--firetruck .tc-preview__footer {
  background: #1C1C1E;
  border-top: 1px solid #2E2E32;
}

.tc-preview--firetruck .tc-preview__label {
  color: #8A8A96;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tc-preview--firetruck .tc-preview__check { border-color: #52525A; }

.tc-preview--firetruck.theme-card--active { border-color: #CC1111; }
.tc-preview--firetruck.theme-card--active .tc-preview__check {
  background: #CC1111;
  border-color: #CC1111;
}
.tc-preview--firetruck.theme-card--active .tc-preview__check::after { content: '✓'; }

/* ── Warm Terracotta preview ── */
.tc-preview--terracotta {
  box-shadow: 0 1px 6px rgba(61,57,41,0.12);
}

.tc-preview--terracotta .tc-preview__header {
  background: #faf9f5;
  height: 48px;
  border-bottom: 1px solid #dad9d4;
}

.tc-preview--terracotta .tc-preview__logo {
  width: 22px;
  height: 22px;
  background: #c96442;
  border-radius: 5px;
  font-size: 9px;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
}

.tc-preview--terracotta .tc-preview__name {
  font-size: 11px;
  font-weight: 700;
  color: #3d3929;
  font-family: 'Open Sans', sans-serif;
}

.tc-preview--terracotta .tc-preview__nav-item { color: #535146; font-family: 'Open Sans', sans-serif; }
.tc-preview--terracotta .tc-preview__nav-item--active { color: #c96442; border-bottom: 1px solid #c96442; }

.tc-preview--terracotta .tc-preview__body { background: #ede9de; }

.tc-preview--terracotta .tc-preview__inner-card {
  background: #faf9f5;
  border: 1px solid #dad9d4;
  border-radius: 6px;
}

.tc-preview--terracotta .tc-preview__bar { background: #dad9d4; }
.tc-preview--terracotta .tc-preview__bar--medium { background: #ede9de; width: 40%; flex: none; }
.tc-preview--terracotta .tc-preview__bar--wide { width: 60%; flex: none; }

.tc-preview--terracotta .tc-preview__btn-primary {
  height: 22px;
  background: #c96442;
  border-radius: 5px;
}

.tc-preview--terracotta .tc-preview__btn-secondary {
  height: 22px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid #dad9d4;
}

.tc-preview--terracotta .tc-preview__footer {
  background: #f5f4ee;
  border-top: 1px solid #dad9d4;
}

.tc-preview--terracotta .tc-preview__label {
  color: #83827d;
  font-family: 'Open Sans', sans-serif;
}

.tc-preview--terracotta .tc-preview__check { border-color: #dad9d4; }

.tc-preview--terracotta.theme-card--active { border-color: #c96442; }
.tc-preview--terracotta.theme-card--active .tc-preview__check {
  background: #c96442;
  border-color: #c96442;
}
.tc-preview--terracotta.theme-card--active .tc-preview__check::after { content: '✓'; }

/* ============================================================
   THEME: Modern Minimal
   ============================================================ */
[data-theme="modern-minimal"] {
  --background: #ffffff;
  --foreground: #333333;
  --card: #ffffff;
  --card-foreground: #333333;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #f3f4f6;
  --secondary-foreground: #4b5563;
  --muted: #f9fafb;
  --muted-foreground: #6b7280;
  --accent: #e0f2fe;
  --accent-foreground: #1e3a8a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #3b82f6;
  --radius: 0.375rem;

  font-family: 'Inter', sans-serif;
}

[data-theme="modern-minimal"] body {
  background-color: var(--background);
  color: var(--foreground);
}

[data-theme="modern-minimal"] .header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
[data-theme="modern-minimal"] .header::before,
[data-theme="modern-minimal"] .header::after { display: none; }

[data-theme="modern-minimal"] .logo-text,
[data-theme="modern-minimal"] .logo-sub { color: var(--foreground); }

[data-theme="modern-minimal"] .nav-link { color: var(--muted-foreground); }
[data-theme="modern-minimal"] .nav-link:hover { color: var(--primary); background: var(--accent); border-radius: var(--radius); }
[data-theme="modern-minimal"] .nav-link.active { color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); background: transparent; border-radius: 0; }

[data-theme="modern-minimal"] .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
[data-theme="modern-minimal"] .card-title { color: var(--card-foreground); border-bottom: 1px solid var(--border); }

[data-theme="modern-minimal"] .btn-primary { background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius); border: none; box-shadow: none; }
[data-theme="modern-minimal"] .btn-primary:hover { opacity: 0.9; }
[data-theme="modern-minimal"] .btn-secondary { background: var(--secondary); color: var(--secondary-foreground); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: none; }
[data-theme="modern-minimal"] .btn-secondary:hover { background: var(--input); }

[data-theme="modern-minimal"] .table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
[data-theme="modern-minimal"] th { background: var(--muted); color: var(--muted-foreground); border-bottom: 1px solid var(--border); font-weight: 500; }
[data-theme="modern-minimal"] td { border-bottom: 1px solid var(--border); color: var(--foreground); }
[data-theme="modern-minimal"] tbody tr:hover { background: var(--muted); }

/* Remove industrial elements */
[data-theme="modern-minimal"] .navbar-bolts,
[data-theme="modern-minimal"] .bolt,
[data-theme="modern-minimal"] .fp-bolt,
[data-theme="modern-minimal"] .table-bolt-row,
[data-theme="modern-minimal"] .bottom-bolt-strip,
[data-theme="modern-minimal"] .page-title-icon {
  display: none !important;
}

/* Page Title Override */
[data-theme="modern-minimal"] .page-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--foreground);
  text-shadow: none;
  letter-spacing: 0;
  text-transform: none;
}

/* Button & Badge Overrides */
[data-theme="modern-minimal"] .btn,
[data-theme="modern-minimal"] .badge {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

/* Filter Panel Override */
[data-theme="modern-minimal"] .filter-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
[data-theme="modern-minimal"] .filter-panel::before {
  display: none;
}
[data-theme="modern-minimal"] .table-panel-topbar {
  display: none;
}
[data-theme="modern-minimal"] tbody tr td:first-child { border-left: 3px solid transparent; }
[data-theme="modern-minimal"] tbody tr:hover td:first-child { border-left: 3px solid var(--primary); }

/* Form inputs */
[data-theme="modern-minimal"] .form-control {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius);
  box-shadow: none;
}
[data-theme="modern-minimal"] .form-control:focus {
  border-color: var(--ring);
  box-shadow: none;
  outline: none;
}
[data-theme="modern-minimal"] select.form-control {
  background-color: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

/* Preview Card Styles */
.tc-preview--modern-minimal { background: #f9fafb; font-family: 'Inter', sans-serif; }
.tc-preview--modern-minimal .tc-preview__header { background: #ffffff; border-bottom: 1px solid #e5e7eb; }
.tc-preview--modern-minimal .tc-preview__logo { background: #f3f4f6; color: #333333; font-weight: 600; border-radius: 4px; border: 1px solid #e5e7eb; }
.tc-preview--modern-minimal .tc-preview__name { font-size: 11px; font-weight: 600; color: #333333; }
.tc-preview--modern-minimal .tc-preview__nav-item { color: #6b7280; font-family: 'Inter', sans-serif; font-size: 10px; }
.tc-preview--modern-minimal .tc-preview__nav-item--active { color: #3b82f6; border-bottom: 2px solid #3b82f6; font-weight: 500; }

.tc-preview--modern-minimal .tc-preview__body { background: #f9fafb; padding: 12px; }
.tc-preview--modern-minimal .tc-preview__inner-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.tc-preview--modern-minimal .tc-preview__bar { background: #e5e7eb; border-radius: 2px;}
.tc-preview--modern-minimal .tc-preview__bar--medium { width: 40%; flex: none; }
.tc-preview--modern-minimal .tc-preview__bar--wide { width: 60%; flex: none; }

.tc-preview--modern-minimal .tc-preview__btn-primary { height: 22px; background: #3b82f6; border-radius: 4px; }
.tc-preview--modern-minimal .tc-preview__btn-secondary { height: 22px; background: #ffffff; border-radius: 4px; border: 1px solid #e5e7eb; }

.tc-preview--modern-minimal .tc-preview__footer { background: #ffffff; border-top: 1px solid #e5e7eb; }
.tc-preview--modern-minimal .tc-preview__label { color: #6b7280; font-weight: 500;}
.tc-preview--modern-minimal .tc-preview__check { border-color: #d1d5db; border-radius: 4px; }

.tc-preview--modern-minimal.theme-card--active { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
.tc-preview--modern-minimal.theme-card--active .tc-preview__check { background: #3b82f6; border-color: #3b82f6; }
.tc-preview--modern-minimal.theme-card--active .tc-preview__check::after { content: '✓'; }

@media (max-width: 768px) {
  .settings-grid { grid-template-columns: 1fr; }
  .theme-cards-grid { grid-template-columns: 1fr 1fr; }
}

