:root {
  color-scheme: dark;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #0b0d10;
  color: #f5f7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b0d10;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8a93aa;
  font-size: 0.7rem;
  margin: 0 0 8px;
}

.subtitle {
  color: #b1b8c9;
  margin: 8px 0 0;
}

.range-selector {
  display: inline-flex;
  gap: 8px;
  background: #151924;
  border-radius: 999px;
  padding: 6px;
}

.range-button {
  border: none;
  background: transparent;
  color: #b8c1d9;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

.range-button.active {
  background: #2b3142;
  color: #ffffff;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: #11141b;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.metric .value {
  font-size: 2rem;
  margin: 12px 0 4px;
}

.meta {
  color: #9aa3ba;
  font-size: 0.85rem;
  margin: 0;
}

.tank-bar {
  height: 8px;
  background: #1b2030;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 6px;
}

.tank-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  transition: width 0.4s ease;
}

.chart-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-pill {
  padding: 8px 12px;
  background: #1b2130;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #d7def0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #c5ccdf;
}

input,
select {
  background: #0f121a;
  border: 1px solid #272c3d;
  border-radius: 10px;
  padding: 10px 12px;
  color: #f5f7ff;
}

button[type='submit'] {
  border: none;
  background: #ef476f;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.form-status {
  margin-top: 12px;
  color: #7c86a1;
  font-size: 0.85rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.detail-card {
  background: #161b26;
  padding: 12px 16px;
  border-radius: 14px;
}

.detail-card h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #9aa3ba;
}

.detail-card p {
  margin: 0;
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}
