body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}
h1 {
    margin: 0;
    font-size: 2.5rem;
}

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

.recipe-input {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5a6fd1;
}

.nutrition-results {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nutrition-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: #666;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.recipe-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
}

.recipe-card.selected {
    box-shadow: 0 0 0 3px #667eea;
}

.recipe-card .select-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    z-index: 1;
}
.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-card h3 {
    margin: 1rem;
    font-size: 1.2rem;
}
.recipe-card p {
    margin: 0 1rem 1rem;
    color: #666;
}

.recipe-card {
    cursor: pointer;
}

.recipe-details {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.recipe-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.ingredients ul {
    list-style-type: none;
    padding: 0;
}

.ingredients li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.instructions ol {
    padding-left: 1.5rem;
}

.instructions li {
    margin-bottom: 1rem;
}

.back-btn {
    background: none;
    border: none;
    color: #667eea;
    padding: 0;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.back-btn:hover {
    text-decoration: underline;
}
