/* MOL-GOD Statistical Calculator — Styles */
.stat-calc-accordion .accordion-content { padding: 20px; }
.stat-calc-accordion .badge.stat {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
}
.stat-intro p { margin: 0 0 14px; color: #475569; font-size: 13px; }

.stat-form label { display: block; font-weight: 600; margin-bottom: 6px; color: #2c3e50; font-size: 14px; }
.stat-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
}
.stat-form textarea:focus { outline: none; border-color: #3498db; box-shadow: 0 0 0 3px rgba(52,152,219,0.2); }
.stat-hint { font-size: 12px; color: #7f8c8d; margin-top: 4px; }

.stat-buttons { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-stat-calc {
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.btn-stat-calc:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.3); }
.btn-stat-example, .btn-stat-clear {
    padding: 10px 14px;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.btn-stat-example:hover, .btn-stat-clear:hover { background: #d5dbdb; }

.stat-results { margin-top: 20px; }
.stat-results.hidden { display: none; }
.stat-output h4 { margin: 0 0 14px; color: #2c3e50; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.stat-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}
.stat-symbol { font-size: 13px; color: #64748b; font-weight: 600; font-family: 'Georgia', serif; }
.stat-value { font-size: 18px; font-weight: 800; color: #1e293b; margin: 4px 0 2px; }
.stat-cell .stat-hint { font-size: 10px; color: #94a3b8; margin: 0; }

.stat-ci {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    text-align: center;
}
.stat-ci h5 { margin: 0 0 8px; color: #166534; }
.stat-ci-value { font-size: 24px; font-weight: 800; color: #14532d; font-family: 'Georgia', serif; }
.stat-ci-range { font-size: 14px; color: #15803d; margin-top: 4px; }
.stat-ci-hint { font-size: 11px; color: #64748b; margin-top: 4px; }

.stat-outlier {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid;
}
.stat-outlier.outlier-detected { background: #fef2f2; border-color: #dc2626; }
.stat-outlier.outlier-none { background: #f0fdf4; border-color: #16a34a; }
.stat-outlier h5 { margin: 0 0 6px; font-size: 14px; }
.stat-outlier p { margin: 4px 0; font-size: 13px; }
.outlier-verdict { font-weight: 600; }

.stat-actions { margin-top: 14px; display: flex; gap: 8px; }
.stat-actions .btn-action {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.stat-actions .btn-action:hover { background: #f1f5f9; }

.stat-error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 12px;
    border-radius: 6px;
    color: #991b1b;
}

.stat-formulas { margin-top: 20px; }
.stat-formulas summary { cursor: pointer; font-weight: 600; color: #3498db; padding: 8px; background: #ecf0f1; border-radius: 6px; }
.stat-formulas ul { margin: 12px 0; padding-left: 24px; }
.stat-formulas li { margin: 6px 0; font-size: 13px; }
.stat-formulas code { background: #1e293b; color: #e2e8f0; padding: 2px 6px; border-radius: 3px; font-size: 12px; }

.stat-calc-accordion .hidden { display: none; }

@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
