/* Main Container */
.sara-roi-calculator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1a1a1a;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff, #f8f9fa);
}

/* Header */
.sara-header {
    margin-bottom: 30px;
}
.sara-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1e293b;
}
.sara-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.client-view-label {
    display: inline-block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

/* Grid Layout */
.sara-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 992px) {
    .sara-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Input Groups */
.sara-input-group {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sara-input-group h2 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sara-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.sara-input-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sara-input-label span {
    font-size: 12px;
    color: #64748b;
}
.sara-input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}
.sara-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Sidebar Cards */
.sara-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sara-impact-card,
.sara-formula-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sara-impact-card h3,
.sara-formula-card summary {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 15px 0;
}

/* Metrics */
.sara-metric-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sara-metric {
    padding: 12px;
    border-radius: 8px;
    background-color: #f8fafc;
}
.sara-metric.highlight {
    background-color: #eff6ff;
}
.metric-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}
.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
}
.metric-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}
.sara-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 8px 0;
}

/* Formulas */
.sara-formula-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sara-formula-card summary::-webkit-details-marker {
    display: none;
}
.sara-formula-card summary::after {
    content: "+";
    font-size: 18px;
    color: #94a3b8;
}
.sara-formula-card[open] summary::after {
    content: "-";
}
.formula-sub {
    font-size: 12px;
    color: #94a3b8;
}

.formula-content {
    margin-top: 10px;
}
.formula-row {
    margin-bottom: 12px;
}
.formula-row.muted {
    opacity: 0.7;
}
.formula-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.formula-expr {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    overflow-x: auto;
}
.formula-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* Footer */
.sara-footer {
    margin-top: 30px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}