/* spoiler.css — Race‑inspired theme based on new logo */

/* ────────────────────────────────────────────────────────── */
/* Color Palette                                             */
/* ────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-dark:   #111E2E;  /* deep navy */
  --bg-mid:    #1F2A3B;  /* dark slate */
  --bg-light:  #2C3E50;  /* muted blue-gray */

  /* Text */
  --text:      #F2F2F2;  /* off-white */

  /* Accents */
  --blue:      #4A90E2;  /* primary blue */
  --blue-light:#A3D9E6;  /* lighter blue */
  --orange:    #FF8C00;  /* signal orange */

  /* Neutrals */
  --border:    #34526F;  /* steel border */
  --muted:     #777777;  /* input borders, placeholders */
  
  /* Garage-specific Racing Colors */
  --steel:     #8A9BA8;  /* metallic steel */
  --steel-light: #B8C5D1; /* lighter steel */
  --steel-dark:  #5D6B7A; /* darker steel */
  --charcoal:    #3C4142; /* racing charcoal */
  --silver:      #C0C0C0; /* metallic silver */
  
  /* Credit System Colors */
  --credit-green:  #28A745; /* good balance */
  --credit-yellow: #FFC107; /* medium balance */
  --credit-orange: #FD7E14; /* low balance */
  --credit-red:    #DC3545; /* critical balance */

  /* Shadows for dark mode */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.3);
}

/* ────────────────────────────────────────────────────────── */
/* Light Mode Color Palette                                   */
/* ────────────────────────────────────────────────────────── */
[data-theme="light"] {
  /* Backgrounds - Professional layered grays (inspired by Notion/Linear) */
  --bg-dark:   #E8E8EA;  /* visible medium gray - main background (much more contrast!) */
  --bg-mid:    #FFFFFF;  /* pure white - elevated surfaces (cards, modals) */
  --bg-light:  #F5F5F7;  /* light gray - subtle sections */

  /* Text - High contrast for maximum readability (softer than pure black) */
  --text:      #334155;  /* dark slate blue (steel-dark) - softer than black */
  --text-muted:#6B6B6B;  /* medium gray for secondary text (7:1 contrast) */

  /* Accents - Professional blues and oranges with better contrast */
  --blue:      #0052CC;  /* deeper professional blue (Atlassian-style) */
  --blue-light:#2684FF;  /* vibrant medium blue for interactive elements */
  --blue-dark: #0747A6;  /* very dark blue for emphasis */
  --orange:    #D97706;  /* amber orange (better contrast than bright orange) */

  /* Neutrals - More defined borders and structure */
  --border:    #D1D5DB;  /* visible but soft border (gray-300) */
  --muted:     #9CA3AF;  /* muted elements (gray-400) */

  /* Racing Colors - Stronger contrast for light backgrounds */
  --steel:     #475569;  /* slate-600 - much darker for visibility */
  --steel-light: #64748B; /* slate-500 - darker medium steel */
  --steel-dark:  #334155; /* slate-700 - very dark steel */
  --charcoal:    #1E293B; /* slate-800 - almost black */
  --silver:      #94A3B8; /* slate-400 - darker silver with blue tint */

  /* Credit System - Adjusted for better visibility on light backgrounds */
  --credit-green:  #16A34A;  /* darker green (green-600) */
  --credit-yellow: #CA8A04;  /* darker yellow (yellow-600) */
  --credit-orange: #EA580C;  /* darker orange (orange-600) */
  --credit-red:    #DC2626;  /* darker red (red-600) */

  /* Shadows - Stronger for better depth perception */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.12);
}

/* ────────────────────────────────────────────────────────── */
/* Light Mode Specific Component Overrides                   */
/* ────────────────────────────────────────────────────────── */
[data-theme="light"] .page-title {
  text-shadow: none; /* Remove dark shadow in light mode */
  color: var(--steel-dark); /* Match other text - softer than charcoal */
}

[data-theme="light"] .job-number {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(217, 119, 6, 0.2);
}

/* Logo visibility fix for light mode - add dark border/shadow for contrast */
[data-theme="light"] .site-logo__img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.6));
}

/* Logo text visibility in light mode */
[data-theme="light"] .site-logo__text {
  color: var(--steel-dark) !important;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.9), 2px 2px 0 var(--blue) !important;
}

[data-theme="light"] .site-logo__text a {
  color: var(--steel-dark) !important;
}

/* "by Outsized Insights" text visibility in light mode */
[data-theme="light"] .tiny-text {
  color: var(--steel-dark) !important;
  text-shadow: 0.5px 0.5px 0 rgba(255, 255, 255, 0.8), 1px 1px 0 var(--orange) !important;
}

[data-theme="light"] .tiny-text a {
  color: var(--steel-dark) !important;
}

/* ────────────────────────────────────────────────────────── */
/* Light Mode: Fix Dark Sections & Cards                     */
/* ────────────────────────────────────────────────────────── */

/* Dashboard and Credit sections with dark backgrounds */
[data-theme="light"] .dashboard-header,
[data-theme="light"] .pit-stop,
[data-theme="light"] .credit-dashboard,
[data-theme="light"] .balance-card,
[data-theme="light"] .transaction-card {
  background: var(--bg-mid) !important;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* Dashboard cards - use white background with subtle shadows */
[data-theme="light"] .dashboard-card {
  background: var(--bg-mid) !important;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .dashboard-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Search inputs in dark sections */
[data-theme="light"] .search-input,
[data-theme="light"] .pit-stop .search-input {
  background: var(--bg-light) !important;
  border-color: var(--border);
  color: var(--text);
}

/* Filter selects */
[data-theme="light"] .filter-select {
  background: var(--bg-light) !important;
  border-color: var(--border);
  color: var(--text);
}

[data-theme="light"] .filter-select option {
  background: var(--bg-mid);
  color: var(--text);
}

/* Remove dark gradient overlays/animations in light mode */
[data-theme="light"] .pit-stop::before,
[data-theme="light"] .dashboard-header::before,
[data-theme="light"] .dashboard-card::before {
  display: none;
}

/* Job cards and other card elements */
[data-theme="light"] .job-card {
  background: var(--bg-mid) !important;
  border-color: var(--border);
}

/* Sidebar elements */
[data-theme="light"] .garage-sidebar,
[data-theme="light"] .sidebar-section {
  background: var(--bg-mid);
  border-color: var(--border);
}

/* Stat cards and indicators */
[data-theme="light"] .stat-card,
[data-theme="light"] .sidebar-stat-indicator {
  background: var(--bg-light) !important;
  border-color: var(--border);
}

[data-theme="light"] .count-badge {
  background: var(--blue) !important;
  color: white !important;
}

/* ────────────────────────────────────────────────────────── */
/* Base & Layout                                            */
/* ────────────────────────────────────────────────────────── */
body {
  margin: 0;
  padding: 0;
  /* padding-top: 106px;               /* space for fixed header */
  font-family: "Exo 2", sans-serif !important;
  font-weight: 200;
  line-height: 1.5;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text);
}

.content {
  max-width: 95vw; /* Use almost full viewport width */
  margin: 0 auto;
  padding: 90px 1rem 2rem 1rem; /* Reduced side padding for more width */
  width: 95%; /* Increased from 90% to 95% */
  background: var(--bg-dark);
  color: var(--text);
  min-height: calc(100vh - 90px);
}

/* ────────────────────────────────────────────────────────── */
/* Sections                                                  */
/* ────────────────────────────────────────────────────────── */
section {
  background: var(--bg-mid);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  padding: 1em;
  margin: 1em 0;
}

/* ────────────────────────────────────────────────────────── */
/* Headings                                                  */
/* ────────────────────────────────────────────────────────── */
h2 {
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.6rem;
  margin: 0 0 .5em;
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%; height: 3px;
  /* background: repeating-linear-gradient(
    90deg,
    var(--steel)      0%,  var(--steel)      10%,
    var(--steel-light)10%, var(--steel-light)20%
  ); */
  background-size: 20px 3px;
}


.site-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 100;
  margin-top: auto;
}
.site-footer .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Footer Navigation */
.footer-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

.footer-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-nav-btn:hover {
  color: var(--blue);
  background: rgba(74, 144, 226, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-nav-btn i {
  font-size: 1.1rem;
}

/* Footer Notifications Dropdown */
.footer-notifications {
  position: relative;
  display: inline-block;
}

.footer-notifications .footer-nav-btn {
  color: var(--text);
}

.footer-notifications .dropdown-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--bg-dark);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.footer-notifications .dropdown-menu .dropdown-item {
  color: var(--text);
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.footer-notifications .dropdown-menu .dropdown-item:hover {
  background: rgba(74, 144, 226, 0.1);
  color: var(--blue);
}

.footer-notifications .dropdown-menu .dropdown-header {
  color: var(--steel-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
}

.footer-notifications .dropdown-menu .dropdown-divider {
  border-color: rgba(74, 144, 226, 0.2);
  margin: 0.25rem 0;
}

/* Footer Copyright */
.footer-copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(138, 155, 168, 0.2);
}

.footer-copyright p,
.footer-copyright a {
  color: var(--steel-light);
  font-size: 0.85rem;
  text-decoration: none;
  margin: 0;
}

.footer-copyright a:hover {
  color: var(--orange);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-nav-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
  }

  .footer-notifications {
    width: 100%;
  }

  .footer-notifications .footer-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-notifications .dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* ────────────────────────────────────────────────────────── */
/* Logo & Site Title                                         */
/* ────────────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────── */
/* Header: fix height to 70px, align logo + text            */
/* ────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 110px;                 /* fixed header height */
  background: var(--bg-mid);
  border-bottom: 3px solid var(--orange);
  z-index: 1000;
}

.site-header__inner {
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;                 /* fill header’s 70px */
}

/* Logo + Title container */
.site-logo-title {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

/* Header right section - vertical layout for nav and credit widget */
.header-right-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Logo image at full header height */
.site-logo__img {
  height: 100%;                 /* 70px tall */
  width: auto;
}

/* “Spoiler” text matching logo height */
.site-logo__text {
  display: inline-block;
  /* font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; */
  font-family: 'Exo 2', sans-serif;
  /* font-family: 'Bebas Neue', sans-serif; */
  font-weight: 700;      /* choose 400/600/700 based on the weight you like */
  font-size: 3rem;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 0 0.4em;
  display: inline-block;
  transform: skewX(-15deg);
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 0 #000, 3px 3px 0 #4A90E2;
  position: relative;
  line-height: 1;
}
/* ────────────────────────────────────────────────────────── */
/* Navigation Buttons                                        */
/* ────────────────────────────────────────────────────────── */
.frameless-site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav__btn,
.frameless-site-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  width: 50px;
  height: 50px;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(138, 155, 168, 0.3);
  border-radius: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
  line-height: 1;
  /* Ensure no extra spacing */
  white-space: nowrap;
}
.site-nav__btn:hover,
.frameless-site-nav__btn:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateY(-1px);
  color: var(--blue);
  text-decoration: none;
  border-color: var(--blue);
}
.site-nav__btn:active,
.frameless-site-nav__btn:active {
  transform: translateY(-1px) scale(0.95);
  transition: all 0.1s ease;
}
.site-nav__btn.active,
.frameless-site-nav__btn.active {
  background: transparent;
  border-color: rgba(138, 155, 168, 0.3);
  color: var(--blue);
}
.frameless-site-nav__btn i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.frameless-site-nav__btn:hover i {
  transform: translate(-50%, -50%) scale(1.1);
}

