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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
        sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    margin-bottom: 40px;
}

.header h1 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.header p {
    color: #666;
    font-size: 0.95em;
}

.search-box {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    margin-bottom: 30px;
}

.search-box:focus {
    border-color: #999;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9em;
    color: #666;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
    max-height: 500px;
    overflow-y: auto;
    padding: 4px;
}

.dish-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.dish-card:hover {
    border-color: #999;
}

.dish-card.selected {
    border-color: #333;
    background: #fafafa;
}

.dish-image {
    width: 100%;
    height: 140px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 8px;
    object-fit: cover;
}

.dish-name {
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 4px;
}

.dish-category {
    color: #999;
    font-size: 0.85em;
}

.review-section {
    background: white;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.review-section h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
}

.review-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dish-label {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.review-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    font-size: 0.95em;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    outline: none;
}

.review-textarea:focus {
    border-color: #999;
}

.submit-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 0.95em;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #555;
}

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

.message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
    font-size: 0.9em;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .dishes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
