/* ==========================================================================
   Topscore.nl - Kosten Koper Spanje Calculator
   Professionele Vanilla CSS Styling
   ========================================================================== */

:root {
  --primary: #0e3b64;
  --primary-hover: #082642;
  --primary-light: #e8f1f8;
  --primary-border: #bfdbfe;
  
  --secondary: #e06d3b; /* Mediterraans Terracotta */
  --secondary-hover: #c45727;
  --secondary-light: #fef3ec;
  
  --accent-gold: #d97706;
  --accent-green: #10b981;
  --accent-green-bg: #ecfdf5;
  --accent-red: #ef4444;
  --accent-red-bg: #fef2f2;
  --accent-blue: #2563eb;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ================= Top Bar & Header ================= */
.top-header {
  background: linear-gradient(135deg, var(--primary) 0%, #174a7d 100%);
  color: #ffffff;
  padding: 2.2rem 1.25rem 2.6rem;
  border-bottom: 4px solid var(--secondary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  display: inline-block;
}

.main-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.main-title span {
  color: #fbd38d;
}

.subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 800px;
  margin-bottom: 1.2rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--secondary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(224, 109, 59, 0.3);
}

.btn-accent:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

/* ================= Tab Navigation ================= */
.nav-tabs-wrapper {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-tabs {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1rem;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--bg-page);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

.tab-badge {
  font-size: 0.72rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 700;
}

/* ================= Main Container ================= */
.app-container {
  max-width: 1200px;
  margin: 1.8rem auto 3rem;
  padding: 0 1rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Grid Layout voor Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.8rem;
  align-items: start;
}

@media (max-width: 992px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= Cards ================= */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.4rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ================= Form Controls ================= */
.form-group {
  margin-bottom: 1.3rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.label-hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-symbol {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
  font-size: 0.95rem;
}

.input-symbol-right {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.input-with-symbol .form-input {
  padding-left: 28px;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: auto;
  font-family: inherit;
}

.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* Range slider styling */
.slider-container {
  margin-top: 0.5rem;
}

.form-range {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
  accent-color: var(--secondary);
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Preset buttons */
.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.6rem;
}

.preset-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.preset-btn:hover, .preset-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Radio button segment switch */
.segment-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.segment-item {
  position: relative;
}

.segment-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segment-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 0.6rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  gap: 2px;
}

.segment-label small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.segment-item input[type="radio"]:checked + .segment-label {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Collapsible accordion / details */
.accordion-toggle {
  background: none;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  border-top: 1px dashed var(--border-color);
  margin-top: 1rem;
}

.accordion-toggle .toggle-icon {
  transition: transform 0.2s ease;
}

.accordion-toggle.expanded .toggle-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding-top: 0.8rem;
}

.accordion-content.expanded {
  display: block;
}

/* Switch toggle (checkbox) */
.switch-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  cursor: pointer;
}

.switch-input {
  display: none;
}

.switch-track {
  width: 44px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  position: relative;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.switch-thumb {
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}

.switch-input:checked + .switch-track {
  background-color: var(--secondary);
}

.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}

/* ================= Sticky Results Column ================= */
.results-sidebar {
  position: sticky;
  top: 75px;
}

.hero-result-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.2rem;
}

.kpi-main-block {
  text-align: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.2rem;
}

.kpi-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.kpi-value-huge {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.kpi-box {
  background: var(--bg-subtle);
  padding: 0.9rem 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border-color);
}

.kpi-box-secondary {
  background: var(--secondary-light);
  border-color: #fbcfe8;
}

.kpi-box-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.kpi-box-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.kpi-box-percentage {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline-block;
  margin-top: 2px;
}

/* Stacked Visual Bar */
.visual-bar-wrapper {
  margin-bottom: 1.2rem;
}

.bar-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.stacked-bar {
  display: flex;
  height: 14px;
  border-radius: 9999px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.bar-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-tax { background-color: #ef4444; } /* Belasting ITP/IVA */
.seg-notary { background-color: #3b82f6; } /* Notaris & Registratie */
.seg-legal { background-color: #10b981; } /* Advocaat */
.seg-mortgage { background-color: #f59e0b; } /* Hypotheek / Taxatie */
.seg-other { background-color: #8b5cf6; } /* Overig */

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 0.6rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Breakdown List */
.breakdown-list {
  list-style: none;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-item-name {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.breakdown-item-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.breakdown-item-val {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  text-align: right;
}

.breakdown-row.total-row {
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
}

/* Action button inside card */
.card-cta-btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* ================= Warning & Info Alerts ================= */
.alert-box {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.3rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
}

.alert-info {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
}

.alert-warning {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: -2px;
}

.alert-content strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

/* ================= Data Tables (Regio Gids, Verhuur) ================= */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.styled-table th {
  background-color: var(--bg-subtle);
  color: var(--primary);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.styled-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.styled-table tr:last-child td {
  border-bottom: none;
}

.styled-table tr:hover td {
  background-color: #f8fafc;
}

.tag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-badge.green { background: #dcfce7; color: #166534; }
.tag-badge.blue { background: #dbeafe; color: #1e40af; }
.tag-badge.amber { background: #fef3c7; color: #92400e; }
.tag-badge.red { background: #fee2e2; color: #991b1b; }

/* ================= Comparison Grid ================= */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.compare-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* ================= FAQ & Guide Section ================= */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.3rem;
  margin-top: 1rem;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.faq-q {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.faq-a {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ================= Footer ================= */
.app-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1rem 3rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* ================= Modal Print Preview ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ================= Print Styles ================= */
@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .top-header {
    background: none !important;
    color: #000000 !important;
    padding: 1rem 0 !important;
    border-bottom: 2px solid #000000 !important;
  }

  .subtitle, .header-actions, .nav-tabs-wrapper, .app-footer, .btn, .preset-pills, .form-range, .range-ticks, .accordion-toggle {
    display: none !important;
  }

  .calc-grid {
    display: block !important;
  }

  .card, .hero-result-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem !important;
  }

  .results-sidebar {
    position: static !important;
  }
}

/* ================= ITP Calculator Custom Enhancements ================= */
.itp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
}
.itp-badge-primary { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.itp-badge-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.itp-badge-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.itp-badge-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.callout-savings {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.callout-savings-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
}
.callout-savings-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 2px;
}
.callout-savings-text {
  font-size: 0.82rem;
  color: #047857;
}

.valor-ref-box {
  background: #f8fafc;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  margin-top: 0.75rem;
}
.valor-ref-box.alert-active {
  background: #fffbeb;
  border-color: #f59e0b;
}

.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.2rem;
  align-items: center;
  justify-content: space-between;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill-btn:hover, .filter-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.search-box {
  position: relative;
  min-width: 250px;
}
.search-input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  font-size: 0.88rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.table-action-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.table-action-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.region-quick-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}
.region-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}
.region-chip:hover, .region-chip.active {
  background: var(--secondary-light);
  border-color: var(--secondary);
  color: var(--secondary);
}

.special-rate-condition-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #166534;
  line-height: 1.5;
}

.special-rate-condition-card.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

