.breakeven-calculator {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
}

.input-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 10px;
}

.section-icon {
    font-size: 20px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.form-item label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.form-item input {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-item input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-item input::placeholder {
    color: #94a3b8;
}

.calc-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.calc-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.breakpoint-display {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.breakpoint-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakpoint-label {
    font-size: 20px;
    font-weight: 700;
    color: #64748b;
}

.breakpoint-value {
    font-size: 48px;
    font-weight: 700;
    color: #334155;
}

.breakpoint-unit {
    font-size: 18px;
    color: #64748b;
}

.results-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

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

.result-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.result-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.result-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.result-value {
    font-size: 22px;
    font-weight: 700;
    color: #8b5cf6;
}

.chart-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.revenue {
    background: #3b82f6;
}

.legend-dot.cost {
    background: #ef4444;
}

.legend-dot.break {
    background: #8b5cf6;
}

.sensitivity-table {
    width: 100%;
    border-collapse: collapse;
}

.sensitivity-table th,
.sensitivity-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.sensitivity-table th {
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.sensitivity-table td {
    font-size: 14px;
    color: #334155;
}

.sensitivity-table .break-even-row {
    background: #f5f3ff;
}

.sensitivity-table .break-even-row td {
    font-weight: 600;
    color: #8b5cf6;
}

@media (max-width: 768px) {
    .breakeven-calculator {
        padding: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-legend {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .breakpoint-value {
        font-size: 36px;
    }
}