/* Flat, functional design focused on data visualization */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Toggle Switch Styles */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.toggle-checkbox {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #cbd5e0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.toggle-switch:hover {
    background-color: #a0aec0;
}

.toggle-slider {
    position: absolute;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-checkbox:checked + .toggle-switch {
    background-color: #3182ce;
}

.toggle-checkbox:checked + .toggle-switch:hover {
    background-color: #2b77c7;
}

.toggle-checkbox:checked + .toggle-switch .toggle-slider {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
}

.parameter-description {
    font-size: 11px;
    color: #718096;
    margin-top: 4px;
    font-style: italic;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #2d3748;
    background: #f7fafc;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
    max-width: 100vw;
}

/* Left Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #fafbfc;
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

/* Preset Buttons */
.preset-section {
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.preset-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preset-description {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.3;
}


.preset-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.preset-btn {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    color: #4a5568;
}

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

.preset-btn.active {
    background: #edf2f7;
    border-color: #a0aec0;
    color: #2d3748;
}

.preset-btn.featured {
    background: linear-gradient(145deg, #ff6b6b 0%, #ee5a24 100%);
    border: 1px solid #ff6b6b;
    color: white;
    font-weight: 600;
    position: relative;
}

.preset-btn.featured:hover {
    background: linear-gradient(145deg, #ff5252 0%, #ff3d00 100%);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.preset-btn.featured.active {
    background: linear-gradient(145deg, #ff3838 0%, #ff9500 100%);
    border-color: #ff3838;
    box-shadow: 0 2px 8px rgba(255, 56, 56, 0.4);
}

/* Parameters Section */
.parameters-section {
    padding: 12px 20px 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.parameters-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parameter-group {
    margin-bottom: 12px;
}

.parameter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2d3748;
}

.parameter-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    margin-bottom: 6px;
}

.parameter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4299e1;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.parameter-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4299e1;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.parameter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    color: #2d3748;
    margin-bottom: 6px;
}

.parameter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    color: #2d3748;
    margin-bottom: 6px;
}

.radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4a5568;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #718096;
}

/* Tab Interface */
.tab-navigation {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    padding: 8px 16px;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s;
    position: relative;
}

.tab-button:hover {
    color: #4299e1;
    background: #f7fafc;
}

.tab-button.active {
    color: #2d3748;
    background: white;
    border-bottom: 2px solid #4299e1;
    font-weight: 600;
}

.tab-content {
    margin-top: 12px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.sub-parameter-group {
    margin-bottom: 16px;
}

.sub-parameter-group .parameter-label {
    font-size: 11px;
    margin-bottom: 6px;
}

.radio-option small {
    display: block;
    font-size: 10px;
    color: #a0aec0;
    margin-top: 2px;
    margin-left: 18px;
}

/* Historical Periods List */
.historical-periods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.period-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.period-option:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.period-option input[type="radio"]:checked + .period-content {
    color: #2d3748;
}

.period-option input[type="radio"]:checked + .period-content .period-title {
    font-weight: 600;
    color: #4299e1;
}

.period-option:has(input[type="radio"]:checked) {
    border-color: #4299e1;
    background: #ebf8ff;
}

.period-content {
    flex: 1;
}

.period-title {
    font-size: 12px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 2px;
}

.period-description {
    font-size: 10px;
    color: #718096;
}

.period-option input[type="radio"] {
    margin: 2px 0 0 0;
    flex-shrink: 0;
}


/* Tooltip */
.tooltip {
    cursor: help;
    color: #a0aec0;
    margin-left: 4px;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -8px;
    right: 25px;
    background: #1a202c;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    max-width: 200px;
    z-index: 1000;
    word-wrap: break-word;
}


/* Formula Header */
.formula-header {
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.formula-content {
    flex: 1;
    text-align: center;
}

.formula-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.formula-container-main {
    background: #fafbfc;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin: 0 auto;
    max-width: 500px;
    position: relative;
}


.formula-info-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formula-info-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #4299e1;
    transform: scale(1.1);
}

.formula-info-box {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    color: #4a5568;
}

.info-item strong {
    color: #2d3748;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    margin: 20px;
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
    padding: 4px;
    line-height: 1;
}

.close-btn:hover {
    color: #2d3748;
}

.modal-body {
    padding: 20px 24px 24px;
}

.parameter-explanation {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formula-display {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.param-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fefefe;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.param-item:hover {
    border-color: #4299e1;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.1);
}

.param-item.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.param-item.primary .param-name {
    color: white;
}

.param-item.primary .param-desc {
    color: rgba(255, 255, 255, 0.9);
}

.param-symbol {
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.param-details {
    flex: 1;
}

.param-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.param-desc {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.current-value {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 16px;
    display: inline-block;
}

/* Formula Legend in Sidebar */
.formula-legend-sidebar {
    background: #fafbfc;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    color: #4a5568;
    line-height: 1.5;
}

.formula-legend-sidebar div {
    margin-bottom: 4px;
}

.formula-legend-sidebar strong {
    color: #2d3748;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

/* Metrics Section */
.metrics-section {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.metrics-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.l1-estimation-section {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.l1-estimation-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.chart-container-single {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    height: 300px;
    margin-bottom: 12px;
}

.chart-container-single canvas {
    width: 100%;
    height: 250px;
}

.estimation-explanation {
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metric-card {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.metric-label {
    font-size: 11px;
    font-weight: 500;
    color: #718096;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
    font-family: 'SF Mono', Monaco, monospace;
}

.metric-unit {
    font-size: 10px;
    color: #a0aec0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.metric-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.metric-status.excellent {
    background: #c6f6d5;
    color: #22543d;
}

.metric-status.good {
    background: #faf089;
    color: #744210;
}

.metric-status.poor {
    background: #fed7d7;
    color: #742a2a;
}

/* Charts Section */
.charts-section {
    padding: 20px;
    background: white;
    position: relative;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-container canvas {
    flex: 1;
    width: 100%;
    height: 300px;
}


/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #4a5568;
    z-index: 1000;
    border-radius: 8px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
        min-height: 1200px;
    }

    .chart-container {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .main-content {
        height: auto;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: auto;
    }

    .chart-container {
        min-height: 240px;
    }
}

/* MathJax adjustments */
.MathJax {
    font-size: 16px !important;
}

/* Metrics Explanation */
.metrics-explanation {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.metrics-explanation h4 {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

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

.explanation-item {
    background: #fafbfc;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    line-height: 1.3;
    color: #4a5568;
}

.explanation-item strong {
    color: #2d3748;
    display: block;
    margin-bottom: 3px;
}

.threshold {
    display: block;
    font-size: 10px;
    color: #718096;
    margin-top: 3px;
    font-style: italic;
}

/* Focus states for accessibility */
.parameter-slider:focus,
.parameter-select:focus,
.preset-btn:focus,
.run-button:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar,
.charts-section::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.charts-section::-webkit-scrollbar-track {
    background: #f7fafc;
}

.sidebar::-webkit-scrollbar-thumb,
.charts-section::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.charts-section::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Preset Tooltip Styles */
.preset-btn {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preset-tooltip-trigger {
    opacity: 1;
    font-size: 14px;
    color: #3182ce;
    margin-left: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 50%;
    background: rgba(49, 130, 206, 0.1);
    border: 1px solid rgba(49, 130, 206, 0.2);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
}

.preset-tooltip-trigger:hover {
    opacity: 1;
    color: #2c5282;
    background: rgba(49, 130, 206, 0.2);
    border-color: rgba(49, 130, 206, 0.4);
    transform: scale(1.1);
}

.preset-btn.featured .preset-tooltip-trigger {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.preset-btn.featured .preset-tooltip-trigger:hover {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.preset-tooltip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.preset-tooltip-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preset-tooltip-header {
    background: #2d3748;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e2e8f0;
}

.preset-tooltip-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.preset-tooltip-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.preset-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.preset-tooltip-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.preset-detail-section {
    margin-bottom: 20px;
}

.preset-detail-section h5 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 4px;
}

.preset-detail-section:last-child {
    margin-bottom: 0;
}

.preset-parameters {
    display: flex;
    gap: 16px;
    background: #f7fafc;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.preset-param {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #2d3748;
}

.preset-formula {
    background: #f7fafc;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
    border-left: 4px solid #667eea;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.preset-optimization {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.preset-optimization h6 {
    margin: 0 0 6px 0;
    color: #234e52;
    font-size: 12px;
    font-weight: 600;
}

.preset-optimization-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 11px;
    color: #2d3748;
}

.preset-optimization-list li {
    padding: 2px 0;
    display: flex;
    align-items: center;
}

.preset-optimization-list li::before {
    content: "✓";
    color: #38a169;
    font-weight: bold;
    margin-right: 6px;
}

.preset-performance {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.preset-performance h6 {
    margin: 0 0 8px 0;
    color: #742a2a;
    font-size: 12px;
    font-weight: 600;
}

.preset-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    font-size: 11px;
    color: #2d3748;
}

.preset-metric-value {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    color: #2b6cb0;
}

.preset-use-case {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
    color: #234e52;
    font-size: 12px;
    line-height: 1.4;
}

/* New objective and constraints styles */
.preset-objective, .preset-constraints, .preset-risk {
    margin-bottom: 12px;
}

.preset-objective h6, .preset-constraints h6, .preset-risk h6 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 12px;
    font-weight: 600;
}

.preset-objective p, .preset-constraints p, .preset-risk p {
    margin: 0;
    color: #4a5568;
    font-size: 11px;
    line-height: 1.4;
}

.preset-tradeoffs {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.preset-tradeoffs > p {
    color: #e65100;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.preset-tradeoffs h6 {
    margin: 12px 0 6px 0;
    color: #e65100;
    font-size: 12px;
    font-weight: 600;
}

/* Research methodology styles */
.preset-methodology, .preset-data-source, .preset-research-status {
    margin-bottom: 12px;
}

.preset-methodology h6, .preset-data-source h6, .preset-research-status h6 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 12px;
    font-weight: 600;
}

.preset-methodology p, .preset-data-source p, .preset-research-status p {
    margin: 0;
    color: #4a5568;
    font-size: 11px;
    line-height: 1.4;
}