/* ==========================================================================
   Apex Motorsport - Global Design System & Common Stylesheet
   Brand: Apex Motorsport Indonesia (Official Premier Dealership)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  /* Surface Foundations */
  --color-surface: #faf8ff;
  --color-surface-dim: #d5d9ee;
  --color-surface-bright: #faf8ff;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f2f3ff;
  --color-surface-container: #eaedff;
  --color-surface-container-high: #e3e7fc;
  --color-surface-container-highest: #dee2f6;

  /* Neutrals & Text */
  --color-on-surface: #161b2a;
  --color-on-surface-variant: #434655;
  --color-inverse-surface: #2b303f;
  --color-inverse-on-surface: #eef0ff;
  --color-outline: #737687;
  --color-outline-variant: #c3c5d8;

  /* Primary Motorsport Racing Blue */
  --color-primary: #0037ab;
  --color-on-primary: #ffffff;
  --color-primary-container: #004be0;
  --color-on-primary-container: #c8d1ff;

  /* Secondary Track Competition Red */
  --color-secondary: #bc000c;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #e90614;
  --color-on-secondary-container: #fffbff;

  /* Typography */
  --font-headline: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* Base Resets & Font Rendering Stabilization (Fix font blur, double glyphs, and ghost shadows) */
*, *::before, *::after {
  box-sizing: border-box;
  text-shadow: none !important;
  font-synthesis: none !important;
  -webkit-font-synthesis: none !important;
  -moz-font-synthesis: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none !important;
}

/* Eliminate double/shadowed font rendering across all typographic elements */
h1, h2, h3, h4, h5, h6, p, span, a, button, input, label, select, textarea {
  text-shadow: none !important;
  font-synthesis: none !important;
  -webkit-font-synthesis: none !important;
}

/* Remove blur/double silhouette and filters on headings and text */
h1.no-shadow, h2.no-shadow, h3.no-shadow, .no-text-shadow,
h1, h2, h3, h4, h5, h6 {
  text-shadow: none !important;
}

/* Material Symbols Outlined Icon Font Normalization (prevents ligature collision and double rendering) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal !important;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  text-shadow: none !important;
  filter: none !important;
  font-synthesis: none !important;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-container-low);
}

::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-outline);
}

/* Smooth Link & Button Transitions */
a, button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Header Utility */
.apex-glass-header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

