/* Auto-Man Driving School - Dark Theme */
:root {
  --brand: #3b82f6;
  --bg: #0b1220;
  --card: #101828;
  --header: #1a2332;
  --muted: #9aa4b2;
  --border: #374151;
  --text-light: #e5e7eb;
  --text-gray: #d1d5db;
}

/* Global styles */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background-color: var(--bg) !important;
  color: var(--text-light) !important;
}

/* =================================================================== */
/* FORM INPUTS - WHITE BACKGROUNDS WITH BLACK TEXT FOR ALL INPUTS */
/* =================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
  background-color: white !important;
  color: black !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

/* Placeholder text styling */
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: #6b7280 !important;
}

/* Focus states for inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
  background-color: white !important;
  color: black !important;
  border-color: #3b82f6 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2) !important;
}

/* Disabled state */
input:disabled,
textarea:disabled,
select:disabled {
  background-color: #f9fafb !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
}

/* Select dropdown styling */
select {
  background-color: white !important;
  color: black !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Checkbox and radio button styling */
input[type="checkbox"],
input[type="radio"] {
  background-color: white !important;
  border: 1px solid #d1d5db !important;
  color: #3b82f6 !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2) !important;
}

/* =================================================================== */

/* Header */
header {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a2332 50%, #0f1a28 100%) !important;
  border-bottom: 1px solid rgba(59,130,246,0.2);
}
header a.logo { color: var(--text-light); }
header nav a { color: var(--text-gray); }
header nav a:hover { color: var(--brand); }
header button { color: var(--text-light); border-color: var(--border); }

/* Footer */
footer {
  background: linear-gradient(135deg, #0f1a28 0%, #1a2332 50%, #1e3a5f 100%) !important;
  border-top: 1px solid rgba(59,130,246,0.2);
  color: var(--muted);
}
footer nav a { color: var(--text-gray); }
footer nav a:hover { color: #60a5fa; }

/* Sections */
section { background: transparent !important; }

/* Cards */
.bg-white,
.rounded-xl {
  background-color: var(--card) !important;
  border: 1px solid var(--border);
  color: var(--text-light) !important;
}

/* Override card styling for form inputs - must come after .bg-white rule */
select.bg-white,
select.flex-1,
select { background-color: white !important; color: black !important; }

/* Text colors */
.text-gray-900 { color: var(--text-light) !important; }
.text-gray-700 { color: #9ca3af !important; }
.text-gray-600 { color: var(--muted) !important; }

/* Borders */
.border { border-color: var(--border) !important; }

/* Shadows */
.shadow,
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important; }

/* Gradients */
.bg-gradient-to-br { background: linear-gradient(135deg, #1e3a8a 0%, var(--brand) 100%) !important; }

/* Container */
.container { max-width: 1100px; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

@media (max-width: 480px) {
  #bookNowBtn,
  .btn-book-now {
    padding: 0.25rem 0.5rem !important; /* smaller padding */
    font-size: 0.75rem !important;      /* text-smaller */
  }
  header .btn-primary.btn-lg {
    padding: 0.25rem 0.7rem !important;
    font-size: 0.85rem !important;
    min-width: 0 !important;
    border-radius: 0.45rem !important;
  }
  header .btn-secondary {
    padding: 0.22rem 0.5rem !important;
    font-size: 0.8rem !important;
    min-width: 0 !important;
    border-radius: 0.45rem !important;
  }
}


/* --- Admin Sidebar Navigation --- */
.nav-item{
  color: var(--text-gray) !important;
  background: var(--card);
  border-left: 4px solid transparent;
  border-radius: 12px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nav-item:hover{
  background: rgba(59,130,246,0.30) !important;
  color: #f3f4f6 !important;
  border-left-color: var(--brand) !important;
  box-shadow: 0 2px 8px rgba(59,130,246,0.4);
}
.nav-item.is-active{
  background: linear-gradient(180deg, rgba(59,130,246,0.85) 0%, rgba(37,99,235,0.85) 100%) !important;
  color: #fff !important;
  border-left-color: #93c5fd !important;
  box-shadow: inset 0 0 0 1px rgba(147,197,253,0.65), 0 6px 16px rgba(17,24,39,0.35);
}
.nav-item:focus-visible{ outline: none; box-shadow: 0 0 0 2px rgba(147,197,253,0.7); }

/* ============================================================= */
/* GLOBAL BUTTON SYSTEM (single source of truth)                  */
/* ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  padding: 10px 22px;

  /* Rectangular by default */
  border-radius: 0.5rem !important;

  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

/* Allow pills only when explicitly requested */
.btn.rounded-full { border-radius: 9999px !important; }

/* Base: Primary */
.btn-primary {
  background-color: #3b82f6 !important;
  color: #fff !important;
  border: 0.1px solid #0D47A1 !important; /* sky-300 edge */
  box-shadow:
    0 0 0 1px rgba(96,165,250,0.35),
    0 2px 6px rgba(59,130,246,0.35) !important;
}

/* Base: Secondary */
.btn-secondary {
  background-color: #111827 !important;  /* slate-900 */
  color: #e5e7eb !important;             /* light gray */
  border: 1px solid #ffffff !important;  /* subtle blue edge */
  box-shadow: none !important;           /* no glow at rest */
  transition: all 0.15s ease-in-out;     /* smooth hover/focus */
}

/* --- Hovers (DIFFERENT) --- */

/* Primary: keep solid brand blue, add bright border + glow */
.btn-primary:hover {
  background-color: #3b82f6 !important;               /* stay medium blue */
  color: #fff !important;
  border-color: #7dd3fc !important;                    /* bright edge */
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.18),
    0 0 0 1px rgba(96,165,250,0.50),
    0 0 14px rgba(96,165,250,0.65) !important;
  transform: translateY(-1px);
}

/* Secondary: blue wash + glow */
.btn-secondary:hover {
  background-color: rgba(96,165,250,0.18) !important;  /* soft blue wash */
  color: #fff !important;
  border-color: #7dd3fc !important;
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.22),
    0 0 0 1px rgba(96,165,250,0.40),
    0 0 12px rgba(96,165,250,0.55) !important;
  transform: translateY(-1px);
}

/* Light-blue variant used for Login button */
.btn-primary-light {
  background-color: #60a5fa !important;   /* sky-400 */
  color: #fff !important;
  border: 2px solid rgba(147,197,253,0.8) !important; /* soft border */
  box-shadow:
    0 0 6px rgba(147,197,253,0.4),
    0 0 0 1px rgba(147,197,253,0.3) !important;
  transition: all 0.25s ease;
}
.btn-primary-light:hover {
  background-color: #60a5fa !important;   /* brand blue */
  border-color: #93c5fd !important;       /* lighter edge */
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.25),
    0 0 12px rgba(96,165,250,0.55) !important;
  transform: translateY(-1px);
}

/* Beat Tailwind utilities if present on the element */
.btn.btn-primary:hover:not(.btn-cta):not(.btn-cta-lg) { background-image: none !important; }

/* Size variant */
.btn-lg { padding: 0.75rem 1.75rem; }

/* Focus + Disabled */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59,130,246,.5), 0 0 0 4px rgba(255,255,255,.1);
}
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ============================================================= */
/* CTA variants                                                  */
/* ============================================================= */

.btn-cta {
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 100%) !important;
  border: 1px solid #7dd3fc !important;
  color: #fff !important;
  box-shadow: inset 0 0 6px rgba(255,255,255,0.22), 0 4px 16px rgba(59,130,246,0.45);
  font-weight: 700;
}
.btn-cta:hover {
  background: linear-gradient(90deg, #38c5ff 0%, #2563eb 100%) !important;
  box-shadow: inset 0 0 8px rgba(255,255,255,0.28), 0 6px 22px rgba(59,130,246,0.55);
  transform: translateY(-1px);
}
/* CTA – medium blue gradient with glow */
.btn-cta-lg {
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 100%) !important;
  border: 1px solid #7dd3fc !important;
  color: #fff !important;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  border-radius: 0.75rem;
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.22),
    0 6px 22px rgba(59,130,246,0.45);
  transition: all 0.25s ease;
}
.btn-cta-lg:hover {
  background: linear-gradient(90deg, #38c5ff 0%, #2563eb 100%) !important;
  border-color: #93c5fd !important;
  box-shadow:
    inset 0 0 8px rgba(255,255,255,0.25),
    0 8px 28px rgba(59,130,246,0.55);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .btn-cta-lg { font-size: 1rem; padding: 0.75rem 1.75rem; }
}

/* ============================================================= */
/* Link/text helpers                                             */
/* ============================================================= */

.text-blue-dark { color: #60a5fa !important; }
.text-blue-dark:hover { color: #bfdbfe !important; }

.text-light-hover-blue {
  color: rgb(249 250 251) !important;
  font-weight: 400;
  transition: color 0.2s ease;
}
.text-light-hover-blue:hover {
  color: rgb(96 165 250) !important;
  font-weight: 400;
}

/* ============================================================= */
/* Services dropdown                                             */
/* ============================================================= */

a.px-6.py-3 {
  color: white !important;
  transition: all 0.2s ease;
}
a.px-6.py-3:hover {
  background-color: rgba(96,165,250,0.8) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96,165,250,0.6);
}
a.hover\:bg-white:hover,
a.hover\:bg-blue-50:hover,
a.hover\:bg-green-50:hover,
a.hover\:bg-red-50:hover,
a.hover\:bg-purple-50:hover {
  background-color: rgba(96,165,250,0.8) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96,165,250,0.6);
}

/* Dropdown panel */
header #nav-services-menu {
  background: #0b1220 !important;
  border: 1px solid rgba(96,165,250,0.32) !important;
  box-shadow: 0 10px 30px rgba(2,6,23,0.85), 0 0 0 1px rgba(96,165,250,0.35), 0 0 22px rgba(59,130,246,0.45) !important;
}
header #nav-services-menu a { color: #e5e7eb !important; }
header #nav-services-menu a:hover { color: #ffffff !important; }

