/* Kitsugi Fleet & Fuel Compass - Pure Light Theme (No Black, Clean Geometry) */
:root {
  --primary-blue: #0284c7;
  --primary-blue-dark: #0369a1;
  --primary-blue-light: #e0f2fe;
  --primary-blue-surface: #f0f9ff;
  
  --accent-amber: #d97706;
  --accent-amber-dark: #b45309;
  --accent-amber-light: #fef3c7;
  --accent-amber-surface: #fffbeb;
  
  --success-emerald: #059669;
  --success-emerald-dark: #047857;
  --success-emerald-light: #d1fae5;
  --success-emerald-surface: #ecfdf5;

  --accent-rose: #e11d48;
  --accent-rose-light: #ffe4e6;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.03);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', 'Noto Sans JP', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: #f4f6f9;
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 28px 60px 28px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  margin-bottom: 16px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-badge {
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.brand-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-badge-text .badge-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.brand-badge-text .badge-sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.brand-titles h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}

.brand-titles h1 span {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
  margin-left: 8px;
}

.brand-titles p {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Print Button (Navy/Blue theme instead of Black) */
.btn-print {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
  white-space: nowrap;
}

.btn-print:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
}

/* Nav Tabs */
.nav-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  color: var(--primary-blue);
  border-color: var(--primary-blue-light);
  background: var(--primary-blue-surface);
}

.tab-btn.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* Policy Banner */
.policy-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-blue-surface);
  border: 1px solid #bae6fd;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--slate-700);
  gap: 16px;
}

.banner-left {
  display: flex;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.banner-right {
  font-weight: 700;
  color: var(--slate-700);
  white-space: nowrap;
}

.region-price-highlight {
  color: var(--primary-blue-dark);
  font-weight: 800;
}

.policy-badge {
  background: var(--primary-blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--slate-100);
}

.card-title i {
  color: var(--primary-blue);
}

/* Form Groups */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-600);
  white-space: nowrap;
}

.badge-tag.highlight {
  background: var(--primary-blue-light);
  color: var(--primary-blue-dark);
}

.badge-tag.emerald {
  background: var(--success-emerald-light);
  color: var(--success-emerald-dark);
}

.form-select, .form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--slate-800);
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s;
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Industry Selector Chips */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.industry-chip {
  padding: 10px 6px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  background: var(--slate-50);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.industry-chip i {
  color: var(--slate-500);
}

.industry-chip span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-700);
  white-space: nowrap;
}

.industry-chip:hover {
  border-color: var(--primary-blue-light);
  background: var(--primary-blue-surface);
}

.industry-chip.active {
  border-color: var(--primary-blue);
  background: var(--primary-blue-surface);
  box-shadow: 0 0 0 2px var(--primary-blue);
}

.industry-chip.active i {
  color: var(--primary-blue);
}

.industry-chip.active span {
  color: var(--primary-blue-dark);
}

/* Sliders */
.slider-container {
  margin-top: 4px;
}

.slider-val-display {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary-blue);
  font-size: 1.05rem;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-blue);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Service Type Toggle */
.service-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.service-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  background: var(--slate-50);
  transition: all 0.2s;
}

.service-card.active {
  border-color: var(--success-emerald);
  background: var(--success-emerald-surface);
  box-shadow: 0 0 0 2px var(--success-emerald);
}

.service-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.service-card-sub {
  font-size: 0.72rem;
  color: var(--slate-500);
  line-height: 1.3;
}

/* Dashboard Summary Highlights (Clean Slate/Sky Light Gradient, No Black) */
.summary-hero-card {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.summary-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.summary-hero-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.hero-metric-box {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(4px);
}

.hero-metric-label {
  font-size: 0.75rem;
  color: #e0f2fe;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-metric-val {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.hero-metric-val span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e0f2fe;
  margin-left: 3px;
}

.hero-metric-val.green {
  color: #a7f3d0;
}

.hero-metric-val.amber {
  color: #fef08a;
}

/* 2-Tier Breakdown Section */
.breakdown-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.breakdown-box {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.breakdown-box.assured {
  border-top: 4px solid var(--success-emerald);
  background: #f0fdf4;
}

.breakdown-box.variable {
  border-top: 4px solid var(--primary-blue);
  background: #f0f9ff;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.breakdown-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.breakdown-amount.green {
  color: var(--success-emerald-dark);
}

.breakdown-amount.blue {
  color: var(--primary-blue-dark);
}

.breakdown-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--slate-600);
}

.breakdown-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--slate-200);
}

/* Pain & Solution Banner */
.pain-solution-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.pain-text {
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-top: 4px;
}

/* Clean CTA Card (Light Sky surface instead of Black) */
.cta-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cta-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--slate-900);
  margin-bottom: 3px;
}

.cta-subtitle {
  font-size: 0.78rem;
  color: var(--slate-600);
}

.btn-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.btn-cta:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
}

/* Tab 2: M&A Simulation Specific Styles */
.mna-container {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 20px;
  align-items: start;
}

.mna-grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.mna-card-stat {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.mna-stat-title {
  font-size: 0.78rem;
  color: var(--slate-500);
  font-weight: 700;
  margin-bottom: 4px;
}

.mna-stat-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--slate-900);
}

/* Tab 3: Data Bank Specific Styles */
.databank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 10px;
}

.databank-table th, .databank-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}

.databank-table th {
  background: var(--slate-50);
  font-weight: 700;
  color: var(--slate-700);
}

/* Print Stylesheet (A4 1-Page Layout) */
@media print {
  body {
    background: var(--white);
    color: var(--slate-900);
    padding: 0;
  }

  .app-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .app-header, .nav-tabs, .btn-print, .slider-container, input[type="range"], .cta-card {
    display: none !important;
  }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    padding: 14px;
    page-break-inside: avoid;
  }

  .summary-hero-card {
    background: #0284c7 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: white !important;
  }

  .print-only-header {
    display: block !important;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
  }
}

.print-only-header {
  display: none;
}
