.sfc-calculator-wrapper {
    background: linear-gradient(to bottom right, #eff6ff, #f3f4f6);
    padding: 3rem 1rem;
    min-height: 100vh;
}

.sfc-calculator-container {
    max-width: 1400px;
    margin: 0 auto;
}

.sfc-calculator-logo {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.sfc-calculator-logo img {
    max-width: 300px;
    height: auto;
}

.sfc-calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sfc-calculator-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.sfc-calculator-header p {
    color: #6b7280;
    font-size: 1rem;
}

#sfc-error-global {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.sfc-model-row {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.sfc-row-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.sfc-form-group {
    display: flex;
    flex-direction: column;
}

.sfc-form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.sfc-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.sfc-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sfc-input:invalid,
.sfc-input.out-of-range {
    border-color: #ef4444;
}

.sfc-input:invalid:focus,
.sfc-input.out-of-range:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.sfc-form-group small {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.sfc-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sfc-button-add {
    width: 100%;
    background: #2563eb;
    color: white;
    margin-top: 1rem;
}

.sfc-button-add:hover {
    background: #1d4ed8;
}

.sfc-button-remove {
    background: #dc2626;
    color: white;
}

.sfc-button-remove:hover {
    background: #b91c1c;
}

.sfc-button .dashicons {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.sfc-oor-legend {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    text-align: center;
}

.sfc-row-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.sfc-row-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.sfc-row-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 1rem;
}

.sfc-row-results {
    margin-top: 1rem;
}

.sfc-results-section {
    margin-bottom: 1rem;
}

.sfc-results-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.sfc-results-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sfc-result-item {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid;
    text-align: center;
}

.sfc-result-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.sfc-result-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.sfc-result-gray {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.sfc-result-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-align: center;
    line-height: 1.2;
}

.sfc-result-value {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.sfc-result-blue .sfc-result-value {
    color: #1e40af;
}

.sfc-result-green .sfc-result-value {
    color: #15803d;
}

.sfc-result-gray .sfc-result-value {
    color: #374151;
}

@media (max-width: 768px) {
    .sfc-row-inputs {
        grid-template-columns: 1fr;
    }

    .sfc-results-grid {
        flex-direction: column;
    }

    .sfc-result-item {
        min-width: 100%;
    }
}
