/**
 * 車ローン × 投資シミュレーター - Refined Tech Minimalism
 */

/* Google Fonts Import - Modern & Distinctive */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   カラーパレット & 変数
   ======================================== */
:root {
  /* カラー - Modern Tech Palette */
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --text: #0f172a;
  --text-light: #475569;
  --text-lighter: #94a3b8;
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #ffffff;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* タイポグラフィ */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-size-base: 15px;
  --font-size-sm: 13px;
  --font-size-xs: 12px;
  --font-size-lg: 17px;
  --font-size-xl: 20px;
  --font-size-2xl: 28px;
  --font-size-3xl: 36px;
  --font-size-4xl: 48px;
  --line-height: 1.6;
  --line-height-tight: 1.25;

  /* スペーシング - Compact */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* その他 */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 8px 32px rgba(79, 70, 229, 0.12);

  /* Animation */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   リセット & 基本スタイル
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: var(--line-height);
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Animated gradient mesh background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  opacity: 0.4;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: meshMove 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5%, -5%) rotate(1deg); }
  66% { transform: translate(-5%, 5%) rotate(-1deg); }
}

/* ========================================
   レイアウト - Compact & Efficient
   ======================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md);
}

.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ========================================
   ヘッダー - Modern Hero with Glassmorphism
   ======================================== */
.header {
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.95) 0%, rgba(99, 102, 241, 0.9) 50%, rgba(6, 182, 212, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l9.9-9.9h-2.828zM27.03 0L17.03 10 18.444 11.414 30.858 0H27.03zm5.657 0L21.515 11.172 22.93 12.586 34.343 1.172 32.687 0zm5.657 0L27.172 11.172l1.414 1.414L40.758 0h-2.414zM41 0l-9 9 1.414 1.414L44.828 0H41zM46.657 0L35.485 11.172l1.414 1.414L49.07 0h-2.414zM52.313 0L41.142 11.172l1.414 1.414L54.727 0h-2.414z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  animation: patternSlide 30s linear infinite;
}

@keyframes patternSlide {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.header h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s var(--transition-smooth) backwards;
}

.header .subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s var(--transition-smooth) 0.1s backwards;
}

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

/* ========================================
   セクション - Glassmorphism Cards
   ======================================== */
.input-section,
.results-section {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s var(--transition-smooth);
}

.input-section:hover,
.results-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.input-section h2,
.results-section h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.input-section h3,
.results-section h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ========================================
   入力グループ - Compact Cards
   ======================================== */
.input-group {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: all 0.3s var(--transition-smooth);
}

.input-group:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

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

.input-group h3 {
  margin-top: 0;
}

/* ========================================
   フォーム要素 - Modern & Compact
   ======================================== */
.form-row {
  margin-bottom: var(--space-lg);
}

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

label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
  color: var(--text);
  letter-spacing: 0;
}

.help-text {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--text-lighter);
  margin-top: var(--space-xs);
}

.input-with-unit {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

input[type="number"],
input[type="text"] {
  flex: 1;
  height: 44px;
  padding: 0 var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 500;
  border: 2px solid var(--border);
  border-right: none;
  background: var(--bg-tertiary);
  color: var(--text);
  transition: all 0.3s var(--transition-smooth);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

input[type="number"]:hover,
input[type="text"]:hover {
  border-color: var(--primary-light);
}

input[type="number"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  border-right: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  position: relative;
  z-index: 2;
}

.unit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: 2px solid var(--primary);
  border-left: none;
  min-width: 60px;
  letter-spacing: 0.01em;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* チェックボックス - Modern Pill Style */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.checkbox-label:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label span {
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--text);
  transition: all 0.3s var(--transition-smooth);
}

.checkbox-label input[type="checkbox"]:checked + span {
  font-weight: 700;
  color: white;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.05);
}

/* 情報ボックス - Modern Card */
.info-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: '💡';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: var(--font-size-xl);
  opacity: 0.15;
}

.info-box p {
  margin: 0;
  color: var(--text);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.info-box p + p {
  margin-top: var(--space-sm);
}

.info-box strong {
  color: var(--primary);
  font-weight: 700;
}

/* ========================================
   ボタン - Modern & Clean
   ======================================== */
.button-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

button {
  height: 44px;
  padding: 0 var(--space-2xl);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--transition-spring);
  position: relative;
  overflow: hidden;
}