.frameless-site-nav__btn.active i {
  transform: translate(-50%, -50%) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Text buttons for login/signup */
.frameless-site-nav__btn--text,
.frameless-site-nav__btn--primary {
  width: auto;
  padding: 0 1.25rem !important;
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

.frameless-site-nav__btn--text .nav-btn-label,
.frameless-site-nav__btn--primary .nav-btn-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 0.5rem;
  display: inline-block;
}

.frameless-site-nav__btn--text i,
.frameless-site-nav__btn--primary i {
  position: relative;
  transform: none;
  top: auto;
  left: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.frameless-site-nav__btn--text:hover i,
.frameless-site-nav__btn--primary:hover i {
  transform: none;
}

/* Primary button (Sign Up) styling */
.frameless-site-nav__btn--primary {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border-color: transparent;
  color: white;
}

.frameless-site-nav__btn--primary:hover {
  background: linear-gradient(135deg, #357ABD 0%, #2968A8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  color: white;
  border-color: transparent;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .frameless-site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .frameless-site-nav__btn {
    width: 45px;
    height: 45px;
    padding: 0;
    font-size: 0.8rem;
  }
  
  .frameless-site-nav__btn i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .frameless-site-nav__btn {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .frameless-site-nav__btn i {
    font-size: 1rem;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Theme Toggle Button                                       */
/* ────────────────────────────────────────────────────────── */
.spoiler-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: transparent;
  border: 2px solid rgba(138, 155, 168, 0.3);
  border-radius: 15px;
  color: var(--blue);
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.spoiler-theme-toggle:hover {
  background: rgba(74, 144, 226, 0.1);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.spoiler-theme-toggle:active {
  transform: translateY(-1px) scale(0.95);
  transition: all 0.1s ease;
}

.spoiler-theme-toggle:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.theme-icon {
  display: inline-block;
  line-height: 1;
  transition: transform 0.3s ease;
}

.spoiler-theme-toggle:hover .theme-icon {
  transform: scale(1.1);
}

/* Responsive theme toggle */
@media (max-width: 768px) {
  .spoiler-theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .spoiler-theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Flex Containers & Inputs                                  */
/* ────────────────────────────────────────────────────────── */
.direction-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5em;
  margin: 1em 0;
}

.direction {
  flex: 1 1 auto;
  padding: .5em;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: var(--bg-light);
  color: var(--text);
  transition: border .2s, box-shadow .2s;
}
.direction:focus {
  border-color: var(--steel);
  box-shadow: 0 0 4px var(--steel);
  outline: none;
}

.js-form {
  display: flex;
  flex-wrap: wrap;
  gap: .4em;
  margin-bottom: 1em;
}
.js-input {
  flex: 1 1 150px;
  padding: .5em;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: var(--bg-light);
  color: var(--text);
  transition: border .2s, box-shadow .2s;
}
.js-input:focus {
  border-color: var(--steel);
  box-shadow: 0 0 4px var(--steel);
  outline: none;
}

/* ────────────────────────────────────────────────────────── */
/* Buttons (Generate, Regenerate, Add)                       */
/* ────────────────────────────────────────────────────────── */
.js-form button,
.regenerate,
.generate,
#list {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #666, #444);
  border: none;
  padding: .5em 1em;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, transform .1s, color .2s;
  color: var(--text);
}
.js-form button:hover,
.regenerate:hover,
.generate:hover,
#list:hover {
  background: linear-gradient(145deg, #555, #333);
}
.js-form button:active,
.regenerate:active,
.generate:active,
#list:active {
  transform: scale(.97);
}
.js-form button::before,
.regenerate::before,
.generate::before,
#list::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.js-form button:hover::before,
.regenerate:hover::before,
.generate:hover::before,
#list:hover::before {
  animation: shine 1s forwards;
}

/* ────────────────────────────────────────────────────────── */
/* List Items                                                */
/* ────────────────────────────────────────────────────────── */
.js-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.js-list li {
  background: var(--bg-light);
  margin-bottom: .4em;
  padding: .6em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--orange);
  border-radius: 3px;
  opacity: 0;
  transform: translateX(40px);
  animation: fadeIn 0.3s forwards ease-out;
  color: var(--text);
}
.js-list li.removing {
  animation: fadeOut 0.25s forwards ease-in;
}

/* ────────────────────────────────────────────────────────── */
/* Editable Codes List (Field 2)                             */
/* ────────────────────────────────────────────────────────── */

/* same reset as .js-list */
.codes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

/* same card‑style + animation as .js-list li */
.codes-list li {
  background: var(--bg-light);
  margin-bottom: .4em;
  padding: .6em;
  display: flex;                    /* lay out title + button in one row */
  align-items: center;
  justify-content: space-between;   /* title left, button right */
  border-left: 4px solid var(--orange);
  border-radius: 3px;
  opacity: 0;
  transform: translateX(40px);
  animation: fadeIn 0.3s forwards ease-out;
  color: var(--text);
}

/* same removal animation */
.codes-list li.removing {
  animation: fadeOut 0.25s forwards ease-in;
}

/* same remove‑button style */
.codes-list .remove {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color .2s;
}

/* hover state */
.codes-list .remove:hover {
  color: var(--steel);
}



/* Theme & Desc Inputs */
.theme-input {
  flex: 1 1 auto;
  margin-right: .4em;
  font-size: 1.2rem;
  font-weight: bold;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: text;
}
.theme-input::placeholder { color: var(--muted); }

.desc-input {
  flex: 1 1 auto;
  margin-right: .4em;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  color: #DDD;
  cursor: text;
}
.desc-input::placeholder { color: var(--muted); }

/* Remove Button */
.remove {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color .2s;
}
.remove:hover { color: var(--orange); }

/* ────────────────────────────────────────────────────────── */
/* Call‑to‑Action Button                                      */
/* ────────────────────────────────────────────────────────── */
.tail-light {
  background: var(--orange);
  color: var(--text);
  border: none;
  padding: 0.7em 1.5em;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  display: block;
  margin: 1em auto;
}
.tail-light:hover {
  background: darken(var(--orange), 10%);
  box-shadow: 0 0 8px rgba(255,140,0,0.6);
}

/* ────────────────────────────────────────────────────────── */
/* Animations                                                */
/* ────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(40px);
    height: 0; margin: 0; padding: 0;
  }
}
@keyframes shine {
  to { left: 125%; }
}

/* ────────────────────────────────────────────────────────── */
/* Responsive                                                */
/* ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  body { padding-top: 56px; }
  section { padding: .5em; }
  h2 { font-size: 1.3rem; }
  .js-form { gap: .3em; }
  .direction-container { flex-wrap: wrap; }
  .direction, .regenerate { width: 100%; }
  .js-form button,
  .generate, .regenerate, #list { width: 100%; }
}

/* ────────────────────────────────────────────────────────── */
/* Full‑height layout                                        */
/* ────────────────────────────────────────────────────────── */
/* html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
} */

/* Make your main content area expand to fill available space */
main {
  flex: 1;
  background: var(--bg-dark);
  color: var(--text);
  min-height: calc(100vh - 110px); /* Account for header height */
}


.f1-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--text);
  padding: 0 0.4em;
  display: block;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 140, 0, 0.2);
  position: relative;
  line-height: 1.2;
  text-align: center;
}

.f1-title::before {
  content: '';
  display: block;
  position: absolute;
}

/* html, body, main { background: var(--bg-dark) !important; } */

/* Center all forms in the page */
.content form {
  max-width: 90%;      /* or whatever width feels right */
  margin: 2rem auto;     /* top/bottom spacing, auto‑center left/right */
}

/* ────────────────────────────────────────────────────────── */
/* Center page headings & links, keep form inputs left-aligned */
/* ────────────────────────────────────────────────────────── */

.content {
  text-align: center;      /* center all inline/heading content */
}

/* Forms stay centered as blocks, but their inner fields remain left-aligned */
.content form {
  margin: 2rem auto;       /* vertical spacing + auto center */
  text-align: left;        /* reset to left for form controls */
}

/* Ensure your page titles (h2 or .f1-title) sit centered */
.content h2,
.content .f1-title {
  margin: 1.5rem auto;     /* centered with some vertical breathing room */
}

/* Center any standalone paragraphs or utility link blocks */
.content p,
.content .mt-3 {
  margin: 1rem auto;
}

/* If you have other link‑only elements (e.g. small nav under form), you can target them too: */
.content .link-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  display: inline-block;   /* shrink to content, then center with parent’s text-align */
}
.content .link-list li {
  display: inline;
  margin: 0 .5rem;
}

/* ────────────────────────────────────────────────────────── */
/* Section & Nav‑dots Styling                                */
/* ────────────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────────── */
/* Snappier Native Scroll‑Snap                              */
/* ────────────────────────────────────────────────────────── */

#landing {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

#landing .section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0 !important;
  padding: 2rem !important;      /* or whatever inner padding you want */
  width: 100vw !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: var(--bg-mid) !important;
}


/* Nav‑dots */
.nav-dots {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 900;
}
.nav-dots ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-dots li {
  margin: .5rem 0;
}
.nav-dots a {
  display: block;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--muted);
  transition: background .3s;
}
.nav-dots a.active,
.nav-dots a:hover {
  background: var(--steel);
}

.site-logo__text {
  display: inline-block;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  text-transform: uppercase;
  color: #FFFFFF !important;
  padding: .3em .1em 0;
  transform: skewX(-15deg);
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 0 #000, 3px 3px 0 #4A90E2;
  line-height: .5;
}

.tiny-text{
  font-size: .7rem !important;
  padding-left: 12px;
  text-shadow: 1px 1px 0 #000, 1.75px 1.75px 0 var(--orange);
}


/* Make every list-item stack its children vertically */
.js-list li {
  display: flex !important;
  flex-direction: column;
  padding: 0.75em;
}

/* Header row: theme + remove button */
.item-header {
  width: 100%;
}

/* Theme title styling */
.theme-input,
.item-header .form-control {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  border: none;
  background: transparent;
  padding: 0;
}

/* Description block styling */
.item-desc {
  width: 100%;
  margin: 0;            /* removes default <textarea> margins */
  resize: vertical;     /* allow user to manually grow if they want */
  white-space: normal;  /* ensure wrapping */
  font-size: 0.95rem;
  color: var(--muted);
  border: none;
  background: transparent;
  padding: 0.4em 0 0;
}

/* Ensure the remove‑button still floats right */
.remove {
  flex-shrink: 0;
  margin-left: 1em;
}

/* ================================
   ENHANCED THEME GENERATION STYLES
   ================================ */

/* Page Container for consistent widths */
.page-container {
  max-width: 95vw; /* Use almost full viewport width */
  margin: 0 auto;
  padding: 0 10px; /* Reduced padding for more width */
}

/* Theme Explanation Section */
.theme-explanation-section {
  margin: 15px 0;  /* Reduced from 30px for tighter spacing */
}

.explanation-card {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-mid) 100%);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.explanation-card.collapsed {
  padding: 0;
}

.explanation-card:not(.collapsed) {
  padding: 0;
}

.explanation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
  margin-bottom: 0;
}

.explanation-header:hover {
  background: rgba(74, 144, 226, 0.05);
}

