/* AI ROI Calculator */

:root {
  --primary: #0c4a6e;
  --primary-light: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --surface: #ffffff;
  --surface-alt: #f0f9ff;
  --on-surface: #0c4a6e;
  --on-surface-secondary: #64748b;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  min-height: 100vh;
  color: var(--on-surface);
}

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

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--on-surface-secondary);
  font-size: 0.9rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Inputs */
.inputs-section, .results-section, .breakdown-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.inputs-section h2, .results-section h2, .breakdown-section h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.input-group label {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.result-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.result-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.result-label {
  font-size: 0.8rem;
  color: var(--on-surface-secondary);
}

.recommendation {
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}

/* Table */
#year-table {
  width: 100%;
  border-collapse: collapse;
}

#year-table th,
#year-table td {
  padding: 12px;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
}

#year-table th {
  background: var(--surface-alt);
  font-weight: 600;
  text-align: center;
}

#year-table tr:nth-child(even) {
  background: var(--surface-alt);
}

#year-table td:first-child,
#year-table th:first-child {
  text-align: center;
}

.positive {
  color: #10b981;
}

.negative {
  color: #ef4444;
}