button:active {
  transform: scale(0.98);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: var(--shadow);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button-secondary {
  background: var(--bg-tertiary);
  color: var(--text);
  border: 2px solid var(--border);
}

.button-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ========================================
   メッセージボックス - Modern Alerts
   ======================================== */
.error-box,
.warning-box {
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
  border: 1px solid;
}

.error-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: var(--error);
  color: #991b1b;
}

.warning-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: var(--warning);
  color: #92400e;
}

.error-box ul,
.warning-box ul {
  margin-left: var(--space-lg);
  font-size: var(--font-size-sm);
}

/* ========================================
   結果カード - Modern Data Cards
   ======================================== */
.result-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  position: relative;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: var(--shadow);
}

.result-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.result-card:last-child {
  margin-bottom: 0;
}

.result-card h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: var(--space-lg);
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ========================================
   テーブル - Modern Clean Tables
   ======================================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-tertiary);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  position: relative;
}

th,
td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

td {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s var(--transition-smooth);
}

tbody tr {
  transition: all 0.2s var(--transition-smooth);
}

tbody tr:hover {
  background: var(--bg-secondary);
}

tbody tr:last-child td {
  border-bottom: none;
}

.total-row {
  font-weight: 700 !important;
  background: var(--bg-secondary) !important;
  border-top: 2px solid var(--primary) !important;
  font-size: var(--font-size-base) !important;
}

.best-value {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
  font-weight: 700;
  color: var(--success);
  position: relative;
}

.best-value::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--success);
  border-radius: 0 3px 3px 0;
}

.best-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--success);
  color: white;
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  margin-left: var(--space-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* ========================================
   シナリオセクション
   ======================================== */
.scenario-section {
  margin-bottom: var(--space-lg);
}

.scenario-section:last-child {
  margin-bottom: 0;
}

.scenario-section h3 {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
}

.scenario-section table {
  margin-top: var(--space-md);
}

/* ========================================
   結論表示 - Highlighted Section
   ======================================== */
.conclusion-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.conclusion-card::after {
  content: '✓';
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 60px;
  color: var(--primary);
  opacity: 0.08;
  font-weight: bold;
}

.conclusion-content {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.conclusion-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow);
  transition: all 0.3s var(--transition-smooth);
}

.conclusion-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.conclusion-item:last-child {
  margin-bottom: 0;
}

.conclusion-item h4 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--primary);
  letter-spacing: -0.01em;
}

.best-plan {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.best-plan strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05em;
}

.difference {
  color: var(--success);
  font-weight: 700;
  font-size: 1.1em;
}

/* 注意事項 */
.disclaimer {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.disclaimer h4 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  color: var(--primary);
  font-weight: 700;
}

.disclaimer ul {
  margin-left: var(--space-xl);
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.disclaimer li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* ========================================
   フッター - Minimalist
   ======================================== */
.footer {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  margin-top: var(--space-2xl);
  color: var(--text-lighter);
  font-size: var(--font-size-xs);
  border-top: 1px solid var(--border);
}

.footer small {
  line-height: 1.8;
  font-weight: 400;
}

/* ========================================
   Links
   ======================================== */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ========================================
   Chart Container
   ======================================== */
.chart-container {
  position: relative;
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
}

canvas {
  display: block;
  max-width: 100%;
}

/* ========================================
   Large Number Display
   ======================================== */
.big-number {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* ========================================
   Animations - Subtle & Modern
   ======================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered animations for result cards - subtle */
.result-card:nth-child(1) {
  animation: slideInRight 0.5s var(--transition-smooth) 0.05s backwards;
}

.result-card:nth-child(2) {
  animation: slideInRight 0.5s var(--transition-smooth) 0.1s backwards;
}

.result-card:nth-child(3) {
  animation: slideInRight 0.5s var(--transition-smooth) 0.15s backwards;
}

.result-card:nth-child(4) {
  animation: slideInRight 0.5s var(--transition-smooth) 0.2s backwards;
}

/* ========================================
   Selection States
   ======================================== */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

/* ========================================
   Scrollbar Styling - Modern
   ======================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}

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

/* ========================================
   Focus States - Accessibility
   ======================================== */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ========================================
   Print Optimization Enhancements
   ======================================== */
@media print {
  .header {
    background: var(--bg-dark) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .result-card,
  .input-group,
  .conclusion-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
