/* Food4Kids - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    padding: 20px;
}

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

/* Header */
header {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-left {
    flex: 1;
}

h1 {
    color: #2c3e50;
    font-size: 28px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 8px 12px;
}

.language-option {
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecf0f1;
    color: #34495e;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.language-option:hover {
    transform: translateY(-1px);
    background: #3498db;
    color: white;
}

.language-option.active {
    background: #3498db;
    color: white;
}

/* Kids Selector */
.kids-selector {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.kids-selector-label {
    font-size: 16px;
    font-weight: 600;
}

.kids-input {
    width: 80px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    text-align: center;
}

/* Settings Button */
.settings-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 15px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.settings-btn:hover {
    background: #7f8c8d;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Form Elements */
.input-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

select, input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

select:focus, input:focus {
    outline: none;
    border-color: #3498db;
}

/* Add Food Section */
.add-food-section {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 150px;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    flex-direction: column;
}

.toggle-switch {
    position: relative;
    width: 100%;
    height: 40px;
    background: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #27ae60;
    border-radius: 6px;
    transition: transform 0.3s, background 0.3s;
    z-index: 0;
}

.toggle-switch.imported .toggle-slider {
    transform: translateX(100%);
    background: #e67e22;
}

.toggle-labels {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.toggle-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    z-index: 1;
    pointer-events: none;
}

.toggle-switch.domestic .toggle-label:first-child,
.toggle-switch.imported .toggle-label:last-child {
    color: white;
}

/* Buttons */
.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.btn:hover {
    background: #2980b9;
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.download-btn {
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.download-btn:hover {
    background: #3498db;
    color: white;
}

.generate-report-btn {
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.generate-report-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.16);
    background: linear-gradient(135deg, #16a085 0%, #149174 100%);
}

/* Basket */
.basket-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.basket-report {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.basket-items {
    max-height: 400px;
    overflow-y: auto;
}

.basket-items::-webkit-scrollbar {
    width: 8px;
}

.basket-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.basket-items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.basket-items::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.basket-empty {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

.bucket-item {
    background: #ecf0f1;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.bucket-item:hover {
    background: #e0e4e7;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
}

.item-details {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}

.item-actions {
    display: flex;
    gap: 6px;
}

.action-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.action-btn:hover {
    background: #2980b9;
}

.remove-btn {
    background: #e74c3c;
}

.remove-btn:hover {
    background: #c0392b;
}

.origin-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.origin-indicator.domestic {
    background: #27ae60;
}

.origin-indicator.imported {
    background: #e67e22;
}

/* Analysis Section */
.analysis-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
}

.metric-card.green {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.metric-card.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.metric-card.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.metric-label {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 12px;
    font-weight: 500;
}

.metric-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.metric-subtext {
    font-size: 14px;
    opacity: 0.85;
}

/* Charts */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.chart-downloads {
    display: flex;
    gap: 8px;
}

.chart-container {
    position: relative;
    height: 400px;
    background: #fafafa;
    border-radius: 6px;
    padding: 15px;
}

/* Taller nutrition chart for all labels */
#nutrition-chart {
    min-height: 500px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #95a5a6;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.modal-btn-primary {
    background: #3498db;
    color: white;
}

.modal-btn-primary:hover {
    background: #2980b9;
}

.modal-btn-secondary {
    background: #95a5a6;
    color: white;
}

.modal-btn-secondary:hover {
    background: #7f8c8d;
}

/* Form helpers */
.param-group {
    margin-bottom: 15px;
}

.param-label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.param-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.param-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.param-input:focus {
    outline: none;
    border-color: #3498db;
}

.param-help {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}

.info-button {
    border: none;
    background: #ecf0f1;
    color: #2c3e50;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.info-button:hover {
    transform: translateY(-1px);
    background: #3498db;
    color: white;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 13px;
    color: #1976d2;
}

/* Footer */
.site-footer {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #7f8c8d;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-logos {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo-placeholder {
    width: 80px;
    height: 40px;
    border-radius: 6px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .add-food-section {
        grid-template-columns: 1fr 1fr;
    }

    .analysis-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
    }

    .language-switcher {
        width: 100%;
        justify-content: space-between;
    }

    .add-food-section {
        grid-template-columns: 1fr;
    }

    .analysis-section {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #2c3e50;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.btn.secondary {
    background-color: #95a5a6;
}

.btn.secondary:hover {
    background-color: #7f8c8d;
}

/* Item Detail Styles */
.item-detail-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.item-detail-origin {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.carbon-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.carbon-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.carbon-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #2c3e50;
}

.carbon-label {
    color: #555;
}

.carbon-value {
    font-weight: 500;
    color: #2c3e50;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.nutrition-label {
    color: #555;
    font-size: 14px;
}

.nutrition-value {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.edit-amount-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.edit-amount-section .form-group {
    max-width: 200px;
}

@media (max-width: 600px) {
    .nutrition-grid {
        grid-template-columns: 1fr;
    }
}

/* Wide modal for item detail with alternatives */
.modal-content-wide {
    max-width: 800px;
}

/* Alternatives Section */
.alternatives-section {
    padding: 0 30px 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

.alternatives-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.alternatives-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.alternatives-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.alternatives-loading {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.alternatives-empty {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    background: #f8f9fa;
    border-radius: 8px;
}

.alternative-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.alternative-card:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.alternative-info {
    flex: 1;
}

.alternative-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.alternative-group {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.alternative-metrics {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.alternative-metric {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.alternative-metric .value {
    font-weight: 600;
}

.alternative-metric.savings .value {
    color: #27ae60;
}

.alternative-metric.similarity .value {
    color: #3498db;
}

.alternative-differences {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
}

.alternative-differences .higher {
    color: #27ae60;
}

.alternative-differences .lower {
    color: #e67e22;
}

.alternative-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.use-alternative-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.use-alternative-btn:hover {
    background: #219a52;
}

@media (max-width: 600px) {
    .alternatives-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .alternative-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .alternative-actions {
        width: 100%;
        margin-top: 10px;
    }

    .use-alternative-btn {
        width: 100%;
    }
}

/* XLSX buttons */
.xlsx-btn {
    background: #27ae60;
}

.xlsx-btn:hover {
    background: #219a52;
}

.import-btn {
    cursor: pointer;
    background: #9b59b6;
}

.import-btn:hover {
    background: #8e44ad;
}

.pdf-btn {
    background: #e74c3c;
}

.pdf-btn:hover {
    background: #c0392b;
}

/* Recommendations Panel */
.section-header-expandable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    user-select: none;
}

.section-header-expandable:hover h3 {
    color: #3498db;
}

.expand-icon {
    font-size: 12px;
    color: #7f8c8d;
    transition: transform 0.2s;
}

.expand-icon.expanded {
    transform: rotate(90deg);
}

.settings-hint {
    font-size: 13px;
    color: #7f8c8d;
    margin: 5px 0 15px 0;
}

.recommendations-panel {
    transition: max-height 0.3s ease-out, opacity 0.2s;
    overflow: hidden;
}

.recommendations-panel.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.recommendations-panel.expanded {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.recommendations-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.recommendations-category h4 {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.recommendation-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recommendation-item label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.recommendation-item .unit {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: normal;
}

.recommendation-item input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.recommendation-item input:focus {
    outline: none;
    border-color: #3498db;
}

.recommendation-item input.modified {
    background: #fffbeb;
    border-color: #f59e0b;
}

.recommendation-item input.upper-limit {
    border-left: 3px solid #e74c3c;
}

.recommendations-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.btn.small {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}
