/* =========================================================================
   DETAIL MONK • LUXURY AUTOMOTIVE DETAILING COCKPIT STYLES
   ========================================================================= */

:root {
  --color-obsidian: #07080B;
  --color-carbon: #0B0D12;
  --color-slatecard: #0E1015;
  --color-elevated: #13161C;
  --color-gold: #D4AF37;
  --color-gold-hover: #E6CA65;
  --color-gold-glow: rgba(212, 175, 55, 0.25);
  --color-hairline: rgba(255, 255, 255, 0.08);
  --color-emerald: #10B981;
  --color-amber: #F59E0B;
  --color-crimson: #EF4444;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-obsidian);
  color: #F1F5F9;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  user-select: none;
  margin: 0;
  padding: 0;
}

input, textarea, select {
  user-select: text;
}

/* Custom Cockpit Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(11, 13, 18, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.4);
}

/* HSRP Authentic Indian License Plate Styling */
.hsrp-plate {
  position: relative;
  background: linear-gradient(180deg, #1A1F2C 0%, #0D1117 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hsrp-plate::before,
.hsrp-plate::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748B;
  border: 1px solid #1E293B;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}
.hsrp-plate::before {
  right: 8px;
}

/* Navigation active tab button */
.nav-tab-btn.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-left: 3px solid var(--color-gold);
  color: #FFFFFF;
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.1);
}

/* Ledger & Customer Sub-Tab Styling */
.ledger-view-tab {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ledger-view-tab.active {
  background-color: rgba(212, 175, 55, 0.15) !important;
  color: var(--color-gold) !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.12) !important;
}

/* Mobile drawer classes */
.sidebar-open-mobile {
  display: flex !important;
  position: fixed !important;
  top: 64px !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 50 !important;
  width: 280px !important;
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8) !important;
}

/* Service Card Interactive Styling */
.service-card {
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0E1015;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.service-card.selected {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, #0E1015 70%);
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18);
}

.service-card .check-circle {
  transition: all 0.2s ease;
}

.service-card.selected .check-circle {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-obsidian);
}

/* Category Cards */
.category-card {
  transition: all 0.2s ease;
}
.category-card:hover {
  transform: translateY(-1px);
}
.category-card.active {
  border-color: rgba(212, 175, 55, 0.9) !important;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, #0E1015 100%) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

/* Payment Mode Active Buttons */
.payment-mode-btn.active {
  border-color: var(--color-gold) !important;
  background-color: rgba(212, 175, 55, 0.2) !important;
  color: #F5E6A3 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Subtle luxury pulse for active bays */
@keyframes bayPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)); }
}

.bay-live-active {
  animation: bayPulse 3s infinite ease-in-out;
}

/* =========================================================================
   A4 & THERMAL INVOICE PRINT STYLES
   ========================================================================= */

@media print {
  body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  /* Hide everything except the print modal */
  header,
  aside,
  main,
  nav,
  #toast-container,
  .no-print {
    display: none !important;
  }

  #print-modal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  #print-modal > div {
    max-width: 100% !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  #printable-invoice-container {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
  }

  .print-sheet {
    background: #FFFFFF !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: 1px solid #CCCCCC !important;
    padding: 24px !important;
  }

  .print-sheet * {
    color: #000000 !important;
    border-color: #DDDDDD !important;
  }

  .print-gold-badge {
    border: 1px solid #999999 !important;
    background: #F0F0F0 !important;
    color: #000000 !important;
  }
}
