
:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --primary-color: #e82127;
  --card-bg: #f5f7fa;
  --input-bg: #ffffff;
  --border-color: #ccc;
  --radius: 10px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-color);
  margin: 0;
  padding: 0;
  color: var(--text-color);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #555;
}

.logo {
  width: 90px;
  display: block;
  margin: 0 auto 0.5rem auto;
}

.toggle-theme {
  display: block;
  margin: 1rem auto 2rem auto;
  padding: 0.5rem 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
}

.section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(232, 33, 39, 0.15);
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: #c4141c;
}

.chart-section {
  padding: 2rem;
  background: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

#comparisonChart {
  max-width: 100%;
}

#totals {
  display: flex;
  justify-content: space-around;
  font-size: 1.1rem;
  margin-top: 1.2rem;
  font-weight: 500;
  gap: 1rem;
}
