.batch-calculator {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.batch-size-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.batch-size-inputs input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.batch-size-inputs select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.results-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.summary-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.summary-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
}

.cost-large {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.ingredients-table {
    margin-top: 2rem;
}

.ingredients-table table {
    width: 100%;
    border-collapse: collapse;
}

.ingredients-table th,
.ingredients-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.ingredients-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.ingredients-table tr:hover {
    background: #f8f9fa;
}

.shelf-life-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.shelf-life-note h3 {
    margin-top: 0;
    color: #856404;
}

.shelf-life-note p {
    margin-bottom: 0;
    color: #856404;
}

/* Ingredients List */
.ingredients-list {
    margin-bottom: 1rem;
}

.ingredient-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.ingredient-row input,
.ingredient-row select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.ingredient-row .ingredient-name {
    width: 100%;
}

.ingredient-row .ingredient-amount {
    width: 100%;
}

.ingredient-row .ingredient-unit {
    width: 100%;
}

.btn-remove-ingredient {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-remove-ingredient:hover {
    background: #dc2626;
}

.btn-add-ingredient {
    background: #44c5f5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-add-ingredient:hover {
    background: #2ba8d4;
}

/* Price Import Section */
.price-import {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.price-import h2 {
    margin-top: 0;
}

.import-options {
    margin-top: 1rem;
}

.import-options textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: monospace;
    resize: vertical;
}

.import-options input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .batch-calculator,
    .results-section,
    .price-import {
        margin: 1rem;
        padding: 1rem;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .batch-size-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .ingredient-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .ingredient-row .btn-remove-ingredient {
        width: 100%;
    }
}

