body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

h1 {
    color: #1a202c;
    font-weight: 600;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.position-toggles {
    display: flex;
    gap: 1.5rem;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fee-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.total-fee-display {
    background-color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.total-fee-display .metric-label {
    font-size: 0.875rem;
    color: #718096;
    display: block;
    margin-bottom: 0.25rem;
}

.total-fee-display .metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

input[type="range"] {
    width: 200px;
}

input[type="range"]:disabled {
    opacity: 0.5;
}

button {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #e0e0e0;
    cursor: pointer;
    font-weight: 500;
}

button:hover {
    background-color: #d0d0d0;
}

select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

label {
    font-weight: 500;
}

input[type="file"] {
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 4px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.position-card {
    background: #f9fafb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
}

.position-card h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #2d3748;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric {
    background-color: #fff;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.metric-label {
    font-size: 0.875rem;
    color: #718096;
    display: block;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.chart-container {
    margin-top: 1rem;
}