/* Dark Glass Effect */
.apex-glass-dark {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(10, 15, 29, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Hover Elevation */
.apex-card-interactive {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.apex-card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(10, 15, 29, 0.12), 0 4px 8px -4px rgba(10, 15, 29, 0.06);
}

/* Toast Notifications */
.apex-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background-color: var(--color-inverse-surface);
  color: var(--color-inverse-on-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-family: var(--font-body);
  font-size: 14px;
  animation: apexToastSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Shared header navigation: prevents menu labels from shrinking into one another. */
header nav {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

header nav > a {
  flex: 0 0 auto;
  white-space: nowrap;
}

header .max-w-7xl {
  width: 100%;
}


/* apex-nav-layout */

/* ==========================================================================
   Shadcn UI Design System & Component Library (Derived from next-shadcn)
   ========================================================================== */

:root {
  /* Shadcn Modern Design Tokens */
  --shadcn-background: #ffffff;
  --shadcn-foreground: #090d16;
  --shadcn-card: #ffffff;
  --shadcn-card-foreground: #090d16;
  --shadcn-popover: #ffffff;
  --shadcn-popover-foreground: #090d16;
  --shadcn-primary: #004be0;
  --shadcn-primary-hover: #0037ab;
  --shadcn-primary-foreground: #ffffff;
  --shadcn-secondary: #f1f5f9;
  --shadcn-secondary-foreground: #0f172a;
  --shadcn-muted: #f8fafc;
  --shadcn-muted-foreground: #64748b;
  --shadcn-accent: #f1f5f9;
  --shadcn-accent-foreground: #0f172a;
  --shadcn-destructive: #ef4444;
  --shadcn-destructive-foreground: #ffffff;
  --shadcn-border: #e2e8f0;
  --shadcn-border-subtle: #f1f5f9;
  --shadcn-input: #e2e8f0;
  --shadcn-ring: #004be0;
  --shadcn-radius: 0.5rem;
  --shadcn-radius-lg: 0.75rem;
  --shadcn-radius-xl: 1rem;

  /* Modern Crisp Shadow Tokens */
  --shadcn-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadcn-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadcn-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadcn-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

/* --- Shadcn Button Variants --- */
.shadcn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--shadcn-radius);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.25rem;
  padding: 0 1rem;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.shadcn-btn:active {
  transform: translateY(1px);
}

.shadcn-btn-primary,
a.shadcn-btn-primary,
button.shadcn-btn-primary {
  background-color: #004be0 !important;
  color: #ffffff !important;
  border: 1px solid #004be0 !important;
  box-shadow: 0 2px 8px rgba(0, 75, 224, 0.35) !important;
  font-weight: 600;
}

.shadcn-btn-primary:hover,
a.shadcn-btn-primary:hover,
button.shadcn-btn-primary:hover {
  background-color: #0037ab !important;
  border-color: #0037ab !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 75, 224, 0.45) !important;
  filter: brightness(1.08);
}

.shadcn-btn-primary:active,
a.shadcn-btn-primary:active,
button.shadcn-btn-primary:active {
  background-color: #002e8f !important;
  transform: scale(0.98);
}

.shadcn-btn-primary .material-symbols-outlined,
a.shadcn-btn-primary .material-symbols-outlined,
button.shadcn-btn-primary .material-symbols-outlined {
  color: #ffffff !important;
}

/* Ensure outline buttons on dark background don't force dark text */
.shadcn-btn-outline.text-white,
.shadcn-btn-outline[class*="text-white"],
.shadcn-btn-outline[class*="bg-white/10"],
.shadcn-btn-outline[class*="border-white/20"] {
  color: #ffffff !important;
}

/* Unified Motorsport Brand CTA & Utility Classes */
.bg-primary-container,
a.bg-primary-container,
button.bg-primary-container {
  background-color: #004be0 !important;
  color: #ffffff !important;
}

.bg-primary,
a.bg-primary,
button.bg-primary {
  background-color: #0037ab !important;
  color: #ffffff !important;
}

.text-on-primary {
  color: #ffffff !important;
}

.text-primary {
  color: #004be0 !important;
}

.border-primary {
  border-color: #004be0 !important;
}

/* Universal Button Fallback & Component Styles */
.btn-primary,
.btn-action,
.btn-cta,
a.btn-primary,
button.btn-primary,
a.btn-action,
button.btn-action,
a.btn-cta,
button.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #004be0 !important;
  color: #ffffff !important;
  border: 1px solid #004be0 !important;
  border-radius: var(--radius-md, 0.5rem);
  font-family: var(--font-headline, 'Oswald', sans-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 75, 224, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.btn-action:hover,
.btn-cta:hover,
a.btn-primary:hover,
button.btn-primary:hover,
a.btn-action:hover,
button.btn-action:hover,
a.btn-cta:hover,
button.btn-cta:hover {
  background-color: #0037ab !important;
  border-color: #0037ab !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 75, 224, 0.45);
  filter: brightness(1.08);
}

.btn-primary:active,
.btn-action:active,
.btn-cta:active,
a.btn-primary:active,
button.btn-primary:active,
a.btn-action:active,
button.btn-action:active,
a.btn-cta:active,
button.btn-cta:active {
  transform: scale(0.98);
}

.btn-primary .material-symbols-outlined,
.btn-action .material-symbols-outlined,
.btn-cta .material-symbols-outlined {
  color: #ffffff !important;
}

.shadcn-btn-secondary {
  background-color: #f1f5f9;
  color: #0f172a !important;
  border-color: #e2e8f0;
}

.shadcn-btn-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a !important;
}

.shadcn-btn-outline {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a !important;
  box-shadow: var(--shadcn-shadow-xs);
}

.shadcn-btn-outline:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a !important;
}

.shadcn-btn-ghost {
  background-color: transparent;
  color: #334155 !important;
}

.shadcn-btn-ghost:hover {
  background-color: #f1f5f9;
  color: #0f172a !important;
}

.shadcn-btn-destructive {
  background-color: #fef2f2;
  color: #dc2626 !important;
  border-color: #fecaca;
}

.shadcn-btn-destructive:hover {
  background-color: #fee2e2;
  color: #b91c1c !important;
}

.shadcn-btn-sm {
  height: 1.875rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.shadcn-btn-lg {
  height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
}

/* --- Shadcn Card Structure --- */
.shadcn-card {
  border-radius: var(--shadcn-radius-xl);
  border: 1px solid var(--shadcn-border);
  background-color: var(--shadcn-card);
  color: var(--shadcn-card-foreground);
  box-shadow: var(--shadcn-shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.shadcn-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadcn-shadow-md);
}

.shadcn-card-header {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  gap: 0.375rem;
}

.shadcn-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.shadcn-card-description {
  font-size: 0.8125rem;
  color: var(--shadcn-muted-foreground);
  line-height: 1.4;
}

.shadcn-card-content {
  padding: 1.25rem;
  padding-top: 0.25rem;
}

.shadcn-card-footer {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--shadcn-border);
  background-color: #f8fafc;
}

/* --- Shadcn Badge Variants --- */
.shadcn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.15rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.shadcn-badge-primary {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.shadcn-badge-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

.shadcn-badge-outline {
  border-color: #cbd5e1;
  color: #334155;
  background-color: transparent;
}

.shadcn-badge-success {
  background-color: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.shadcn-badge-warning {
  background-color: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.shadcn-badge-destructive {
  background-color: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* --- Unified WhatsApp Button System (Apex Motorsport Standards) --- */
.shadcn-btn-whatsapp,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25d366 !important;
  border: 1px solid #20ba5a !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(37, 211, 102, 0.25);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadcn-btn-whatsapp:hover,
.btn-whatsapp:hover {
  background-color: #1eb956 !important;
  border-color: #1aa34c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.shadcn-btn-whatsapp:active,
.btn-whatsapp:active {
  transform: translateY(0);
}

.shadcn-btn-whatsapp .material-symbols-outlined,
.btn-whatsapp .material-symbols-outlined {
  color: #ffffff !important;
}

.shadcn-btn-whatsapp-outline,
.btn-whatsapp-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: var(--shadcn-shadow-xs);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadcn-btn-whatsapp-outline:hover,
.btn-whatsapp-outline:hover {
  background-color: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #15803d !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
  transform: translateY(-1px);
}

.shadcn-btn-whatsapp-outline:active,
.btn-whatsapp-outline:active {
  transform: translateY(0);
}

.shadcn-btn-whatsapp-outline .material-symbols-outlined,
.btn-whatsapp-outline .material-symbols-outlined {
  color: #16a34a !important;
  transition: color 0.2s ease;
}

.shadcn-btn-whatsapp-outline:hover .material-symbols-outlined,
.btn-whatsapp-outline:hover .material-symbols-outlined {
  color: #15803d !important;
}

/* Glass button variant on dark backgrounds (e.g. Hero, Dark Banners) */
.shadcn-btn-glass-dark,
.btn-glass-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadcn-btn-glass-dark:hover,
.btn-glass-dark:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.shadcn-btn-glass-dark .material-symbols-outlined,
.shadcn-btn-glass-dark span,
.btn-glass-dark .material-symbols-outlined,
.btn-glass-dark span {
  color: #ffffff !important;
}

@keyframes specHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 75, 224, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(0, 75, 224, 0.2); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 rgba(0, 75, 224, 0); transform: scale(1); }
}

.spec-highlight-active {
  animation: specHighlightPulse 1.2s ease-in-out;
  border-color: var(--color-primary) !important;
}

/* --- Shadcn KPI Stat Cards (Dashboard Overview) --- */
.shadcn-stat-card {
  border-radius: var(--shadcn-radius-xl);
  border: 1px solid var(--shadcn-border);
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: var(--shadcn-shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shadcn-stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadcn-shadow-sm);
}

.shadcn-stat-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.01em;
}

.shadcn-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* --- Shadcn Table Styling --- */
.shadcn-table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--shadcn-border);
  border-radius: var(--shadcn-radius-lg);
  background-color: #ffffff;
  box-shadow: var(--shadcn-shadow-xs);
}

.shadcn-table {
  width: 100%;
  caption-side: bottom;
  font-size: 0.875rem;
  text-align: left;
  border-collapse: collapse;
}

.shadcn-table thead tr {
  border-bottom: 1px solid var(--shadcn-border);
  background-color: #f8fafc;
}

.shadcn-table th {
  height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shadcn-table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.shadcn-table tbody tr {
  transition: background-color 0.15s ease;
}

.shadcn-table tbody tr:hover {
  background-color: #f8fafc;
}

/* --- Shadcn Input & Search Controls --- */
.shadcn-input {
  display: flex;
  height: 2.25rem;
  width: 100%;
  border-radius: var(--shadcn-radius);
  border: 1px solid var(--shadcn-border);
  background-color: #ffffff;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  box-shadow: var(--shadcn-shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.shadcn-input:focus {
  border-color: #004be0;
  box-shadow: 0 0 0 3px rgba(0, 75, 224, 0.12);
}

/* --- Shadcn Select & Textarea Controls --- */
.shadcn-select {
  display: flex;
  height: 2.25rem;
  width: 100%;
  border-radius: var(--shadcn-radius);
  border: 1px solid var(--shadcn-border);
  background-color: #ffffff;
  padding: 0.25rem 2rem 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  box-shadow: var(--shadcn-shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  cursor: pointer;
  appearance: none;
  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='%2364748b' 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.25rem 1.25rem;
}

.shadcn-select:focus {
  border-color: #004be0;
  box-shadow: 0 0 0 3px rgba(0, 75, 224, 0.12);
}

.shadcn-textarea {
  display: flex;
  min-height: 5rem;
  width: 100%;
  border-radius: var(--shadcn-radius);
  border: 1px solid var(--shadcn-border);
  background-color: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  box-shadow: var(--shadcn-shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  resize: vertical;
}

.shadcn-textarea:focus {
  border-color: #004be0;
  box-shadow: 0 0 0 3px rgba(0, 75, 224, 0.12);
}

/* --- Shadcn Tabs / Segmented Controls --- */
.shadcn-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #f1f5f9;
  padding: 0.25rem;
  border-radius: var(--shadcn-radius);
  border: 1px solid var(--shadcn-border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.shadcn-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: calc(var(--shadcn-radius) - 2px);
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shadcn-tab-btn:hover {
  color: #0f172a;
  background-color: rgba(255, 255, 255, 0.6);
}

.shadcn-tab-btn.active,
.shadcn-tab-btn[aria-selected="true"],
.shadcn-tab-btn[data-state="active"],
.tab-btn.active,
.branch-btn.active,
.category-btn.active,
.category-tab-active,
.filter-badge-active {
  background-color: #004be0 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 75, 224, 0.35) !important;
  font-weight: 700 !important;
}

.shadcn-tab-btn.active .material-symbols-outlined,
.tab-btn.active .material-symbols-outlined,
.branch-btn.active .material-symbols-outlined,
.category-btn.active .material-symbols-outlined {
  color: #ffffff !important;
}

/* --- Shadcn Modern Breadcrumb Bar --- */
.shadcn-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.shadcn-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.shadcn-breadcrumb a:hover {
  color: var(--shadcn-primary);
}

.shadcn-breadcrumb .separator {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
}

.shadcn-breadcrumb .current {
  font-weight: 600;
  color: #0f172a;
}

/* --- Shadcn Modern Metric / Stat Trend Pills --- */
.shadcn-stat-trend-up {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
}

.shadcn-stat-trend-down {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: #fef2f2;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Shadcn Sidebar Navigation Styling --- */
.shadcn-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--shadcn-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.shadcn-sidebar-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.shadcn-sidebar-item.active,
.shadcn-sidebar-item[aria-current="page"] {
  background-color: #0037ab;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 55, 171, 0.25);
}

.shadcn-sidebar-item.active .material-symbols-outlined,
.shadcn-sidebar-item[aria-current="page"] .material-symbols-outlined {
  color: #ffffff !important;
}

/* Dark variant of sidebar */
.shadcn-sidebar-dark .shadcn-sidebar-item {
  color: rgba(255, 255, 255, 0.75);
}

.shadcn-sidebar-dark .shadcn-sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.shadcn-sidebar-dark .shadcn-sidebar-item.active,
.shadcn-sidebar-dark .shadcn-sidebar-item[aria-current="page"] {
  background-color: #004be0;
  color: #ffffff !important;
}