.explanation-card:not(.collapsed) .explanation-header {
  border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

.explanation-icon {
  font-size: 24px;
}

.explanation-header h3 {
  color: var(--text);
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Collapse icon */
.collapse-icon {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--steel-light);
  transition: transform 0.3s ease;
}

/* Rotate icon when expanded */
.explanation-header[aria-expanded="true"] .collapse-icon {
  transform: rotate(180deg);
}

.explanation-content {
  padding: 20px 25px;
}

.explanation-content p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.explanation-examples {
  margin-bottom: 20px;
}

.example-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.example-label {
  color: var(--steel-light);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.example-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.example-tag {
  background: var(--steel);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.explanation-tips {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(74, 144, 226, 0.1);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid var(--orange);
}

.tip-icon {
  font-size: 16px;
  margin-top: 2px;
}

.explanation-tips span:last-child {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* Section Headers */
.section-header {
  margin-bottom: 25px;
}

.section-header h3 {
  color: var(--text);
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-header p {
  color: var(--steel-light);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Theme Management Section */
.theme-management-section {
  margin: 30px 0;
  padding: 30px;
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border-radius: 15px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Unified Controls Section */
.unified-controls-section {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border-radius: 15px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.unified-controls-header {
  background: rgba(74, 144, 226, 0.1);
  padding: 20px 25px;
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.unified-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.unified-title h4 {
  color: var(--text);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unified-description {
  color: var(--text-muted, #B0B8C4);
  margin: 0;
  font-size: 0.95rem;
}

.unified-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 25px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.control-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  flex-shrink: 0;
}

.control-icon {
  font-size: 20px;
}

.control-title {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.control-inputs {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-wrapper .form-control {
  padding: 10px 15px;
  background: var(--bg-dark);
  border: 2px solid rgba(74, 144, 226, 0.3);
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.input-wrapper .form-control:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
  background: var(--bg-mid);
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

.regenerate-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.regenerate-btn:hover,
.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Enhanced Loading Animation */
.theme-loading {
  margin: 10px 0;
  padding: 15px 20px 10px 20px;
  text-align: center;
}

.loading-animation {
  position: relative;
  margin: 0 auto 10px;
  width: 100%;
  height: 25px;
}

.f1-car {
  font-size: 20px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  animation: race-car 2s ease-in-out infinite;
}

.loading-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--steel) 20%, 
    var(--orange) 50%, 
    var(--steel) 80%, 
    transparent 100%);
  border-radius: 2px;
  animation: track-pulse 1.5s ease-in-out infinite;
}

@keyframes race-car {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 25px); }
}

@keyframes track-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.loading-text {
  color: var(--steel-light);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Theme Workspace */
.theme-workspace {
  margin: 30px 0;
  max-width: 100%; /* Use full width of parent container */
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Compact workspace when only showing loading message */
.theme-workspace.loading-only {
  margin: 15px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.theme-workspace.loading-only .action-bar {
  margin-top: 15px;
  padding: 15px 20px;
}

.theme-workspace.loading-only .theme-grid {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

.theme-workspace.loading-only form {
  margin: 0 !important;
  padding: 0 !important;
  width: 95%;
}


/* Theme Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  align-items: stretch; /* Make all cards in a row the same height */
}

/* Hide theme grid completely when no themes */
.theme-grid:empty,
.theme-grid[style*="display: none"] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Theme Cards */
.theme-card {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 100px;
  height: auto;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--orange), var(--steel));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--steel);
}

.theme-card:hover::before {
  opacity: 1;
}

.theme-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 10px;
}

.theme-input-wrapper {
  position: relative;
  flex: 1;
  margin-right: 15px;
}

.theme-input-wrapper .form-control {
  background: var(--bg-dark);
  border: 2px solid rgba(74, 144, 226, 0.2);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 15px 12px 60px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  line-height: 1.5;
  min-height: 48px;
  max-height: 200px;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
}

.theme-input-wrapper .form-control:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  background: var(--bg-mid);
}

.theme-number {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--steel);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

.remove-btn {
  background: transparent;
  border: 2px solid rgba(255, 140, 0, 0.3);
  color: var(--orange);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.remove-btn:hover {
  background: var(--orange);
  color: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.theme-card-body .form-control {
  background: var(--bg-dark);
  border: 2px solid rgba(74, 144, 226, 0.2);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

.theme-card-body .form-control:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  background: var(--bg-mid);
}

/* Action Bar */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-mid) 100%);
  border-radius: 15px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  margin-top: 30px;
  /* width: 100% !important; */
}

.theme-count {
  display: flex;
  align-items: center;
  gap: 15px;
}

.count-badge {
  background: var(--steel);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.count-badge::before {
  content: '📊';
  font-size: 16px;
}

/* Action Bar Left Section */
.action-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Other Theme Option */
.other-theme-option {
  display: flex;
  align-items: center;
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.other-theme-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted, #a0aec0);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.other-theme-label:hover {
  color: var(--text);
}

.other-theme-label .form-check-input {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.other-theme-text {
  opacity: 0.85;
}

.generate-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 12px;
  background: linear-gradient(45deg, var(--steel), var(--orange));
  border: none;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.generate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.generate-btn:hover::before {
  left: 100%;
}

.generate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

.btn-icon {
  font-size: 18px;
}

.btn-arrow {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.generate-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Animation for theme cards appearing */
.theme-card {
  animation: theme-card-appear 0.4s ease-out;
}

@keyframes theme-card-appear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================================
   CODEFRAME GENERATION STYLES
   ================================ */


#codeframe-form{
  max-width: 100%;
}

/* Code Explanation Section - reuses theme explanation styles */
.code-explanation-section {
  margin: 30px 0;
}

/* Codeframe Workspace */
.codeframe-workspace {
  margin: 30px 0;
  max-width: 100%; /* Use full width of parent container */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

/* Theme Sections (not cards, but styled containers) */
.theme-section {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border-radius: 15px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.theme-section-header {
  background: rgba(74, 144, 226, 0.1);
  padding: 20px 25px;
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

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

.theme-icon {
  font-size: 20px;
}

.theme-title h4 {
  color: var(--text);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Theme Controls - reuses control styles from themes page */
.theme-controls {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

/* Codes Workspace */
.codes-workspace {
  padding: 25px;
  flex: 1; /* Grow to fill available space in theme section */
  display: flex;
  flex-direction: column;
}

.codes-list-container {
  margin-bottom: 20px;
  flex: 1; /* Grow to fill available space */
  display: flex;
  flex-direction: column;
}

/* Modern List Styling for Codes */
.modern-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-list li {
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start for wrapping */
  justify-content: space-between;
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible; /* Changed from hidden to visible for wrapping */
  min-height: auto; /* Allow height to adjust for wrapped text */
}

.modern-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--steel);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-list li:hover {
  background: rgba(74, 144, 226, 0.1);
  border-color: var(--steel);
  transform: translateX(2px);
}

.modern-list li:hover::before {
  opacity: 1;
}

.modern-list .title {
  color: var(--text);
  font-weight: 500;
  flex: 1;
  margin: 0;
  padding: 4px 8px;
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  outline: none;
  font-size: 14px;
  line-height: 1.4;
  /* Text wrapping to prevent overflow */
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.modern-list .title:focus {
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid var(--blue);
}

.modern-list .remove {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-left: 12px;
  opacity: 0.7;
}

.modern-list .remove:hover {
  background: rgba(255, 140, 0, 0.1);
  opacity: 1;
  transform: scale(1.1);
}

/* Add Code Section */
.add-code-section {
  border-top: 1px solid rgba(74, 144, 226, 0.1);
  padding-top: 20px;
}

.add-code-controls {
  display: flex;
  gap: 15px;
  align-items: stretch;
}

.add-code-controls .input-wrapper {
  flex: 1;
}

.add-code-controls .add-btn {
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Code Loading Animation - reuses theme loading styles */
.code-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 10px;
  margin: 20px 0;
}

/* Codes Count in Action Bar */
.codes-count {
  display: flex;
  align-items: center;
}

.codes-count .count-badge {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 100%);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Empty State for Code Lists */
.modern-list:empty::after {
  content: "No codes generated yet. Use the AI generation or add codes manually.";
  display: block;
  padding: 40px 20px;
  text-align: center;
  color: var(--steel-light);
  font-style: italic;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 8px;
  border: 2px dashed rgba(74, 144, 226, 0.2);
}

/* Responsive Design */
@media (max-width: 1240px) {
  .page-container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 0 10px;
  }
  
  .theme-grid {
    grid-template-columns: 1fr;
  }
  
  .control-row {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .control-label {
    min-width: auto;
    justify-content: center;
  }
  
  .control-inputs {
    flex-direction: column;
    gap: 15px;
  }
  
  .input-wrapper {
    max-width: 100%;
  }
  
  .action-bar {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .example-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .explanation-card {
    padding: 20px;
  }
  
  .f1-title {
    font-size: 2.5rem;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Garage Page Styles                                        */
/* ────────────────────────────────────────────────────────── */

/* Ensure garage page extends to full viewport */
body:has(.garage-container) {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
}

.garage-container {
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text);
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

/* Garage Header */
.garage-header {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
  border-bottom: 3px solid var(--orange);
  padding: 30px 0;
  margin-bottom: 30px;
  margin-left: 0;
  margin-right: 0;
}

.garage-header-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.garage-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 10px;
  transform: skewX(-10deg);
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 0 #000, 3px 3px 0 var(--steel-dark);
  display: flex;
  align-items: center;
  gap: 15px;
}

.garage-title i {
  color: var(--orange);
  transform: skewX(10deg); /* Counter-skew the icon */
}

.garage-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 300;
  color: var(--steel-light);
  transform: skewX(10deg); /* Counter-skew the subtitle */
  margin-top: 5px;
  text-shadow: none;
}

/* Stats Dashboard */
.garage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-mid) 100%);
  border: 2px solid rgba(138, 155, 168, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--orange), var(--steel));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--steel);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card--success {
  border-color: rgba(40, 167, 69, 0.3);
}

.stat-card--success::before {
  background: linear-gradient(90deg, #28a745, #20c997, #28a745);
}

.stat-card--warning {
  border-color: rgba(255, 193, 7, 0.3);
}

.stat-card--warning::before {
  background: linear-gradient(90deg, #ffc107, var(--orange), #ffc107);
}

.stat-card--info {
  border-color: rgba(23, 162, 184, 0.3);
}

.stat-card--info::before {
  background: linear-gradient(90deg, var(--steel-dark), var(--steel-light), var(--steel-dark));
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pit Stop Controls - Professional Racing Command Center */
.pit-stop {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--charcoal) 50%, var(--bg-mid) 100%);
  border-radius: 20px;
  padding: 25px 30px;
  margin: 0 20px 35px 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.pit-stop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 140, 0, 0.05) 40%, 
    rgba(255, 140, 0, 0.08) 50%, 
    rgba(255, 140, 0, 0.05) 60%, 
    transparent 100%);
  animation: pit-stop-scan 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pit-stop-scan {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

.pit-stop-content {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .pit-stop-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.pit-stop-section {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.pit-stop-section--search {
  flex: 1;
  min-width: 0;
}

.pit-stop-section--filters {
  justify-self: center;
}

.pit-stop-section--actions {
  justify-self: end;
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-group {
  position: relative;
  width: 100%;
}

/* Specific fix for garage search input */
.garage-container .search-input,
.garage-container input.search-input,
div.garage-container .search-input,
.pit-stop .search-input {
  padding-left: 75px !important;
  padding-right: 24px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  box-sizing: border-box !important;
}

/* Fix for all input fields with icons - prevent text overlapping icons */
.input-wrapper .form-control,
.theme-input-wrapper .form-control {
  padding-left: 50px !important;
}

/* Fix for theme generation inputs specifically */
.control-inputs .input-wrapper .form-control {
  padding-left: 50px !important;
}

.garage-container .search-icon,
.garage-container i.search-icon,
div.garage-container .search-icon,
.pit-stop .search-icon {
  left: 22px !important;
  font-size: 18px !important;
  position: absolute !important;
}

.search-input {
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(60, 65, 66, 0.8) 100%);
  border: 2px solid rgba(138, 155, 168, 0.2);
  color: var(--text);
  border-radius: 30px;
  padding: 14px 24px 14px 75px !important;
  font-size: 15px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.05);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.search-input::placeholder {
  color: var(--steel-light);
  opacity: 0.8;
}

.search-input:focus {
  border-color: var(--orange);
  box-shadow: 
    0 0 0 4px rgba(255, 140, 0, 0.15),
    inset 0 1px 3px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(255, 140, 0, 0.1);
  outline: none;
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(60, 65, 66, 0.9) 100%);
  transform: translateY(-1px);
}

.search-icon {
  position: absolute !important;
  left: 22px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--orange) !important;
  font-size: 18px !important;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-input:focus + .search-icon {
  color: var(--orange);
  transform: translateY(-50%) scale(1.1);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.filter-select {
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(44, 62, 80, 0.9) 100%);
  border: 2px solid rgba(138, 155, 168, 0.2);
  color: var(--text);
  border-radius: 15px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.05);
  min-width: 160px;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23A3D9E6" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 45px;
}

.filter-select:focus {
  border-color: var(--orange);
  box-shadow: 
    0 0 0 4px rgba(255, 140, 0, 0.15),
    inset 0 1px 3px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(255, 140, 0, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.filter-select:hover {
  border-color: rgba(138, 155, 168, 0.3);
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(44, 62, 80, 0.95) 100%);
}

.filter-select option {
  background: var(--bg-dark);
  color: var(--text);
  padding: 10px;
}

.pit-stop-btn {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 100%);
  border: 2px solid rgba(138, 155, 168, 0.3);
  color: white;
  padding: 14px 24px;
  border-radius: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pit-stop-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.8s ease;
}

.pit-stop-btn:hover::before {
  left: 100%;
}

.pit-stop-btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, #e67e00 100%);
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 
    0 6px 20px rgba(255, 140, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pit-stop-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pit-stop-btn--primary:hover {
  box-shadow: 
    0 12px 40px rgba(255, 140, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pit-stop-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

/* Job Grid */
.garage-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  align-items: start;
}

/* Job Cards - Racing Car Style */
.job-card {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: auto;
  min-height: 280px;
  box-shadow: inset 0 1px 0 rgba(184, 197, 209, 0.1);
}


.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--orange);
}


/* Job Status Indicator */
/* Legacy job-status-indicator removed - see Enhanced Garage Workflow Styling section */

/* Job Number - Racing Number Style */
.job-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--charcoal) 100%);
  color: var(--orange);
  font-weight: 700;
  font-size: 1.5rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid var(--orange);
  transform: skewX(-10deg);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 140, 0, 0.2);
}

/* Job Content */
.job-content {
  padding: 80px 20px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.job-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-description {
  color: var(--steel-light);
  font-size: 0.9rem;
  margin: 0 0 15px;
  flex-grow: 1;
}

.job-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.job-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--steel-light);
}

.job-stat i {
  color: var(--steel);
}

/* Progress Bar - F1 Style */
.job-progress {
  margin-bottom: 15px;
}

.progress-bar {
  position: relative;
  height: 8px;
  background: var(--bg-dark);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--steel), var(--orange));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.f1-car {
  position: absolute;
  top: -8px;
  font-size: 20px;
  transition: left 0.3s ease;
  z-index: 3;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--steel-light);
  text-align: center;
  display: block;
}

/* Confidence Indicators - Racing Flags */
.confidence-indicators {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.confidence-flag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
}

.confidence-flag--high {
  color: #28a745;
}

.confidence-flag--medium {
  color: #ffc107;
}

.confidence-flag--low {
  color: #dc3545;
}

.confidence-flag i {
  font-size: 12px;
}

/* Job Actions */
.job-actions {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.job-card:hover .job-actions {
  opacity: 1;
}

.job-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.job-action--primary {
  background: var(--steel);
  color: white;
}

.job-action--success {
  background: #28a745;
  color: white;
}

.job-action--danger {
  background: #dc3545;
  color: white;
}

.job-action:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Empty State */
.empty-garage {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.empty-garage-content {
  max-width: 500px;
  margin: 0 auto;
}

.empty-garage-icon {
  font-size: 4rem;
  color: var(--steel-light);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-garage-title {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 15px;
  font-weight: 600;
}

.empty-garage-text {
  color: var(--steel-light);
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.6;
}

.empty-garage-btn {
  background: linear-gradient(135deg, var(--orange) 0%, #e67e00 100%);
  border: none;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.empty-garage-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
  color: white;
  text-decoration: none;
}

/* Garage Pagination */
.garage-pagination {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.garage-pagination .pagination .page-link {
  background: var(--bg-mid);
  border: 1px solid rgba(138, 155, 168, 0.3);
  color: var(--text);
}

.garage-pagination .pagination .page-link:hover {
  background: var(--bg-light);
  border-color: var(--orange);
  color: var(--orange);
}

.garage-pagination .pagination .active .page-link {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* Card Entry Animation */
@keyframes garage-card-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.garage-card-enter {
  animation: garage-card-enter 0.6s ease-out forwards;
}

/* F1 Car Drive Animation */
@keyframes f1-drive {
  0% { transform: translateX(-2px) rotate(-1deg); }
  100% { transform: translateX(2px) rotate(1deg); }
}

/* Responsive Design for Garage */
@media (max-width: 768px) {
  .garage-container {
    padding-top: 80px;
  }
  
  .garage-title {
    font-size: 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .garage-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pit-stop-content {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .search-input {
    width: 100%;
  }
  
  .filter-group {
    justify-content: space-between;
  }
  
  .garage-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
    gap: 25px;
    align-items: start;
  }
  
  .job-card {
    min-height: 250px;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .garage-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .job-number {
    font-size: 1.2rem;
    padding: 6px 10px;
  }
  
  .job-name {
    font-size: 1.2rem;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Dashboard Page Styles                                      */
/* ────────────────────────────────────────────────────────── */

body:has(.dashboard-container) {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
}

.dashboard-container {
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text);
  padding: 90px 0 0 0; /* Account for fixed header, no side padding */
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

/* Dashboard Header */
.dashboard-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--charcoal) 50%, var(--bg-mid) 100%);
  border-bottom: 3px solid var(--orange);
  padding: 35px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 140, 0, 0.05) 40%, 
    rgba(255, 140, 0, 0.08) 50%, 
    rgba(255, 140, 0, 0.05) 60%, 
    transparent 100%);
  animation: dashboard-scan 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dashboard-scan {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

.dashboard-header-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1em;
}

.dashboard-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
  transform: skewX(-10deg);
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 0 #000, 3px 3px 0 var(--steel-dark);
  display: flex;
  align-items: center;
  gap: 15px;
}

.dashboard-title i {
  color: var(--orange);
  transform: skewX(10deg); /* Counter-skew the icon */
}

.dashboard-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 300;
  color: var(--steel-light);
  transform: skewX(10deg); /* Counter-skew the subtitle */
  margin-top: 5px;
  text-shadow: none;
}

/* Dashboard Grid */
.dashboard-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

/* Dashboard Cards */
.dashboard-card {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border-radius: 20px;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid rgba(138, 155, 168, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card--primary {
  border-color: rgba(74, 144, 226, 0.3);
}

.dashboard-card--primary::before {
  background: linear-gradient(90deg, var(--steel), var(--orange), var(--steel));
}

.dashboard-card--primary:hover {
  border-color: var(--steel);
}

.dashboard-card--success {
  border-color: rgba(40, 167, 69, 0.3);
}

.dashboard-card--success::before {
  background: linear-gradient(90deg, #28a745, #20c997, #28a745);
}

.dashboard-card--success:hover {
  border-color: #28a745;
}

.dashboard-card--warning {
  border-color: rgba(255, 193, 7, 0.3);
}

.dashboard-card--warning::before {
  background: linear-gradient(90deg, #ffc107, var(--orange), #ffc107);
}

.dashboard-card--warning:hover {
  border-color: #ffc107;
}

.dashboard-card--info {
  border-color: rgba(23, 162, 184, 0.3);
}

.dashboard-card--info::before {
  background: linear-gradient(90deg, var(--steel-dark), var(--steel-light), var(--steel-dark));
}

.dashboard-card--info:hover {
  border-color: #17a2b8;
}

.dashboard-card-icon {
  font-size: 4.5rem;
  margin-bottom: 25px;
  color: var(--steel-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.dashboard-card--primary:hover .dashboard-card-icon {
  color: var(--steel);
  transform: scale(1.1);
}

.dashboard-card--success:hover .dashboard-card-icon {
  color: #28a745;
  transform: scale(1.1);
}

.dashboard-card--warning:hover .dashboard-card-icon {
  color: #ffc107;
  transform: scale(1.1);
}

.dashboard-card--info:hover .dashboard-card-icon {
  color: #17a2b8;
  transform: scale(1.1);
}

.dashboard-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-card p {
  color: var(--steel-light);
  font-size: 1rem;
  margin: 0 0 25px;
  line-height: 1.5;
}

.dashboard-btn {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 100%);
  border: 2px solid rgba(138, 155, 168, 0.3);
  color: white;
  padding: 14px 28px;
  border-radius: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.8s ease;
}

.dashboard-btn:hover::before {
  left: 100%;
}

.dashboard-btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, #e67e00 100%);
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 
    0 6px 20px rgba(255, 140, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-btn--primary:hover {
  box-shadow: 
    0 12px 40px rgba(255, 140, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-btn--success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-color: rgba(40, 167, 69, 0.4);
  box-shadow: 
    0 6px 20px rgba(40, 167, 69, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-btn--success:hover {
  box-shadow: 
    0 12px 40px rgba(40, 167, 69, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-btn--warning {
  background: linear-gradient(135deg, #ffc107 0%, var(--orange) 100%);
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: 
    0 6px 20px rgba(255, 193, 7, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-btn--warning:hover {
  box-shadow: 
    0 12px 40px rgba(255, 193, 7, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-btn--info {
  background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-light) 100%);
  border-color: rgba(138, 155, 168, 0.4);
}

.dashboard-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
}

.dashboard-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.dashboard-btn i {
  transition: transform 0.3s ease;
}

.dashboard-btn:hover i {
  transform: translateX(3px);
}

/* Ensure dashboard button text is always visible */
.dashboard-btn,
.dashboard-btn span,
.dashboard-btn i {
  color: white !important;
}

.dashboard-btn:hover,
.dashboard-btn:hover span,
.dashboard-btn:hover i {
  color: white !important;
}

/* Getting Started Section */
.getting-started {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em 50px;
}

.getting-started-title {
  font-size: 2.5rem;
  color: var(--text);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}

.getting-started-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--orange));
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border: 2px solid rgba(74, 144, 226, 0.3);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--orange), var(--steel));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--steel);
}

.step:hover::before {
  opacity: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--steel);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  background: var(--orange);
  transform: scale(1.1);
}

.step h4 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 600;
}

.step p {
  color: var(--steel-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 80px 0 0 0;
  }
  
  .dashboard-title {
    font-size: 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
  
  .dashboard-card {
    min-height: 220px;
    padding: 25px;
  }
  
  .dashboard-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-title {
    font-size: 2rem;
  }
  
  .getting-started-title {
    font-size: 2rem;
  }
  
  .dashboard-card {
    min-height: 200px;
    padding: 20px;
  }
  
  .dashboard-card h3 {
    font-size: 1.3rem;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Form Styling - Racing Theme Integration                   */
/* ────────────────────────────────────────────────────────── */

/* Form containers */
form {
  background: var(--bg-mid);
  border-radius: 15px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(138, 155, 168, 0.2);
  position: relative;
  overflow: hidden;
}

form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--orange), var(--steel));
  opacity: 0.8;
}

/* Form headers */
.content h2 {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 2rem;
  margin: 0 0 30px;
  text-shadow: 2px 2px 0 #000, 3px 3px 0 var(--steel-dark);
  text-align: center;
}

/* Form input fields */
.content form input[type="text"],
.content form input[type="email"],
.content form input[type="password"],
.content form input[type="file"],
.content form textarea,
.content form select,
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form textarea,
form select {
  background: var(--bg-light) !important;
  border: 2px solid rgba(138, 155, 168, 0.3) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.content form input[type="text"]:focus,
.content form input[type="email"]:focus,
.content form input[type="password"]:focus,
.content form input[type="file"]:focus,
.content form textarea:focus,
.content form select:focus,
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="file"]:focus,
form textarea:focus,
form select:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  outline: none !important;
  background: var(--bg-light) !important;
  color: var(--text) !important;
}

/* Form placeholder text */
.content form input::placeholder,
.content form textarea::placeholder,
form input::placeholder,
form textarea::placeholder {
  color: var(--steel-light) !important;
  opacity: 0.8 !important;
}

/* Form labels */
.content form label,
form label {
  color: var(--steel-light) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.9rem !important;
  margin-bottom: 8px !important;
  display: block !important;
}

/* Form Buttons - Only apply to forms */
.content form .btn,
.content form button[type="submit"],
.content form input[type="submit"],
form .btn,
form button[type="submit"],
form input[type="submit"] {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 100%) !important;
  border: 2px solid rgba(138, 155, 168, 0.3) !important;
  color: white !important;
  padding: 14px 28px !important;
  border-radius: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 14px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.content form .btn:hover,
.content form button[type="submit"]:hover,
.content form input[type="submit"]:hover,
form .btn:hover,
form button[type="submit"]:hover,
form input[type="submit"]:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  text-decoration: none !important;
}

.content form .btn:active,
.content form button[type="submit"]:active,
.content form input[type="submit"]:active,
form .btn:active,
form button[type="submit"]:active,
form input[type="submit"]:active {
  transform: translateY(-1px) scale(0.98) !important;
  transition: all 0.1s ease !important;
}

/* Primary form buttons */
.content form .btn-primary,
form .btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #e67e00 100%) !important;
  border-color: rgba(255, 140, 0, 0.4) !important;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.content form .btn-primary:hover,
form .btn-primary:hover {
  box-shadow: 0 12px 40px rgba(255, 140, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Success form buttons */
.content form .btn-success,
form .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
  border-color: rgba(40, 167, 69, 0.4) !important;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.content form .btn-success:hover,
form .btn-success:hover {
  box-shadow: 0 12px 40px rgba(40, 167, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Form validation feedback */
.invalid-feedback {
  color: #dc3545 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
}

.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
}

/* Links within form pages (not dashboard) */
.content:not(.dashboard-container):not(.garage-container) a {
  color: var(--orange) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.content:not(.dashboard-container):not(.garage-container) a:hover {
  color: var(--steel-light) !important;
  text-decoration: underline !important;
}

/* Form sections and fieldsets */
fieldset {
  background: var(--bg-light);
  border: 2px solid rgba(138, 155, 168, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* Operation Mode Help Styling */
.operation-mode-help {
  background: var(--bg-dark) !important;
  border-radius: 8px !important;
  padding: 15px !important;
  margin-top: 10px !important;
  border-left: 4px solid var(--orange) !important;
}

.operation-mode-help .mode-option {
  padding: 10px !important;
  background: var(--bg-mid) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(138, 155, 168, 0.2) !important;
}

.operation-mode-help .mode-option strong {
  color: var(--orange) !important;
  font-size: 1.05em !important;
}

.operation-mode-help .mode-option small {
  color: var(--steel-light) !important;
  font-style: italic !important;
}

legend {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 15px;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
  form {
    padding: 20px;
    margin: 15px 0;
  }
  
  .content:not(.dashboard-container):not(.garage-container) h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .content form input[type="text"],
  .content form input[type="email"],
  .content form input[type="password"],
  .content form input[type="file"],
  .content form textarea,
  .content form select,
  form input[type="text"],
  form input[type="email"],
  form input[type="password"],
  form input[type="file"],
  form textarea,
  form select {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
  
  .content form .btn,
  .content form button[type="submit"],
  .content form input[type="submit"],
  form .btn,
  form button[type="submit"],
  form input[type="submit"] {
    padding: 12px 24px !important;
    font-size: 13px !important;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Codeframe Confirm Page Styles                               */
/* ────────────────────────────────────────────────────────── */

/* Confirm Page Explanation Section */
.codeframe-explanation-section {
  margin-bottom: 2rem;
}

.codeframe-explanation-section .explanation-card {
  background: var(--bg-mid);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.codeframe-explanation-section .explanation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.codeframe-explanation-section .explanation-header h3 {
  color: var(--blue-light);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.codeframe-explanation-section .explanation-content p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.6;
}

/* Codeframe Review Section */
.codeframe-review-section {
  margin-bottom: 2rem;
}

.codeframe-review-section .section-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.codeframe-review-section .section-header h3 {
  color: var(--blue-light);
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.codeframe-review-section .section-header p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

/* Confirm Form Styling */
.codeframe-confirm-form {
  max-width: none;
}

/* Themes Grid Layout - Maximum 2 columns for optimal code space */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Always 2 columns by default */
  gap: 24px;
  margin-bottom: 30px;
  align-items: stretch; /* Make all cards in a row the same height */
}

/* Responsive grid adjustments */
@media (min-width: 1600px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr); /* Force exactly 2 columns on wide screens */
    gap: 30px;
  }
}

@media (max-width: 1250px) {
  .themes-grid {
    grid-template-columns: 1fr; /* Single column below 1250px */
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .themes-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .themes-grid {
    gap: 15px;
  }
}

/* Theme Section for Confirm Page */
.codeframe-workspace .theme-section {
  background: var(--bg-mid);
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0; /* Remove bottom margin since grid handles spacing */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* Take full height of grid cell */
}

.codeframe-workspace .theme-section-header {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-mid));
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.codeframe-workspace .theme-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.codeframe-workspace .theme-title h4 {
  color: var(--blue-light);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
}

.code-count-badge {
  background: var(--orange);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Code List Styling for Confirm Page */
.codeframe-workspace .codes-list-container {
  padding: 1rem 1.5rem;
}

.codeframe-workspace .codes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.codeframe-workspace .codes-list li {
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start for wrapping */
  justify-content: space-between;
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  min-height: auto; /* Allow height to adjust for wrapped text */
}

.codeframe-workspace .codes-list li:hover {
  background: rgba(74, 144, 226, 0.1);
  border-color: rgba(74, 144, 226, 0.3);
  transform: translateY(-1px);
}

.code-title {
  color: var(--text);
  font-weight: 500;
  flex: 1;
  /* Text wrapping to prevent overflow */
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.code-number {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.empty-state .code-title {
  color: var(--muted);
  font-style: italic;
}

/* Codeframe Summary in Action Bar */
.codeframe-summary {
  display: flex;
  align-items: center;
}

.summary-badge {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--blue-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Action Buttons for Confirm Page */
.action-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.back-btn {
  background: var(--bg-light);
  border: 2px solid var(--border);
  color: var(--text);
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: var(--border);
  border-color: var(--blue);
  color: var(--blue-light);
  transform: translateY(-2px);
}

.confirm-btn {
  background: linear-gradient(135deg, var(--orange), #ff7700);
  border: 2px solid var(--orange);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confirm-btn:hover {
  background: linear-gradient(135deg, #ff7700, var(--orange));
  border-color: #ff7700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.confirm-btn .btn-arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.confirm-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Responsive Design for Confirm Page */
@media (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .back-btn, .confirm-btn {
    width: 100%;
    justify-content: center;
  }
  
  .action-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .codeframe-summary {
    width: 100%;
    justify-content: center;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Enhanced Coding UI Components                            */
/* ────────────────────────────────────────────────────────── */


/* Suggested codes panel */
.suggested-codes-container {
  position: fixed;
  right: 20px;
  top: 120px;
  width: 280px;
  max-height: calc(100vh - 140px);
  background: var(--bg-mid);
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  z-index: 100;
  padding: 15px;
}

.suggested-section {
  margin-bottom: 20px;
}

.suggested-section-title {
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.suggested-code {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 8px;
  margin: 2px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggested-code:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.suggested-code.low-confidence {
  opacity: 0.7;
  border-style: dashed;
}


/* Enhanced confidence tooltip */
.confidence-details-tooltip {
  position: absolute;
  background: rgba(33, 33, 33, 0.95);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  z-index: 2000;
  box-shadow: var(--shadow-md);
  display: none;
  max-width: 250px;
  backdrop-filter: blur(4px);
}

.model-agreement {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Filter button styles */
.filter-btn {
  padding: 8px 16px;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn.active {
  background: var(--blue) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(74,144,226,0.3);
}

.filter-btn:hover:not(.active) {
  background: var(--bg-dark) !important;
  transform: translateY(-1px);
}

/* Enhanced confidence indicators with percentage */
.confidence-indicator[data-agreement] {
  cursor: help;
  position: relative;
}

.confidence-indicator[data-agreement]:hover::after {
  content: attr(data-agreement);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(33, 33, 33, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 1000;
}


/* AI Suggestions Column */
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.suggested-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 140, 0, 0.05));
  color: var(--orange);
  border: 1px dashed var(--orange);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggested-pill:hover {
  background: var(--orange);
  color: white;
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3);
}

.suggested-pill .add-suggestion {
  margin-left: 4px;
  font-weight: bold;
  opacity: 0.7;
}

.suggested-pill:hover .add-suggestion {
  opacity: 1;
}

/* User Reviewed indicator */
.confidence-indicator.user-reviewed {
  background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
  color: white !important;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 100px;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.confidence-indicator.user-reviewed:before {
  content: "✓";
  margin-right: 4px;
  font-size: 12px;
}

/* Updated confidence indicators for combined column */
.status-column .confidence-indicator {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  text-align: center;
}

/* ────────────────────────────────────────────────────────── */
/* Credit Balance Widget                                      */
/* ────────────────────────────────────────────────────────── */
.credit-balance-widget {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  background: transparent;
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.credit-balance-widget:hover {
  background: rgba(74, 144, 226, 0.15);
  border-color: rgba(74, 144, 226, 0.5);
  text-decoration: none;
  transform: translateY(-1px);
}

.credit-balance-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
}

.credit-balance-display.credit-balance-low {
  color: var(--credit-orange);
  animation: pulse-warning 2s infinite;
}

.credit-amount {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.credit-warning {
  color: var(--credit-orange);
  font-size: 0.8rem;
  animation: pulse-warning 1.5s infinite;
}

.credit-balance-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(74, 144, 226, 0.2);
  border-radius: 4px;
  color: var(--blue-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.credit-balance-link:hover {
  background: rgba(74, 144, 226, 0.3);
  color: var(--text);
  transform: scale(1.1);
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Credit Status Badge */
.credit-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credit-status-good {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4CAF50;
}

.credit-status-medium {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #FFC107;
}

.credit-status-low {
  background: rgba(255, 152, 0, 0.2);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: var(--orange);
}

.credit-status-critical {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #F44336;
  animation: pulse-warning 2s infinite;
}

.credit-status-empty {
  background: rgba(158, 158, 158, 0.2);
  border: 1px solid rgba(158, 158, 158, 0.4);
  color: #9E9E9E;
}

/* ────────────────────────────────────────────────────────── */
/* Credit Dashboard Styles                                   */
/* ────────────────────────────────────────────────────────── */

/* Page Headers */
.dashboard-header {
  margin-bottom: 2rem;
}

.page-title {
  color: var(--text);
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-subtitle {
  color: var(--steel-light);
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  font-weight: 300;
}

/* Credit Cards */
.credit-card {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.credit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(74, 144, 226, 0.4);
}

.credit-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.credit-card-header i {
  font-size: 1.2rem;
  color: var(--blue-light);
}

.credit-card-header h5 {
  color: var(--text);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credit-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.credit-card-footer {
  font-size: 0.85rem;
  color: var(--steel-light);
}

/* Balance-specific styling */
.credit-card-balance.credit-status-good {
  border-color: rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(76, 175, 80, 0.1) 100%);
}

.credit-card-balance.credit-status-medium {
  border-color: rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(255, 193, 7, 0.1) 100%);
}

.credit-card-balance.credit-status-low {
  border-color: rgba(255, 152, 0, 0.4);
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(255, 152, 0, 0.1) 100%);
}

.credit-card-balance.credit-status-critical {
  border-color: rgba(244, 67, 54, 0.4);
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(244, 67, 54, 0.1) 100%);
  animation: pulse-warning 3s infinite;
}

/* Quick Actions */
.quick-actions-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.quick-actions-card h5 {
  color: var(--text);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1rem;
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 100%);
  border: 1px solid rgba(138, 155, 168, 0.3);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  color: var(--text);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--blue) 0%, var(--steel) 100%);
  border-color: rgba(74, 144, 226, 0.5);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.quick-action-btn i {
  font-size: 1.5rem;
}

.quick-action-btn span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Activity Cards */
.activity-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
}

.activity-card-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
  display: flex;
  justify-content: between;
  align-items: center;
}

.activity-card-header h5 {
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  flex: 1;
}

.view-all-link {
  color: var(--blue-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.view-all-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.activity-card-body {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

/* Transaction List */
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.transaction-item:hover {
  background: rgba(74, 144, 226, 0.1);
  border-color: rgba(74, 144, 226, 0.2);
}

.transaction-info {
  flex: 1;
}

.transaction-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.transaction-description {
  color: var(--steel-light);
  font-size: 0.85rem;
  margin: 2px 0;
}

.transaction-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.transaction-amount {
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* Usage Breakdown */
.usage-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.usage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 8px;
}

.usage-info {
  flex: 1;
}

.usage-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.usage-count {
  color: var(--steel-light);
  font-size: 0.85rem;
  margin-top: 2px;
}

.usage-amount {
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--steel);
}

.empty-state h5 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ────────────────────────────────────────────────────────── */
/* Transaction History Styles                               */
/* ────────────────────────────────────────────────────────── */

/* Filter Card */
.filters-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.filters-card h5 {
  color: var(--text);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Form Styling */
.form-label {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
}

.form-control:focus, .form-select:focus {
  background: var(--bg-dark);
  border-color: var(--blue);
  color: var(--text);
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

.form-select option {
  background: var(--bg-dark);
  color: var(--text);
}

/* Buttons */
.btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--steel) 100%);
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--steel) 0%, var(--blue) 100%);
  border-color: var(--blue-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 100%);
  border: 1px solid var(--steel);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--steel-light) 0%, var(--steel) 100%);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: var(--steel);
  color: var(--steel-light);
}

.btn-outline-secondary:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: var(--text);
}

/* Table Styling */
.transactions-table-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.table {
  color: var(--text);
  margin: 0;
}

.table thead th {
  background: var(--bg-dark);
  border-color: rgba(74, 144, 226, 0.2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody td {
  border-color: rgba(74, 144, 226, 0.1);
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background: rgba(74, 144, 226, 0.05);
}

.transaction-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.transaction-description {
  color: var(--steel-light);
  font-size: 0.9rem;
}

.amount-display {
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.balance-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.balance-before {
  color: var(--muted);
}

.balance-after {
  color: var(--text);
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.status-completed {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4CAF50;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #FFC107;
}

.status-failed {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #F44336;
}

.status-reversed {
  background: rgba(158, 158, 158, 0.2);
  border: 1px solid rgba(158, 158, 158, 0.4);
  color: #9E9E9E;
}

.transaction-date {
  font-size: 0.9rem;
}

.transaction-date small {
  display: block;
  margin-top: 2px;
}

.reference-id {
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.2);
  color: var(--blue-light);
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.reversal-info .alert {
  background: rgba(255, 152, 0, 0.1);
  border-color: rgba(255, 152, 0, 0.3);
  color: var(--orange);
  font-size: 0.85rem;
}

/* Pagination */
.pagination {
  margin: 2rem 0 1rem;
}

.page-link {
  background: var(--bg-dark);
  border-color: var(--border);
  color: var(--text);
}

.page-link:hover {
  background: var(--bg-light);
  border-color: var(--blue);
  color: var(--blue-light);
}

.page-item.active .page-link {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--text);
}

.pagination-info {
  padding-bottom: 1rem;
  font-size: 0.9rem;
}

/* ────────────────────────────────────────────────────────── */
/* Purchase Credits Styles                                  */
/* ────────────────────────────────────────────────────────── */

/* Current Balance Display */
.current-balance-display {
  text-align: right;
  padding: 1rem;
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 8px;
}

.balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Courier New', monospace;
}

/* Credit Packages Grid */
.credit-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.credit-package-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border: 2px solid rgba(74, 144, 226, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
}

.credit-package-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 144, 226, 0.5);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
}

.package-popular {
  border-color: var(--orange);
  transform: scale(1.05);
}

.package-popular:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 16px 50px rgba(255, 140, 0, 0.3);
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange) 0%, #FF6B00 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.package-header {
  margin: 1rem 0 2rem;
}

.package-credits {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text);
  font-family: 'Courier New', monospace;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(74, 144, 226, 0.3);
}

.package-label {
  font-size: 1.1rem;
  color: var(--steel-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.package-bonus {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem auto 0;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.package-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-light);
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.package-description {
  color: var(--steel-light);
  margin: 1rem 0 2rem;
  font-style: italic;
  line-height: 1.4;
}

.package-details {
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}

.detail-item i {
  color: var(--blue-light);
  font-size: 1rem;
}

.bonus-item i {
  color: #4CAF50;
}

.btn-purchase {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue) 0%, var(--steel) 100%);
  border: 2px solid var(--blue);
  border-radius: 10px;
  color: var(--text);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-purchase:hover {
  background: linear-gradient(135deg, var(--steel) 0%, var(--blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.btn-purchase-popular {
  background: linear-gradient(135deg, var(--orange) 0%, #FF6B00 100%);
  border-color: var(--orange);
}

.btn-purchase-popular:hover {
  background: linear-gradient(135deg, #FF6B00 0%, var(--orange) 100%);
  border-color: var(--orange);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

/* Payment Info */
.payment-info-card,
.info-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
}

.payment-info-card h4,
.info-card h4 {
  color: var(--text);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.payment-methods h5 {
  color: var(--text);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.payment-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.2);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.purchase-terms {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(74, 144, 226, 0.1);
}

.terms-link {
  color: var(--blue-light);
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Info Items */
.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  background: linear-gradient(135deg, var(--blue) 0%, var(--steel) 100%);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.info-content strong {
  color: var(--text);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.3rem;
}

.info-content p {
  color: var(--steel-light);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Usage Examples */
.usage-examples {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.example-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 8px;
}

.example-scenario {
  color: var(--text);
  font-weight: 500;
}

.example-cost {
  color: var(--blue-light);
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.usage-note {
  padding-top: 1rem;
  border-top: 1px solid rgba(74, 144, 226, 0.1);
}

/* Modal Styles */
.modal-content {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.3);
  color: var(--text);
}

.modal-header {
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.modal-title {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close {
  filter: invert(1);
}

.purchase-summary {
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.8rem 0;
  font-size: 1rem;
}

.summary-row.total-row,
.summary-row.price-row {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(74, 144, 226, 0.2);
  font-size: 1.1rem;
}

.bonus-row {
  color: #4CAF50;
}

.payment-placeholder .alert {
  background: rgba(74, 144, 226, 0.1);
  border-color: rgba(74, 144, 226, 0.2);
  color: var(--text);
}

.modal-footer {
  border-top: 1px solid rgba(74, 144, 226, 0.2);
}

/* ────────────────────────────────────────────────────────── */
/* Admin Dashboard Styles                                   */
/* ────────────────────────────────────────────────────────── */

/* Admin Cards */
.admin-card {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border: 2px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.admin-card-users {
  border-color: rgba(74, 144, 226, 0.4);
}

.admin-card-users:hover {
  border-color: rgba(74, 144, 226, 0.6);
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(74, 144, 226, 0.1) 100%);
}

.admin-card-outstanding {
  border-color: rgba(255, 193, 7, 0.4);
}

.admin-card-outstanding:hover {
  border-color: rgba(255, 193, 7, 0.6);
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(255, 193, 7, 0.1) 100%);
}

.admin-card-purchased {
  border-color: rgba(76, 175, 80, 0.4);
}

.admin-card-purchased:hover {
  border-color: rgba(76, 175, 80, 0.6);
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(76, 175, 80, 0.1) 100%);
}

.admin-card-used {
  border-color: rgba(255, 152, 0, 0.4);
}

.admin-card-used:hover {
  border-color: rgba(255, 152, 0, 0.6);
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(255, 152, 0, 0.1) 100%);
}

.admin-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.admin-card-header i {
  font-size: 1.3rem;
  color: var(--blue-light);
}

.admin-card-header h5 {
  color: var(--text);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-card-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(74, 144, 226, 0.3);
}

.admin-card-footer {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Admin Activity Cards */
.admin-activity-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
}

.admin-activity-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.admin-activity-header h5 {
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.admin-activity-body {
  padding: 1.5rem;
}

.activity-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 8px;
}

.stat-label {
  color: var(--steel-light);
  font-weight: 500;
}

.stat-value {
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Courier New', monospace;
}

.usage-chart-container {
  position: relative;
  height: 200px;
  margin: 1rem 0;
}

/* Admin Table Cards */
.admin-table-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.admin-table-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table-header h5 {
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.admin-table-body {
  max-height: 400px;
  overflow-y: auto;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-info strong {
  color: var(--text);
}

.user-info small {
  font-size: 0.8rem;
}

.balance-display {
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

/* ────────────────────────────────────────────────────────── */
/* Admin User Management Styles                             */
/* ────────────────────────────────────────────────────────── */

.admin-filters-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.admin-users-table-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.user-email {
  color: var(--steel-light);
  font-size: 0.85rem;
  margin-top: 2px;
}

.user-fullname {
  font-size: 0.8rem;
  margin-top: 1px;
}

.balance-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-amount {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.95rem;
}

.amount-display {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 0.9rem;
}

.utilization-rate {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--blue-light);
}

.last-updated {
  font-size: 0.9rem;
}

.last-updated small {
  font-size: 0.8rem;
}

/* Modal Enhancements */
.user-info-display {
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.selected-users-display {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-card-value {
    font-size: 1.8rem;
  }
  
  .admin-card-header h5 {
    font-size: 0.85rem;
  }
  
  .user-info {
    font-size: 0.85rem;
  }
  
  .balance-amount,
  .amount-display {
    font-size: 0.85rem;
  }
}

/* Button group styling */
.btn-group .btn-sm {
  padding: 0.4rem 0.6rem;
}

/* Enhanced form styling */
.form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}

.form-check-input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

/* Loading states */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Alert enhancements */
.alert {
  border-radius: 8px;
  border: none;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4CAF50;
}

.alert-danger {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #F44336;
}

.alert-info {
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.3);
  color: var(--blue-light);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #FFC107;
}

/* ────────────────────────────────────────────────────────── */
/* Usage Reports Styles                                     */
/* ────────────────────────────────────────────────────────── */

/* Time Range Selector */
.time-range-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.time-range-card h5 {
  color: var(--text);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Usage Summary Cards */
.usage-summary-card {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.usage-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 144, 226, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.usage-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.usage-summary-header i {
  font-size: 1.2rem;
  color: var(--blue-light);
}

.usage-summary-header h6 {
  color: var(--text);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.usage-summary-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.usage-summary-footer {
  font-size: 0.85rem;
  color: var(--steel-light);
}

/* Chart Cards */
.chart-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
}

.chart-card-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.chart-card-header h5 {
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.chart-card-body {
  padding: 1.5rem;
  height: 320px;
}

.chart-container {
  position: relative;
  height: 100%;
}

.empty-chart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
}

.empty-chart-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--steel);
}

/* Detail Table Cards */
.detail-table-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
}

.detail-table-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.detail-table-header h5 {
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.detail-table-body {
  max-height: 350px;
  overflow-y: auto;
}

.service-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.operation-count,
.usage-count {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--blue-light);
}

.cost-amount {
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

.avg-cost {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.resource-type {
  font-weight: 500;
  color: var(--text);
}

/* Export Options */
.export-card {
  background: var(--bg-mid);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.export-card h5 {
  color: var(--text);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.export-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.export-buttons .btn {
  min-width: 120px;
}

/* Print styles */
@media print {
  .dashboard-header .btn,
  .export-options,
  .time-range-card .btn {
    display: none !important;
  }
  
  .chart-card,
  .detail-table-card,
  .usage-summary-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .usage-reports {
    color: #000 !important;
  }
  
  .chart-card-body,
  .detail-table-body {
    height: auto !important;
    max-height: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .usage-summary-value {
    font-size: 1.6rem;
  }
  
  .chart-card-body {
    height: 280px;
    padding: 1rem;
  }
  
  .export-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .export-buttons .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Dashboard Credit Integration                               */
/* ────────────────────────────────────────────────────────── */

/* Credit Overview in Dashboard Header */
.dashboard-credit-overview {
  margin: 1.5rem 0 0 0;
  display: flex;
  justify-content: center;
}

.credit-overview-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-light));
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 400px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
  gap: 1rem;
}

.credit-overview-icon {
  color: var(--blue);
  font-size: 2.5rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.credit-overview-content {
  flex: 1;
  text-align: center;
}

.credit-balance-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.credit-label {
  font-size: 0.9rem;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.credit-overview-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Credit Info in Dashboard Cards */
.card-credit-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--blue-light);
}

.card-credit-info i {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Credits Card Styling */
.dashboard-card--credits {
  background: linear-gradient(135deg, var(--orange) 10%, #e07a00 90%);
  border: 2px solid rgba(255, 140, 0, 0.3);
  color: white;
}

.dashboard-card--credits .dashboard-card-icon i {
  color: white;
}

.dashboard-card--credits .card-credit-info {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-btn--credits {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-btn--credits:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Secondary Button Styling */
.dashboard-card--secondary {
  background: linear-gradient(135deg, var(--steel) 10%, var(--steel-dark) 90%);
  border: 2px solid rgba(138, 155, 168, 0.3);
}

.dashboard-btn--secondary {
  background: rgba(138, 155, 168, 0.2);
  color: var(--text);
  border: 1px solid rgba(138, 155, 168, 0.3);
}

.dashboard-btn--secondary:hover {
  background: rgba(138, 155, 168, 0.3);
  transform: translateY(-2px);
}

/* Credit Status Badge Styling */
.credit-status-good {
  color: var(--credit-green);
}

.credit-status-medium {
  color: var(--credit-yellow);
}

.credit-status-low {
  color: var(--credit-orange);
}

.credit-status-critical {
  color: var(--credit-red);
}

/* Responsive Credit Overview */
@media (max-width: 768px) {
  .credit-overview-card {
    min-width: auto;
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .credit-overview-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .credit-balance-large {
    font-size: 2rem;
  }
  
  .dashboard-credit-overview {
    margin: 1rem 0;
  }
}

@media (max-width: 480px) {
  .credit-overview-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .credit-balance-large {
    font-size: 1.8rem;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Command Center - Unified Interface (Three-Bar Layout)    */
/* ────────────────────────────────────────────────────────── */

/* Main Command Center Container */
.garage-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text);
}

/* ────────────────────────────────────────────────────────── */
/* Top Bar - Primary Actions                               */
/* ────────────────────────────────────────────────────────── */
.garage-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.top-bar-actions {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.top-bar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  white-space: nowrap;
}

.top-bar-btn:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.top-bar-btn--primary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.top-bar-btn--primary:hover {
  background: rgba(74, 144, 226, 0.1);
  color: var(--blue);
  border-color: var(--blue);
}

.top-bar-btn--credits {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.top-bar-btn--credits:hover {
  background: rgba(74, 144, 226, 0.1);
  color: var(--blue);
  border-color: var(--blue);
}

.top-bar-btn--credits .btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.top-bar-btn--credits .btn-content span {
  font-size: 0.95rem;
  font-weight: 600;
}

.top-bar-btn--credits .btn-content small {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 400;
  line-height: 1.2;
}

.top-bar-btn--secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.top-bar-btn--secondary:hover {
  background: rgba(74, 144, 226, 0.1);
  color: var(--blue);
  border-color: var(--blue);
}

.top-bar-btn i {
  font-size: 1.3rem;
  min-width: 20px;
}

/* Clean Sidebar Search - Full Width */
.sidebar-search-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.sidebar-search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.sidebar-search-input::placeholder {
  color: var(--steel-light);
  font-weight: 400;
}

.sidebar-search-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--blue);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-search-btn:hover {
  background: #3A7BD5;
}

.top-bar-title {
  display: flex;
  align-items: center;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title i {
  color: var(--blue);
  font-size: 1.6rem;
}

/* ────────────────────────────────────────────────────────── */
/* Main Layout Container                                    */
/* ────────────────────────────────────────────────────────── */
.garage-main-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: flex-start;
}

/* ────────────────────────────────────────────────────────── */
/* Left Sidebar - Primary Actions & Filters                */
/* ────────────────────────────────────────────────────────── */
.garage-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1rem 0.5rem 0.5rem 0.5rem;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-title {
  color: var(--steel-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-mid) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-btn:hover {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--charcoal) 100%);
  border-color: var(--blue);
  transform: translateX(4px);
  color: var(--text);
  text-decoration: none;
}

.sidebar-btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, #3A7BD5 100%);
  border-color: rgba(74, 144, 226, 0.3);
}

.sidebar-btn--primary:hover {
  background: linear-gradient(135deg, #3A7BD5 0%, var(--blue) 100%);
}

.sidebar-btn--credits {
  background: linear-gradient(135deg, var(--orange) 0%, #E67300 100%);
  border-color: rgba(255, 140, 0, 0.3);
}

.sidebar-btn--credits:hover {
  background: linear-gradient(135deg, #E67300 0%, var(--orange) 100%);
}

.sidebar-btn--secondary {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 100%);
  border-color: rgba(138, 155, 168, 0.3);
}

.sidebar-btn--secondary:hover {
  background: linear-gradient(135deg, var(--steel-light) 0%, var(--steel) 100%);
}

/* Sidebar Statistics - Clean styling */

.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-stat-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(74, 144, 226, 0.2);
  transition: all 0.3s ease;
}

.sidebar-stat-indicator:hover {
  background: rgba(74, 144, 226, 0.15);
  transform: translateX(2px);
}

.sidebar-stat-indicator--success {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.2);
}

.sidebar-stat-indicator--warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.2);
}

.sidebar-stat-indicator--info {
  background: rgba(23, 162, 184, 0.1);
  border-color: rgba(23, 162, 184, 0.2);
}

.sidebar-stat-indicator .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.sidebar-stat-indicator .stat-label {
  font-size: 0.7rem;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
}

.btn-icon {
  font-size: 1.5rem;
  min-width: 24px;
}

.btn-content {
  flex: 1;
}

.btn-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.btn-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Filter Controls */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  color: var(--steel-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.filter-select {
  padding: 0.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
}

.filter-select:focus {
  outline: none;
  border-color: var(--blue);
}

.quick-filters {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-filter-btn {
  padding: 0.5rem 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
}

/* ────────────────────────────────────────────────────────── */
/* Main Content Area - Job Grid                            */
/* ────────────────────────────────────────────────────────── */
.garage-content {
  flex: 1;
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.job-card {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.5rem;
  padding-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Legacy job-status-indicator removed - see Enhanced Garage Workflow Styling section below */

.job-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.8rem;
  color: var(--steel);
  font-weight: 600;
}

.job-content {
  margin-top: 1rem;
}

.job-name {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* .job-description removed - no longer used in redesign */

.job-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.job-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel-light);
  font-size: 0.8rem;
}

.job-stat i {
  color: var(--blue);
}

.job-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  position: relative;
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  overflow: visible;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.f1-car {
  position: absolute;
  top: -8px;
  font-size: 1.2rem;
  transition: left 0.3s ease;
  animation: f1-drive 2s ease-in-out infinite alternate;
}

@keyframes f1-drive {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-2px); }
}

.progress-text {
  color: var(--steel-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.confidence-indicators {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.confidence-flag {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
}

.confidence-flag--high {
  background: rgba(40, 167, 69, 0.2);
  color: var(--credit-green);
}

.confidence-flag--medium {
  background: rgba(255, 193, 7, 0.2);
  color: var(--credit-yellow);
}

.confidence-flag--low {
  background: rgba(220, 53, 69, 0.2);
  color: var(--credit-red);
}

.job-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.5rem;
}

.job-action {
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  background: var(--bg-dark);
  color: var(--steel-light);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.job-action:hover {
  background: var(--bg-light);
  color: var(--text);
  text-decoration: none;
}

.job-action--primary:hover {
  background: var(--blue);
  color: white;
}

.job-action--success:hover {
  background: var(--credit-green);
  color: white;
}

.job-action--danger:hover {
  background: var(--credit-red);
  color: white;
}

/* Empty State */
.empty-command-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.empty-command-center-content {
  max-width: 400px;
  padding: 2rem;
}

.empty-icon {
  font-size: 4rem;
  color: var(--steel);
  margin-bottom: 1rem;
}

.empty-title {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.empty-text {
  color: var(--steel-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.empty-cta-btn {
  background: var(--blue);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.empty-cta-btn:hover {
  background: #3A7BD5;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Pagination */
.garage-pagination {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ────────────────────────────────────────────────────────── */
/* Bottom Bar - Secondary Actions                          */
/* ────────────────────────────────────────────────────────── */
.garage-bottom-bar {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 0.75rem 2rem;
}

.bottom-bar-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.bottom-bar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--steel-light);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.bottom-bar-btn:hover {
  color: var(--text);
  background: rgba(74, 144, 226, 0.1);
  text-decoration: none;
}

.bottom-bar-btn i {
  font-size: 1rem;
}

.bottom-bar-notifications {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--steel-light);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.bottom-bar-notifications:hover {
  color: var(--text);
  background: rgba(74, 144, 226, 0.1);
}

/* ────────────────────────────────────────────────────────── */
/* Responsive Design                                       */
/* ────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .garage-sidebar {
    width: 200px;
    min-width: 200px;
    padding: 1rem;
  }
  
  .garage-content {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .garage-top-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.75rem;
  }
  
  .top-bar-actions {
    width: 100%;
    gap: 1rem;
    justify-content: center;
  }
  
  .top-bar-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 1rem;
  }
  
  .top-bar-title {
    order: -1;
    width: 100%;
    text-align: center;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .garage-sidebar {
    position: fixed;
    left: -220px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: left 0.3s ease;
    width: 220px;
    min-width: 220px;
    padding: 1rem;
  }
  
  .garage-sidebar.open {
    left: 0;
  }
  
  .garage-content {
    padding: 0.75rem;
  }
  
  .job-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .bottom-bar-section {
    gap: 1rem;
    justify-content: space-around;
  }
  
  .bottom-bar-btn span {
    display: none;
  }
}

@media (max-width: 480px) {
  .garage-top-bar {
    padding: 0.75rem 0.5rem;
  }
  
  .top-bar-stats {
    gap: 0.5rem;
  }
  
  .stat-indicator {
    min-width: 60px;
    padding: 0.5rem;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .garage-content {
    padding: 0.5rem;
  }
  
  .job-card {
    padding: 1rem;
  }
  
  .garage-bottom-bar {
    padding: 0.5rem;
  }
}


/* ====================================
   PRICING SUMMARY SECTION STYLES
   ==================================== */

.pricing-summary-section {
    margin-top: 2rem;
}

.pricing-card {
    background: var(--bg-mid);
    border: 1px solid var(--blue);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.pricing-card h3 {
    color: var(--orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.pricing-card h3 i {
    margin-right: 0.5rem;
}

.pricing-details, .balance-info {
    margin: 1rem 0;
}

.pricing-row, .balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pricing-row:last-child, .balance-row:last-child {
    border-bottom: none;
}

.total-row {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--orange);
    font-size: 1.1rem;
}

.balance-amount {
    color: var(--blue-light);
    font-weight: 600;
}

.remaining-balance.success {
    color: #28a745;
}

.remaining-balance.error {
    color: #dc3545;
}

.insufficient-credits-warning {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    color: #dc3545;
}

.insufficient-credits-warning i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.pricing-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted, #aaa);
    text-align: center;
}

.pricing-note i {
    margin-right: 0.3rem;
    color: var(--blue);
}

/* ────────────────────────────────────────────────────────── */
/* Pricing Section (Simplified Confirm Page)                 */
/* ────────────────────────────────────────────────────────── */

.pricing-section {
    margin: 2rem 0;
}

.pricing-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
}

.pricing-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pricing-header h4 {
    color: var(--text);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.complexity-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--blue);
}

.complexity-label {
    color: var(--text);
    font-weight: 500;
}

.complexity-value {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.complexity-value.low {
    background: rgba(40, 167, 69, 0.2);
    color: var(--credit-green);
}

.complexity-value.medium {
    background: rgba(255, 193, 7, 0.2);
    color: var(--credit-yellow);
}

.complexity-value.high {
    background: rgba(253, 126, 20, 0.2);
    color: var(--credit-orange);
}

.complexity-value.very_high {
    background: rgba(220, 53, 69, 0.2);
    color: var(--credit-red);
}

.cost-info {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}

.cost-item strong {
    color: var(--orange);
    font-size: 1.1rem;
    font-weight: 600;
}

.balance-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
}

.balance-current {
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-current strong {
    color: var(--blue-light);
}

.balance-after {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.balance-after.success {
    color: var(--credit-green);
}

.balance-after.error {
    color: var(--credit-red);
}

.balance-after strong {
    font-weight: 600;
}

/* Detailed Pricing Breakdown Layout */
.pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1rem 0;
}

/* Summary Section */
.pricing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border-left: 4px solid var(--blue);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.summary-value {
    color: var(--blue-light);
    font-weight: 600;
    font-size: 1rem;
}

/* Cost Calculation Section */
.cost-calculation-detailed {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cost-row.complexity {
    color: var(--orange);
    font-size: 0.95rem;
}

.cost-row.total {
    border-bottom: 2px solid var(--blue);
    padding: 0.75rem 0;
    margin: 0.5rem 0;
    font-weight: 600;
}

.cost-row.final {
    border-bottom: none;
    border-top: 2px solid var(--orange);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.cost-label {
    color: var(--text);
    font-weight: 500;
}

.cost-label-large {
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}

.cost-value {
    color: var(--blue-light);
    font-weight: 600;
}

.cost-value-emphasis {
    color: var(--orange);
    font-weight: 700;
}

.cost-value-large {
    color: var(--orange);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Balance Section */
.balance-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
}

.balance-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-cost .balance-value.cost {
    color: var(--orange);
}

/* Compact Payment Confirmation */
.payment-confirmation-compact {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--orange);
}

.confirmation-notice-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.confirmation-notice-compact .notice-icon {
    font-size: 1.2rem;
}

.confirmation-notice-compact .notice-text {
    color: var(--text);
    font-size: 0.95rem;
}

/* Success Guarantee */
.success-guarantee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    color: var(--credit-green, #28a745);
    font-size: 0.9rem;
}

.success-guarantee .guarantee-icon {
    font-size: 1.1rem;
    color: var(--credit-green, #28a745);
}

.success-guarantee .guarantee-text {
    color: var(--text);
    opacity: 0.9;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-summary {
        grid-template-columns: 1fr;
    }
    
    .summary-item {
        text-align: center;
    }
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .pricing-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .cost-info {
        grid-column: 1 / -1;
    }
    
    .balance-info {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ════════════════════════════════════════════════════════════════════
   Enhanced Garage Workflow Styling (Issue #36)
   ════════════════════════════════════════════════════════════════════ */

/* Enhanced Job Status Indicator with Workflow Stages */
.job-status-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.job-status-indicator .status-text {
  display: inline;
  white-space: nowrap;
}

/* Setup phase workflow stages */
.job-status-indicator--file_uploaded,
.job-status-indicator--data_configured,
.job-status-indicator--themes_pending_review,
.job-status-indicator--building_codeframe {
  background: linear-gradient(135deg, #6c757d, #95a5a6);
  border-left-color: #6c757d;
  color: #fff;
}

.job-status-indicator--codeframe_complete {
  background: linear-gradient(135deg, #17a2b8, #5bc0de);
  border-left-color: #17a2b8;
  color: #fff;
}

.job-status-indicator--awaiting_credits {
  background: linear-gradient(135deg, #ffc107, #ffdb4d);
  border-left-color: #ffc107;
  color: #000;
}

.job-status-indicator--generating_themes,
.job-status-indicator--generating_codes {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-left-color: var(--blue);
  color: #fff;
  animation: pulse-glow 2s infinite;
}

/* Running phase workflow stages */
.job-status-indicator--preparing_job,
.job-status-indicator--processing_themes,
.job-status-indicator--categorizing_responses,
.job-status-indicator--finalizing {
  background: linear-gradient(135deg, var(--orange), #ffb84d);
  border-left-color: var(--orange);
  color: #fff;
  animation: pulse-glow 2s infinite;
}

/* Completed states */
.job-status-indicator--completed {
  background: linear-gradient(135deg, #28a745, #5cb85c);
  border-left-color: #28a745;
  color: #fff;
}

.job-status-indicator--completed_with_warnings {
  background: linear-gradient(135deg, #ffc107, #ffdd57);
  border-left-color: #ffc107;
  color: #000;
}

.job-status-indicator--partially_completed {
  background: linear-gradient(135deg, #28a745, #ffc107);
  border-left-color: #28a745;
  color: #fff;
}

/* Failed states */
.job-status-indicator--failed_server,
.job-status-indicator--failed_timeout,
.job-status-indicator--failed_credits,
.job-status-indicator--failed_error,
.job-status-indicator--cancelled {
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
  border-left-color: #dc3545;
  color: #fff;
}

/* Action Required Badge */
.action-required-badge {
  position: absolute;
  top: 3.5rem;
  right: 1rem;
  background: var(--orange);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse-glow 2s infinite;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

/* Action Required Job Card Highlight */
.job-card--action-required {
  border: 2px solid var(--orange);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.job-card--action-required:hover {
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Running Job Card Highlight - Orange glow for active processing */
.job-card--running {
  border: 2px solid var(--orange);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.job-card--running:hover {
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Next Step Info */
.next-step-info {
  background: rgba(74, 144, 226, 0.1);
  border-left: 3px solid var(--blue);
  padding: 8px 10px;
  margin: 0 0 0.75rem 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--blue-light);
}

.next-step-info i {
  color: var(--blue);
  font-size: 0.9rem;
}

/* Current Operation Info */
.current-operation-info {
  background: rgba(255, 140, 0, 0.1);
  border-left: 3px solid var(--orange);
  padding: 8px 10px;
  margin: 0 0 0.75rem 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #ffb84d;
  font-weight: 500;
}

.current-operation-info i {
  color: var(--orange);
  font-size: 1rem;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Job Timing Info */
.job-timing {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 0.75rem 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.timing-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--steel-light);
}

.timing-item i {
  color: var(--steel);
  font-size: 0.85rem;
}

.timing-item.runtime {
  font-weight: 600;
  color: var(--orange);
}

.timing-item.runtime i {
  color: var(--orange);
}

/* Enhanced Job Actions */
.job-action--primary {
  background: linear-gradient(135deg, var(--orange), #ffb84d);
  color: #fff;
}

.job-action--primary:hover {
  background: linear-gradient(135deg, #ffb84d, var(--orange));
  transform: scale(1.1);
}

.job-action--warning {
  background: linear-gradient(135deg, #ffc107, #ffdb4d);
  color: #000;
}

.job-action--warning:hover {
  background: linear-gradient(135deg, #ffdb4d, #ffc107);
  transform: scale(1.1);
}

.job-action--info {
  background: linear-gradient(135deg, #17a2b8, #5bc0de);
  color: #fff;
}

.job-action--info:hover {
  background: linear-gradient(135deg, #5bc0de, #17a2b8);
  transform: scale(1.1);
}

.job-action--secondary {
  background: linear-gradient(135deg, #6c757d, #95a5a6);
  color: #fff;
}

.job-action--secondary:hover {
  background: linear-gradient(135deg, #95a5a6, #6c757d);
  transform: scale(1.1);
}

/* Pulse glow animation for active/pending items */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* Responsive adjustments for workflow UI */
@media (max-width: 768px) {
  .job-status-indicator {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .job-status-indicator .status-text {
    display: none; /* Hide text on mobile, show only icon */
  }

  .action-required-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .next-step-info,
  .current-operation-info {
    font-size: 0.8rem;
    padding: 8px;
  }

  .job-timing {
    padding: 8px;
  }

  .timing-item {
    font-size: 0.75rem;
  }
}

