/* ======================================================== */
/* ==== STYLES FOR RECIPE SCALER (recipe-scaler.css) ==== */
/* ======================================================== */

.tool-header { text-align: center; margin-bottom: 2.5rem; }
.tool-header h1 { font-size: 2.5rem; }
.tool-header p { color: var(--text-muted); }

.scaler-ui {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.scaler-column h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

textarea, .result-box {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.result-box {
    min-height: 380px; /* Match textarea rows * line-height approx */
    overflow-y: auto;
}
.result-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.result-box li {
    padding-bottom: 0.5rem;
}
/* This class will be added by JS for scaled amounts */
.result-box strong {
    font-weight: 700;
    color: var(--primary-color);
    background-color: #eef2ff;
    padding: 2px 6px;
    border-radius: 5px;
}
.placeholder-text {
    color: var(--text-muted);
}

.controls-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    font-size: 0.9rem;
}
.control-group input[type="number"] {
    font-family: 'Poppins', sans-serif;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    width: 150px;
}
.button-group {
    margin-left: auto; /* Push buttons to the right */
    flex-direction: row;
}

/* Responsive */
@media(max-width: 768px) {
    .scaler-ui {
        grid-template-columns: 1fr;
    }
    .controls-container {
        flex-direction: column;
        align-items: stretch;
    }
    .control-group input[type="number"] {
        width: 100%;
    }
    .button-group {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}