/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
    line-height: 1.5;
    color: #2d3748;
    background: oklch(0.99 0 0);
    min-height: 100vh;
}

/* Container */
.container {
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px;
}

section {
  margin: 24px 0;
}


/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}


/* Buttons */
.btn {
  appearance: none;
  background: white;
  border-radius: 0;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.btn:hover {
    border-color: #cbd5e0;
}


.link-btn {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}


/* Table Styles */
.table-container {
  overflow-x: auto;
}

.projects-table {
  width: 100%;
  border: 1px solid #e2e8f0;
  border: 1px solid black;
  border-collapse: collapse;
  border-spacing: 0;
}

.projects-table th,
.projects-table td {
    text-align: left;
}

.projects-table th {
    background: #f8fafc;
    border: 1px solid black;
    color: #4a5568;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
}

.projects-table th.is-numeric {
  text-align: right;
}

.projects-table td {
    border: 1px solid black;
    padding: 0;
}

.input-field {
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.25;
  padding: 8px;
  width: 100%;
}

.input-field.is-number {
  text-align: right;
}

.input-field:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.roi-cell {
  color: #667eea;
}

.roi-cell span {
  box-sizing: border-box;
  display: inline-block;
  font-size: 14px;
  padding: 8px;
  text-align: right;
  width: 100%;
}

.input-select {
  appearance: none;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
  outline: 0;
  padding: 8px 16px 8px 8px;
  width: 100%;
}

.input-select:focus,
.input-select:focus-visible {
  outline: 0;
  border-color: #667eea;
}

.input-select.is-numeric {
  text-align: right;
}


.empty-state {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem;
}


/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.summary-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

/* New Responsive Chart Styles */
.chart-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
}

