:root {
    --primary: #ff6b6b;
    --dark: #333;
    --light: #f4f4f4;
    --white: #fff;
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--dark);
}


nav {
    background: var(--dark);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #bbb;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

nav a.active { color: var(--primary); }


.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
}

.center-content { justify-content: center; }


.recipe-list {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recipe-card {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recipe-card:hover { transform: translateY(-3px); }
.recipe-card h3 { margin: 0 0 5px 0; }


.recipe-display {
    flex: 3;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hidden { display: none; }

.recipe-header {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    align-items: center;
}

.recipe-header img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
}

.btn-group button {
    padding: 5px 15px;
    cursor: pointer;
    background: #ddd;
    border: none;
}

.btn-group button.active {
    background: var(--primary);
    color: white;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: #eee;
    padding: 15px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.accordion-content {
    padding: 15px;
    border: 1px solid #eee;
    border-top: none;
}


form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
}

.form-group { margin-bottom: 1rem; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.dynamic-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.btn-secondary {
    background: transparent;
    border: 2px dashed #ccc;
    color: #666;
    padding: 8px;
    width: 100%;
    cursor: pointer;
}


@media (max-width: 768px) {
    .container { flex-direction: column; }
    .recipe-header { flex-direction: column; }
    .recipe-header img { width: 100%; height: auto; }
}