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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.config-section, .search-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.config-section h2, .search-section h2 {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.3rem;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group button {
    margin-left: 10px;
    padding: 12px 20px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background: #38a169;
}

.primary-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.primary-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #718096;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.secondary-btn:hover {
    background: #4a5568;
    transform: translateY(-1px);
}

.loading {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.result {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.result h2 {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.3rem;
}

.restaurant-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.restaurant-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.restaurant-details p {
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.95rem;
}

.restaurant-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.restaurant-actions .primary-btn {
    flex: 1;
    margin-top: 0;
    min-width: 150px;
}

.error {
    background: #fed7d7;
    border: 2px solid #fc8181;
    color: #c53030;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.error h2 {
    margin-bottom: 10px;
    color: #c53030;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .config-section, .search-section, .result, .loading {
        padding: 20px;
    }
    
    .restaurant-actions {
        flex-direction: column;
    }
    
    .restaurant-actions .secondary-btn {
        margin-right: 0;
        margin-bottom: 10px;
    }
}