body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

header h1 {
    color: #005a31;
    margin-bottom: 0.5rem;
}

h2, h3, h4 {
    color: #005a31;
}

h2 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 2rem;
}

h3 {
    margin-top: 1.5rem;
}

.chart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: center; /* Center items in the row */
}

.chart-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px; /* Prevent single chart from becoming too wide */
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.chart-container-full {
     flex-basis: 100%;
     background: #fdfdfd;
     padding: 1.5rem;
     border-radius: 8px;
     border: 1px solid #e8e8e8;
}


.chart-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#scenario-select, #time-horizon, #custom-rate-input-1, #custom-rate-input-2, #custom-rate-input-3 {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 150px;
}

.scenario-definitions {
    margin-top: 1rem;
    padding: 1rem;
    background: #e9f5ee;
    border-left: 4px solid #4CAF50;
    border-radius: 4px;
}

.scenario-definitions p {
    margin: 0.5rem 0;
}


#appendix-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #005a31;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

#appendix-toggle:hover {
    background-color: #004225;
}

.appendix #appendix-content {
    background-color: #fbfbfb;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    margin-top: 1rem;
    border-radius: 8px;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    overflow: hidden;
    max-height: 5000px; /* Large value */
    opacity: 1;
}

.appendix #appendix-content.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border: none;
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
    font-size: 0.8rem;
    color: #888;
}