/* ==========================================================
   GOOGLE FLOW / MATERIAL DESIGN 3 - ADMIN STYLES
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+Hebrew:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --google-blue: #1a73e8;
  --google-blue-hover: #1557b0;
  --google-blue-light: #e8f0fe;
  --google-green: #1e8e3e;
  --google-green-light: #e6f4ea;
  --google-yellow: #f9ab00;
  --google-yellow-light: #fef7e0;
  --google-red: #d93025;
  --google-red-light: #fce8e6;
  
  --surface: #ffffff;
  --surface-dim: #f8fafd;
  --surface-container: #edf2fa;
  --outline: #dadce0;
  --outline-variant: #e8eaed;
  --text-main: #202124;
  --text-secondary: #5f6368;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--surface-dim);
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* RTL Typography for Hebrew */
.font-hebrew {
  font-family: 'Noto Sans Hebrew', 'Plus Jakarta Sans', sans-serif;
  direction: rtl;
  text-align: right;
}

/* Japanese Typography */
.font-japanese {
  font-family: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
}

/* Google Flow Elevation */
.g-elevation-1 {
  box-shadow: 0 1px 3px rgba(60,64,67, 0.12), 0 1px 2px rgba(60,64,67, 0.08);
}
.g-elevation-2 {
  box-shadow: 0 3px 6px rgba(60,64,67, 0.15), 0 2px 4px rgba(60,64,67, 0.12);
}
.g-elevation-3 {
  box-shadow: 0 10px 20px rgba(60,64,67, 0.15), 0 3px 6px rgba(60,64,67, 0.10);
}

/* Google Nav Rail Active */
.nav-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item.active {
  background-color: #c2e7ff;
  color: #001d35;
  font-weight: 700;
}
.nav-item.active svg {
  color: #001d35;
}

/* Stepper Flow */
.stepper-step {
  transition: all 0.2s ease;
}
.stepper-step.completed .step-number {
  background-color: var(--google-green);
  color: #ffffff;
}
.stepper-step.active .step-number {
  background-color: var(--google-blue);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--google-blue-light);
}
.stepper-step.inactive .step-number {
  background-color: #f1f3f4;
  color: #5f6368;
}

/* Image 3-Size Card */
.size-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 9999px;
}

/* Material Switch */
.switch-checkbox:checked + .switch-label {
  background-color: var(--google-blue);
}
.switch-checkbox:checked + .switch-label .switch-ball {
  transform: translateX(1.25rem);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ==========================================================
   PRINT STYLES FOR OFFICIAL QUOTATION / PROFORMA VOUCHER
   ========================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }
  
  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Hide Admin Sidebar, Header, Nav Rail, Controls, Toasts & Everything Else */
  #admin-sidebar,
  header,
  nav,
  #toast-container,
  .no-print,
  #quotation-form-panel,
  #quotation-actions-bar,
  #tour-preview-modal,
  .modal-backdrop,
  button,
  input,
  select,
  textarea {
    display: none !important;
  }
  
  body > * {
    visibility: hidden !important;
  }
  
  /* Show only the Quotation Print Sheet */
  #quotation-print-sheet,
  #quotation-print-sheet * {
    visibility: visible !important;
  }
  
  #quotation-print-sheet {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  /* Print table adjustments */
  #quotation-print-sheet table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  
  #quotation-print-sheet th,
  #quotation-print-sheet td {
    border-color: #cbd5e1 !important;
  }
  
  /* Keep background colors on print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}


/* ==========================================================
   HIKEDAY OUTDOOR ADVENTURE THEME (ADMIN PANEL)
   Inspirado en el club de senderismo HikeDay (Hiking & Camping):
   - Deep Slate Navy (#132238)
   - Terracotta Orange (#e85d26)
   - Mountain Sky Blue (#4ba3e3)
   - Warm Alpine Stone (#f4f2ee)
   ========================================================== */

[data-admin-theme="hikeday"] {
  --surface: #ffffff;
  --surface-dim: #f3f1ed;
  --surface-container: #eae7e1;
  --outline: #dcd8d0;
  --outline-variant: #cfcac0;
  --text-main: #132238;
  --text-secondary: #576574;
  --google-blue: #e85d26;
  --google-blue-hover: #c84513;
  --google-blue-light: #fef0eb;
  --google-blue-container: #fcdcd2;
}

[data-admin-theme="hikeday"] body {
  background-color: #f3f1ed !important;
  color: #132238;
}

/* Top Header Bar */
[data-admin-theme="hikeday"] header {
  background-color: #132238 !important;
  border-bottom: 1px solid #1e3352 !important;
  color: #ffffff !important;
}

