body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
}

nav a:hover, nav a.active {
    background: #34495e;
    border-radius: 4px;
}

.recipe-list, .recipe-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.recipe-list h2, .recipe-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(auto, 350px));
    gap: 20px;
}

.recipe-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

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

.recipe-card h3, .recipe-card p {
    padding: 0 16px;
}

.recipe-card p {
    margin-bottom: 16px;
}

.recipe-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.recipe-content .ingredients, .recipe-content .instructions {
    margin: 20px 0;
}

select {
    margin-bottom: 1rem;
}

#category-filter {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
  color: #333;
  font-size: 16px;
  padding: 10px 40px 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 250px;
  max-width: 100%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  transition: border 0.2s, box-shadow 0.2s;
}

#category-filter:hover {
  border-color: #888;
}

#category-filter:focus {
  outline: none;
  border-color: #5b9dd9;
  box-shadow: 0 0 0 2px rgba(30, 140, 190, 0.2);
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}