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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
}

h2 {
    color: #34495e;
    margin: 30px 0 15px 0;
    font-size: 22px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

h3 {
    color: #555;
    margin: 20px 0 10px 0;
    font-size: 18px;
}

/* Customer Information Section */
.customer-info-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

.customer-info-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
}

.customer-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.field-group {
    flex: 1;
    min-width: 200px;
}

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

.customer-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

/* Top Controls */
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.btn-clear {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-clear:hover {
    background-color: #c0392b;
}

.hh-size-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hh-size-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.hh-size-input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

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

/* Meal Toggles */
.meal-toggles {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ecf0f1;
}

.meal-toggles-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.meal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #34495e;
    cursor: pointer;
}

.meal-toggle input[type="checkbox"] {
    cursor: pointer;
}

/* Meal Sections */
.meal-section {
    margin-bottom: 40px;
}

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

/* Tables */
.meal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.meal-table thead {
    background-color: #3498db;
    color: white;
}

.meal-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.meal-table td {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.meal-table tbody tr:hover {
    background-color: #f8f9fa;
}

.meal-table tbody tr:last-child td {
    border-bottom: none;
}

/* Select Dropdowns */
select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

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

select:hover {
    border-color: #95a5a6;
}

/* Summary Section */
.summary-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #34495e;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.summary-table th {
    background-color: #34495e;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.summary-cell {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background-color: #e74c3c;
    color: white;
}

.summary-cell.approved {
    background-color: #27ae60;
}

.summary-cell.pending {
    background-color: #f39c12;
}

/* Export Section */
.export-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-export {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-export:hover {
    background-color: #229954;
}

.btn-export:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-save-db {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-save-db:hover {
    background-color: #2980b9;
}

.btn-save-db:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-save-db:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.save-status {
    min-height: 30px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}

.save-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.save-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.save-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Backend Status */
.backend-status {
    margin: 20px 0;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.backend-status.connected {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.backend-status.disconnected {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.backend-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .top-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hh-size-container {
        align-items: flex-start;
    }

    .customer-fields {
        flex-direction: column;
    }

    .field-group {
        min-width: 100%;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