[data-admin-theme="hikeday"] header span.font-heading,
[data-admin-theme="hikeday"] header .text-slate-800,
[data-admin-theme="hikeday"] header .text-slate-900 {
  color: #ffffff !important;
}

[data-admin-theme="hikeday"] header .text-slate-500 {
  color: #94a3b8 !important;
}

[data-admin-theme="hikeday"] header #top-search-input {
  color: #ffffff !important;
}

[data-admin-theme="hikeday"] header #top-search-input::placeholder {
  color: #64748b !important;
}

[data-admin-theme="hikeday"] header .bg-\[\#edf2fa\] {
  background-color: #1a2a44 !important;
  border-color: #273e63 !important;
}

[data-admin-theme="hikeday"] header .text-\[\#5f6368\] {
  color: #94a3b8 !important;
}

[data-admin-theme="hikeday"] header .bg-google-blueContainer {
  background-color: #e85d26 !important;
  color: #ffffff !important;
}

[data-admin-theme="hikeday"] header .border-slate-200 {
  border-color: #273e63 !important;
}

/* Sidebar Navigation en Deep Navy */
[data-admin-theme="hikeday"] #admin-sidebar {
  background-color: #132238 !important;
  border-right: 1px solid #1e3352 !important;
}

[data-admin-theme="hikeday"] #admin-sidebar .nav-item {
  color: #cbd5e1 !important;
}

[data-admin-theme="hikeday"] #admin-sidebar .nav-item .material-symbols-outlined {
  color: #94a3b8;
}

[data-admin-theme="hikeday"] #admin-sidebar .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

[data-admin-theme="hikeday"] #admin-sidebar .nav-item.active {
  background-color: #e85d26 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(232, 93, 38, 0.45) !important;
}

[data-admin-theme="hikeday"] #admin-sidebar .nav-item.active span,
[data-admin-theme="hikeday"] #admin-sidebar .nav-item.active .material-symbols-outlined {
  color: #ffffff !important;
}

[data-admin-theme="hikeday"] #admin-sidebar .border-slate-200,
[data-admin-theme="hikeday"] #admin-sidebar .border-\[\#dadce0\] {
  border-color: #1e3352 !important;
}

[data-admin-theme="hikeday"] #admin-sidebar .bg-slate-50,
[data-admin-theme="hikeday"] #admin-sidebar .bg-slate-100,
[data-admin-theme="hikeday"] #admin-sidebar .bg-\[\#f8fafd\] {
  background-color: #1a2a44 !important;
  color: #cbd5e1 !important;
}

[data-admin-theme="hikeday"] #admin-sidebar .text-slate-800,
[data-admin-theme="hikeday"] #admin-sidebar .text-slate-700 {
  color: #f1f5f9 !important;
}

[data-admin-theme="hikeday"] #admin-sidebar .text-slate-500,
[data-admin-theme="hikeday"] #admin-sidebar .text-slate-400 {
  color: #94a3b8 !important;
}

/* Botones y acentos primarios en Terracota */
[data-admin-theme="hikeday"] .bg-google-blue {
  background-color: #e85d26 !important;
}
[data-admin-theme="hikeday"] .hover\:bg-google-blueHover:hover,
[data-admin-theme="hikeday"] .hover\:bg-google-blue:hover {
  background-color: #c84513 !important;
}
[data-admin-theme="hikeday"] .text-google-blue {
  color: #e85d26 !important;
}
[data-admin-theme="hikeday"] .border-google-blue {
  border-color: #e85d26 !important;
}
[data-admin-theme="hikeday"] .bg-google-blueLight {
  background-color: #fef0eb !important;
  color: #e85d26 !important;
}

/* ==========================================================
   DARK THEME (ADMIN PANEL)
   ========================================================== */
[data-admin-theme="dark"] {
  --surface: #1e293b;
  --surface-dim: #0f172a;
  --surface-container: #1e293b;
  --outline: #334155;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
}
[data-admin-theme="dark"] body {
  background-color: #0f172a !important;
  color: #f8fafc;
}
[data-admin-theme="dark"] header {
  background-color: #1e293b !important;
  border-bottom-color: #334155 !important;
  color: #f8fafc !important;
}
[data-admin-theme="dark"] header .text-slate-800,
[data-admin-theme="dark"] header .text-slate-900 {
  color: #f8fafc !important;
}
[data-admin-theme="dark"] header .bg-\[\#edf2fa\] {
  background-color: #334155 !important;
}
[data-admin-theme="dark"] #admin-sidebar {
  background-color: #1e293b !important;
  border-right-color: #334155 !important;
}
[data-admin-theme="dark"] #admin-sidebar .nav-item {
  color: #94a3b8 !important;
}
[data-admin-theme="dark"] #admin-sidebar .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}
[data-admin-theme="dark"] #admin-sidebar .nav-item.active {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}