/* Feature list ticks */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 20px;
  display: inline-block;
  font-weight: 700;
  color: #60a5fa;
}

/* Step badge */
.step-badge {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
  color: #60a5fa;
  background: rgba(59,130,246,0.15);
  border: 2px solid rgba(59,130,246,0.5);
  box-shadow: 0 0 6px rgba(59,130,246,0.25);
}

/* Contact Messages => match client booking card look */
.contact-card{
  background-color: #dbeafe !important;   /* same as booking cards */
  border: 2px solid #3b82f6 !important;   /* blue edge */
  border-radius: 0.5rem !important;        /* rounded-md look */
  color: #111827 !important;               /* dark text */
  box-shadow: none !important;
  padding: 1rem !important;                /* p-4 */
}
.contact-card *{
  color: #111827 !important;               /* ensure inner text is dark */
}
.contact-card svg{ color: #4b5563 !important; } /* gray-600 icons */

/* Fix: arrow crowding “Newest first” */
#contactSort{
  padding-right: 2.9rem !important;
  background-position: right .65rem center !important;
  background-size: 1.25em 1.25em !important;
}

/* Keep icons as FA, force adjacent text back to normal font */
.status-chip{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
                "Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;
  line-height: 1;
}
.status-chip .fa-solid,
.status-chip .fa-regular,
.status-chip .fa-brands{
  font-family: "Font Awesome 6 Free","Font Awesome 6 Brands" !important;
  font-weight: 900;
}
