/* 
 * RMCPro v3.2 — Smart Material Calculator
 * Workbench UI Styling
 */

#smc-modal-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.smc-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.smc-section-header {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.smc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.smc-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-4);
}

/* Results Section - Premium Look */
.smc-result-section {
    background: linear-gradient(135deg, var(--color-slate-50) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border-medium);
}

.smc-efficiency-bar {
    width: 100%;
    height: 8px;
    background: var(--color-slate-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-2);
}

.smc-efficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-400, #34d399), var(--color-primary-600, #059669));
    transition: width 0.5s ease-out;
}

.smc-stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px dashed var(--border-light);
}

.smc-stat-row:last-child {
    border-bottom: none;
}

.smc-stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.smc-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.smc-grand-result {
    margin-top: var(--space-4);
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.smc-grand-label {
    font-size: 0.875rem;
    color: var(--color-primary-900);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.smc-grand-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-600);
}

/* Preview Before Apply */
.smc-preview-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-slate-50);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-medium);
}

.smc-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smc-preview-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.smc-preview-val {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.smc-preview-val.old {
    color: var(--text-secondary);
    text-decoration: line-through;
}

.smc-preview-val.diff {
    color: var(--color-warning);
}

.smc-preview-val.diff.down {
    color: var(--color-primary-500);
}

.smc-preview-val.diff.up {
    color: var(--color-danger);
}

/* Alert Box for Errors */
.smc-alert {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--color-red-soft);
    color: var(--color-red-text);
    font-size: 0.875rem;
    display: none;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.smc-alert i {
    font-size: 1rem;
}

/* Validation styling on inputs */
.form-input.error {
    border-color: var(--color-danger);
    background-color: var(--color-red-soft);
}
