* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
  }
  
  body {
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
  }
  
  .container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  
  h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  
  .search-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
  }
  
  #ingredientInput {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
  }
  
  #searchBtn {
    padding: 12px 20px;
    background: #ff7043;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  #searchBtn:hover {
    background: #e64a19;
  }
  
  .recipes-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .recipe-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .recipe-card:hover {
    transform: scale(1.03);
  }
  
  .recipe-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .recipe-card-content {
    padding: 15px;
  }
  
  .recipe-card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
  }
  
  .recipe-card-content button {
    margin-top: 5px;
    margin-right: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background-color: #42a5f5;
    color: white;
    transition: background 0.3s ease;
  }
  
  .recipe-card-content button:hover {
    background-color: #1e88e5;
  }
  
  ul {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
  }
  
  li {
    background-color: #fff3e0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  li img {
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 5px;
  }
  
/* Modal styles */
#modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
  }
  
  #modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    position: relative;
  }
  
  #modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
  }
  
  #modal-close:hover {
    color: #e64a19;
  }
  