/**
 * SimpleButHow - Calculators & Blueprint UI Styling
 * Fully Accessible, High Contrast & Responsive
 * Version: 2.0.0
 */

.sbh-calc-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 28px;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sbh-calc-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.sbh-calc-title {
    margin: 0 0 8px 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sbh-calc-subtitle {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sbh-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 768px) {
    .sbh-calc-grid {
        grid-template-columns: 1fr;
    }
}

.sbh-form-group {
    margin-bottom: 18px;
}

.sbh-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.sbh-form-group select,
.sbh-form-group input[type="number"],
.sbh-form-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sbh-form-group select:focus,
.sbh-form-group input:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.sbh-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.sbh-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.sbh-checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

/* Results Section */
.sbh-results-panel {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
}

.sbh-results-panel h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
}

.sbh-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.sbh-metric-row:last-child {
    border-bottom: none;
}

.sbh-metric-label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.sbh-metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.sbh-metric-highlight {
    color: #1e40af;
}

/* Badges */
.sbh-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sbh-badge-green {
    background-color: #dcfce7;
    color: #14532d;
    border: 1px solid #86efac;
}

.sbh-badge-red {
    background-color: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

.sbh-badge-yellow {
    background-color: #fef9c3;
    color: #713f12;
    border: 1px solid #fde047;
}

.sbh-badge-blue {
    background-color: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #93c5fd;
}

/* Specs Grid */
.sbh-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.sbh-spec-item {
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.sbh-spec-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sbh-spec-val {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
}

.sbh-disclaimer {
    background: #f8fafc;
    border-left: 3px solid #64748b;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
    margin-top: 18px;
}
