/* Styles for Recipe Ingredient Adjuster */
.calcufacil-recipe_ingredient_adjuster.calcufacil-container.enhanced-recipe-adj-calc {
    max-width: 900px;
    margin: 25px auto;
    background: #f7fcfc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 25px;
    font-family: 'Arial', sans-serif;
}

.calcufacil-recipe_ingredient_adjuster .calcufacil-left.calculator-form {
    flex: 1 1 45%;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.06);
}

.calcufacil-recipe_ingredient_adjuster .calcufacil-right.results.enhanced-recipe-adj-results {
    flex: 1 1 55%;
    min-width: 350px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #e0f0f0;
    box-shadow: 0 2px 7px rgba(0,0,0,0.06);
}

.calcufacil-recipe_ingredient_adjuster .calculator-form h3 {
    font-size: 20px; color: #00838f; margin-top:0; margin-bottom: 10px; font-weight: 600;
}
.calcufacil-recipe_ingredient_adjuster .calculator-form .description,
.calcufacil-recipe_ingredient_adjuster .calculator-form .instruction {
    font-size: 14px; color: #26a69a; margin-bottom: 15px; line-height: 1.5;
}
.calcufacil-recipe_ingredient_adjuster .calculator-form .instruction { font-size: 0.9em; font-style:italic;}

.calcufacil-recipe_ingredient_adjuster .calculator-form fieldset {
    border: 1px solid #b2dfdb;
    padding: 15px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    background-color: #fcfcfc;
}
.calcufacil-recipe_ingredient_adjuster .calculator-form legend {
    font-weight: 600; color: #00796b; padding: 0 10px; font-size: 1.1em;
    display: flex; align-items: center; gap: 8px;
}
.calcufacil-recipe_ingredient_adjuster .calculator-form legend i { color: #4db6ac; }

.calcufacil-recipe_ingredient_adjuster .input-group { margin-bottom: 12px; display: flex; flex-direction: column; }
.calcufacil-recipe_ingredient_adjuster .input-group label {
    font-weight: 500; color: #00796b; margin-bottom: 5px; font-size: 13.5px;
}
.calcufacil-recipe_ingredient_adjuster .input-group input[type="text"],
.calcufacil-recipe_ingredient_adjuster .input-group select {
    width: 100%; padding: 9px; border: 1px solid #80cbc4; border-radius: 4px;
    font-size: 14px; box-sizing: border-box; background-color: #ffffff;
}

.calcufacil-recipe_ingredient_adjuster .ingredients-fieldset .ingredient-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Name, Quantity, Unit */
    gap: 10px;
    margin-bottom: 8px;
}
.calcufacil-recipe_ingredient_adjuster .ingredients-fieldset .ingredient-row input {
    width: 100%;
    padding: 8px;
    border: 1px solid #c8e6c9; /* Lighter green border */
    border-radius: 4px;
    box-sizing: border-box;
}
.calcufacil-recipe_ingredient_adjuster .ingredients-fieldset .ingredient-row input:focus {
    border-color: #4CAF50; /* Green on focus */
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}


.calcufacil-recipe_ingredient_adjuster button[type="submit"] {
    background: #00796b; color: #fff; padding: 11px 22px; border: none; border-radius: 5px;
    cursor: pointer; font-size: 16px; width: 100%; margin-top: 10px; font-weight: bold;
}
.calcufacil-recipe_ingredient_adjuster button[type="submit"]:hover { background: #00695c; }

/* Results Area Styling */
.calcufacil-recipe_ingredient_adjuster .results.enhanced-recipe-adj-results h2 {
    font-size: 21px; color: #00838f; text-align: center; margin-top:0; margin-bottom: 18px;
}
.calcufacil-recipe_ingredient_adjuster .recipe-adj-summary {
    background-color: #e0f2f1; border: 1px solid #b2dfdb; border-radius: 6px;
    padding: 15px; margin-bottom: 20px;
}
.calcufacil-recipe_ingredient_adjuster .recipe-adj-summary ul {
    list-style: none; padding-left: 0; font-size: 1em;
}
.calcufacil-recipe_ingredient_adjuster .recipe-adj-summary li {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px dotted #a7d8d4; color: #00796b;
}
.calcufacil-recipe_ingredient_adjuster .recipe-adj-summary li:last-child { border-bottom: none; }
.calcufacil-recipe_ingredient_adjuster .recipe-adj-summary .value { font-weight: 500; }

.calcufacil-recipe_ingredient_adjuster .adjusted-ingredients-list h4 {
    font-size: 18px;
    color: #00796b;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #b2dfdb;
    padding-bottom: 5px;
}
.calcufacil-recipe_ingredient_adjuster .adjusted-ingredients-list ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}
.calcufacil-recipe_ingredient_adjuster .adjusted-ingredients-list li {
    margin-bottom: 8px;
    color: #3f51b5; /* Blue for adjusted ingredients */
    font-size: 1.05em;
}
.calcufacil-recipe_ingredient_adjuster .adjusted-ingredients-list .adjusted-quantity {
    font-weight: bold;
    color: #2e7d32; /* Green for emphasis */
}
.calcufacil-recipe_ingredient_adjuster .adjusted-ingredients-list .no-ingredients-message {
    text-align: center;
    padding: 15px;
    background-color: #ffe0b2; /* Light orange */
    border: 1px dashed #ffb74d; /* Orange */
    border-radius: 5px;
    color: #e65100; /* Dark orange */
}


.calcufacil-recipe_ingredient_adjuster .disclaimer-box.recipe-adj-disclaimer {
    margin-top: 20px; padding: 12px; background-color: #f0f7f7;
    border: 1px solid #d0e0e0; border-left: 3px solid #4db6ac; border-radius: 4px; font-size: 0.85em;
}
.calcufacil-recipe_ingredient_adjuster .disclaimer-box h4 { margin-top: 0; margin-bottom: 8px; color: #00796b; }
.calcufacil-recipe_ingredient_adjuster .disclaimer-box ul { list-style: disc; margin-left: 18px; padding-left: 0; color: #26a69a; line-height: 1.5; }
.calcufacil-recipe_ingredient_adjuster .disclaimer-box a {
    color: #00796b; /* Link color */
    text-decoration: underline;
}
.calcufacil-recipe_ingredient_adjuster .disclaimer-box a:hover {
    color: #00695c;
}


.calcufacil-recipe_ingredient_adjuster .initial-message {
    text-align: center; padding: 20px; background-color: #e0f2f1;
    border: 1px dashed #b2dfdb; border-radius: 5px; margin-top: 15px; color: #26a69a;
}
@media (max-width: 900px) {
    .calcufacil-recipe_ingredient_adjuster.calcufacil-container.enhanced-recipe-adj-calc { flex-direction: column; }
    .calcufacil-recipe_ingredient_adjuster .calcufacil-left.calculator-form,
    .calcufacil-recipe_ingredient_adjuster .calcufacil-right.results.enhanced-recipe-adj-calc {
        flex-basis: 100%; min-width: 100%; margin-bottom: 20px;
    }
    .calcufacil-recipe_ingredient_adjuster .calcufacil-right.results.enhanced-recipe-adj-calc { margin-bottom: 0; }
}

@media (max-width: 600px) {
    .calcufacil-recipe_ingredient_adjuster .ingredients-fieldset .ingredient-row {
        grid-template-columns: 1fr; /* Stack columns on small screens */
        gap: 5px;
    }
}