:root {
    --primary: #27ae60;
    --secondary: #e67e22;
    --dark: #2c3e50;
    --light: #f4f7f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    margin: 0;
    color: var(--dark);
}

header {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 { margin: 0; font-size: 2.5rem; }
h1 span { color: var(--secondary); }

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    background: #219150;
}

#results {
    margin-top: 2rem;
}

.recipe-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Styl paska menu */
.nav-menu {
    background-color: #27ae60;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 3px solid #219150;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.nav-link:hover {
    background-color: #219150;
}

/* Styl rozwijanej listy */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 0;
}

.dropdown li a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.dropdown li a:hover {
    background-color: #f1f1f1;
    color: #27ae60;
}

/* Wyświetlanie po najechaniu */
.nav-item:hover .dropdown {
    display: block;
}
