@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

:root {
    --primary-color: #4CAF50;
    --secondary-color: #45a049;
    --background-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-background: #ffffff;
    --input-background: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #66bb6a;
    --secondary-color: #81c784;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-background: #2d2d2d;
    --input-background: #333333;
    --chat-user-bg: #2d2d2d;
    --chat-ai-bg: #333333;
    --link-color: #81c784;
    --error-color: #ff6b6b;
    --muted-text: #b0b0b0;
    --quote-background: #2d2d2d;
    --quote-text: #ffffff;
    --quote-author: #b0b0b0;
    --heading-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    height: 70px;
    flex-wrap: nowrap;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 1001;
    margin-right: 2rem;
    line-height: 1;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 0.3rem;
    display: inline-block;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    white-space: nowrap;
    font-family: 'Merriweather', serif;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.language-selector {
    position: relative;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.language-btn {
    font-family: 'Merriweather', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-color);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 44px;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.language-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.language-code {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-background);
    border-radius: 4px;
    box-shadow: 0 4px 8px var(--shadow-color);
    width: 180px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 5px;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s;
    gap: 0.75rem;
}

.language-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-option.active {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

[data-theme="dark"] .language-option:hover {
    background-color: var(--input-background);
}

.flag-icon {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
}

.flag-icon-us {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjgwIDY0MCI+PHBhdGggZmlsbD0iI2JkM2Q0MiIgZD0iTTAgMGgxMjgwdjY0MEgweiIvPjxwYXRoIGQ9Ik0wIDcyaDEyODB2NTZoLTEyODB6TTAgMjE2aDEyODB2NTZoLTEyODB6TTAgMzYwaDEyODB2NTZoLTEyODB6TTAgNTA0aDEyODB2NTZoLTEyODB6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTAgMGg1MTJ2Mzg0SDB6IiBmaWxsPSIjMTkyZjVkIi8+PHBhdGggZD0iTTI4LjggMjUuNmwzLjIgOS44aDEwLjRsLTguMyA2IDMuMiA5LjgtOC4zLTYtOC4zIDYgMy4yLTkuOC04LjMtNiAxMC40IDB6TTU2IDI1LjZsMy4yIDkuOGgxMC40bC04LjMgNiAzLjIgOS44LTguMy02LTguMyA2IDMuMi05LjgtOC4zLTYgMTAuNCAweiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==');
}

.flag-icon-es {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3NTAgNTAwIj4KPHJlY3Qgd2lkdGg9Ijc1MCIgaGVpZ2h0PSI1MDAiIGZpbGw9IiNjNjBiMWUiLz4KPHJlY3Qgd2lkdGg9Ijc1MCIgaGVpZ2h0PSIyNTAiIHk9IjEyNSIgZmlsbD0iI2ZmYzQwMCIvPgo8L3N2Zz4=');
}

.flag-icon-fr {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MDAgNjAwIj4KPHJlY3Qgd2lkdGg9IjkwMCIgaGVpZ2h0PSI2MDAiIGZpbGw9IiNFRDI5MzkiLz4KPHJlY3Qgd2lkdGg9IjYwMCIgaGVpZ2h0PSI2MDAiIGZpbGw9IiNmZmZmZmYiLz4KPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSI2MDAiIGZpbGw9IiMwMDIzOTUiLz4KPC9zdmc+');
}

.flag-icon-us-new {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjgwIDY0MCI+PHBhdGggZmlsbD0iI2JkM2Q0MiIgZD0iTTAgMGgxMjgwdjY0MEgweiIvPjxwYXRoIGQ9Ik0wIDcyaDEyODB2NTZoLTEyODB6TTAgMjE2aDEyODB2NTZoLTEyODB6TTAgMzYwaDEyODB2NTZoLTEyODB6TTAgNTA0aDEyODB2NTZoLTEyODB6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTAgMGg1MTJ2Mzg0SDB6IiBmaWxsPSIjMTkyZjVkIi8+PHBhdGggZD0iTTI4LjggMjUuNmwzLjIgOS44aDEwLjRsLTguMyA2IDMuMiA5LjgtOC4zLTYtOC4zIDYgMy4yLTkuOC04LjMtNiAxMC40IDB6TTU2IDI1LjZsMy4yIDkuOGgxMC40bC04LjMgNiAzLjIgOS44LTguMy02LTguMyA2IDMuMi05LjgtOC4zLTYgMTAuNCAweiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==');
}

@media (max-width: 768px) {
    .language-selector {
    margin: 1rem 0;
    width: 100%;
    justify-content: center;
    }
    .language-dropdown {
    width: 100%;
    max-width: 200px;
    right: 50%;
    transform: translateX(50%) translateY(10px);
    left: auto;
    }
    .language-dropdown.active {
    transform: translateX(50%) translateY(0);
    }
    .language-btn {
    padding: 0.75rem;
    justify-content: center;
    width: 100%;
    max-width: 120px;
    }
    .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    box-shadow: 0 4px 8px var(--shadow-color);
    padding: 1.5rem;
    text-align: center;
    z-index: 999;
    }
    .nav-links.active {
    display: flex;
    }
    .nav-links a {
    margin: 0.75rem 0;
    font-size: 1.1rem;
    }
}

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

.recipe-form {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    animation: fadeIn 0.5s ease-out;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    font-family: 'Helvetica', Arial, sans-serif;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-background);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

select:hover {
    border-color: var(--primary-color);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

select option {
    padding: 0.75rem;
    background-color: var(--input-background);
    color: var(--text-color);
}

[data-theme="dark"] select {
    background-color: var(--input-background);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] select option {
    background-color: var(--input-background);
    color: var(--text-color);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input {
    margin-right: 5px;
}

.form-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 5px;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

.form-group span {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

button {
    font-family: 'Helvetica', Arial, sans-serif;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.recipe-result {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    animation: slideIn 0.5s ease-out;
}

.recipe-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.recipe-info {
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.recipe-info p {
    margin: 0;
}

.recipe-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.recipe-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.ingredients-list,
.instructions-list,
.nutrition-list,
.tips-list {
    padding-left: 1.5rem;
}

.ingredients-list li,
.instructions-list li,
.nutrition-list li,
.tips-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

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

footer {
    background-color: var(--background-color);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .hamburger-menu {
    display: flex;
    }
    .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    }
    .nav-links.active {
    right: 0;
    }
    .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    }
    .theme-toggle {
    margin-top: 1rem;
    }
    .checkbox-group {
    grid-template-columns: 1fr;
    }
}

.print-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.print-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.print-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.print-icon {
    font-size: 1.2rem;
}

@media print {
    header, footer, .print-button-container {
    display: none;
    }
    .recipe-result {
    box-shadow: none;
    padding: 0;
    margin: 0;
    }
    body {
    font-family: 'Helvetica', Arial, sans-serif;
    background-color: white;
    }
    .recipe-title {
    font-family: 'Helvetica', Arial, sans-serif;
    color: black;
    }
    .recipe-section h3 {
    font-family: 'Helvetica', Arial, sans-serif;
    color: black;
    }
}

.or-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.or-separator::before,
.or-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #ccc;
}

.or-separator::before {
    left: 0;
}

.or-separator::after {
    right: 0;
}

.or-separator span {
    background-color: #fff;
    padding: 0 15px;
    color: #666;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 2rem 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.saved-recipes-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recipe-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleIn 0.3s ease-out;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.recipe-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.recipe-details {
    margin-bottom: 1.5rem;
}

.recipe-details h4 {
    color: var(--text-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.recipe-details p {
    color: var(--text-color);
    line-height: 1.6;
}

.recipe-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.favorite-button:hover,
.favorite-button.active {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.favorite-button i {
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .recipe-actions {
    flex-direction: column;
    gap: 1rem;
    }
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-out;
}

.hero-content {
    flex: 1;
    padding-right: 4rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    color: #2d3436;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideIn 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #636e72;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: slideIn 1s ease-out;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: slideIn 1.2s ease-out;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.hero-button.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    color: #2d3436;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #636e72;
    line-height: 1.6;
}

.how-it-works {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 3rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    animation: fadeIn 0.5s ease-out;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    color: #2d3436;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step p {
    color: #636e72;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #636e72;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-button {
    font-family: 'Helvetica', Arial, sans-serif;
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    }
    .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
    }
    .hero-title {
    font-size: 2.5rem;
    }
    .hero-actions {
    justify-content: center;
    }
    .features-section {
    padding: 2rem 1rem;
    }
    .how-it-works {
    padding: 2rem 1rem;
    }
    .cta-section {
    padding: 3rem 1rem;
    }
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: 1.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    line-height: 1;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: var(--card-background);
    transform: translateY(-2px);
}

.theme-toggle i {
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.recipe-result {
    animation: slideIn 0.5s ease-out;
}

.recipe-card {
    animation: scaleIn 0.3s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-section {
    animation: fadeIn 0.5s ease-out;
}

.recipe-title {
    animation: slideIn 0.5s ease-out;
}

.recipe-info {
    animation: scaleIn 0.5s ease-out;
}

.nav-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    transform: translateY(-2px);
}

.save-recipe-button,
.favorite-button,
.delete-recipe {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.save-recipe-button:hover,
.favorite-button:hover,
.delete-recipe:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    }
    .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
    }
    .hero-title {
    font-size: 2.5rem;
    }
    .hero-actions {
    justify-content: center;
    }
    .features-section {
    padding: 2rem 1rem;
    }
    .how-it-works {
    padding: 2rem 1rem;
    }
    .cta-section {
    padding: 3rem 1rem;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.loading-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.surprise-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.surprise-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.surprise-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.surprise-button i {
    font-size: 1.2rem;
}

.surprise-button .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.surprise-button-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.surprise-button .new-badge, .surprise-button-wrapper .new-badge {
    position: static;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.4rem;
    background: linear-gradient(90deg, #ff4757 60%, #ff7e5f 100%);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.15);
    z-index: 2;
    animation: pulse 2s infinite;
    border: 1.5px solid #fff0f0;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.12);
    font-family: 'Helvetica', Arial, sans-serif;
    text-transform: uppercase;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.recipe-chat-section {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#send-question {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#send-question:hover {
    background-color: #45a049;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: 2rem;
}

.ai-message {
    background-color: #f5f5f5;
    margin-right: 2rem;
}

.ai-message h1, .ai-message h2, .ai-message h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.ai-message h1 {
    font-size: 1.5rem;
}

.ai-message h2 {
    font-size: 1.3rem;
}

.ai-message h3 {
    font-size: 1.1rem;
}

.ai-message p {
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
}

.ai-message strong {
    font-weight: bold;
}

.ai-message em {
    font-style: italic;
}

.ai-message ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.ai-message li {
    margin-bottom: 0.2rem;
}

.ai-message code {
    background-color: #f0f0f0;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9rem;
}

.ai-message pre {
    background-color: #f0f0f0;
    padding: 0.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 0.5rem;
}

.ai-message pre code {
    background-color: transparent;
    padding: 0;
}

.ai-message br {
    display: none;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    text-align: center;
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 20px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.0);
        opacity: 1;
    }
}

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Title classes that function as headings */
.hero-title,
.recipe-title {
    font-family: 'Montserrat', sans-serif;
}

/* Food of the Day Styles */
.food-of-the-day-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
}

.food-of-the-day-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 2rem;
    margin-top: 3rem;
    transition: transform 0.3s ease;
}

.food-of-the-day-card:hover {
    transform: translateY(-5px);
}

.food-of-the-day-title {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.food-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.food-name {
    text-align: center;
}

.food-name h2 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.food-origin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}

.food-origin i {
    font-size: 1.1rem;
}

.food-description {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 8px;
    margin: 1rem 0;
}

.food-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
    font-family: 'Poppins', sans-serif;
}

.date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.date-display i {
    color: var(--primary-color);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: var(--card-background);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.back-button:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .food-of-the-day-title {
        font-size: 2rem;
    }

    .food-name h2 {
        font-size: 1.75rem;
    }

    .food-description {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .food-of-the-day-card {
        padding: 1.5rem;
    }
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: var(--card-background);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.feature-link:hover {
    transform: translateX(5px);
    background-color: var(--primary-color);
    color: white;
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(4px);
}

.card-container-wrapper {
    position: relative;
}

.back-to-home-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    background: transparent;
}

.back-to-home-btn:hover {
    background: var(--text-color);
    color: var(--background-color);
    transform: translateX(-3px);
}

/* Navigation Food of the Day Styles */
.nav-food-of-day {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transition: color 0.3s ease;
}

.nav-food-of-day i {
    color: #000 !important;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.2s;
}

.nav-food-of-day:hover i {
    color: #333 !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-food-of-day {
        justify-content: center;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Custom Recipe Generator Styles */
.custom-recipe-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.custom-recipe-content {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow: hidden;
}

.custom-recipe-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.custom-recipe-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.tool-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.custom-recipe-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}

.recipe-form-section {
    background: var(--input-background);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.recipe-display-section {
    background: var(--input-background);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 600px;
    position: relative;
}

.custom-recipe-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.generate-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.example-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.example-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.example-section h4 i {
    margin-right: 0.5rem;
    color: #ffc107;
}

.example-section p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.5;
}

.example-section p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
}

.example-section strong {
    color: var(--primary-color);
}

.no-recipe-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.no-recipe-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.no-recipe-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.no-recipe-message p {
    font-size: 1.1rem;
}

/* Recipe Sliders Styles */
.recipe-sliders {
    background: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.sliders-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sliders-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.sliders-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 0.5rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 0.5rem;
}

.update-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 1rem;
}

.update-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.update-button i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .custom-recipe-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .sliders-sidebar {
        position: static;
        top: auto;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .custom-recipe-container {
        padding: 1rem;
    }
    .custom-recipe-layout {
        padding: 1rem;
    }
    .sliders-sidebar {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .custom-recipe-header h1 {
        font-size: 1.5rem;
    }
    .tool-description {
        font-size: 0.9rem;
    }
    .recipe-form-section,
    .recipe-display-section {
        padding: 1rem;
    }
    .sliders-header h3 {
        font-size: 1.1rem;
    }
}

.how-to-use {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.how-to-use h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.how-to-use p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.sliders-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    z-index: 2;
}

.sidebar-inactive {
    opacity: 0.5;
    pointer-events: none;
}

.nav-quote-of-day {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    margin-left: 0.5rem;
}

.nav-quote-of-day i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-quote-of-day:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-quote-of-day {
        justify-content: center;
        width: 100%;
        margin: 0.5rem 0;
    }
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--input-background);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .recipe-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .user-message {
    background-color: var(--chat-user-bg);
    color: var(--text-color);
}

[data-theme="dark"] .ai-message {
    background-color: var(--chat-ai-bg);
    color: var(--text-color);
}

[data-theme="dark"] .ai-message code {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .ai-message pre {
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .error-message {
    color: var(--error-color);
}

[data-theme="dark"] .recipe-info p,
[data-theme="dark"] .recipe-section p,
[data-theme="dark"] .food-description p {
    color: var(--muted-text);
}

[data-theme="dark"] a {
    color: var(--link-color);
}

[data-theme="dark"] .food-of-the-day-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .cooking-quote-card {
    background-color: var(--quote-background);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cooking-quote-card h1,
[data-theme="dark"] .cooking-quote-card h2 {
    color: var(--quote-text);
}

[data-theme="dark"] .cooking-quote-card .quote-text {
    color: var(--quote-text);
    font-size: 1.2rem;
    line-height: 1.6;
}

[data-theme="dark"] .cooking-quote-card .quote-author {
    color: var(--quote-author);
    font-style: italic;
}

[data-theme="dark"] button:not(.primary):not(.hero-button) {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] button:not(.primary):not(.hero-button):hover {
    background-color: var(--input-background);
}

[data-theme="dark"] .slider {
    background-color: var(--border-color);
}

[data-theme="dark"] .slider::-webkit-slider-thumb {
    background-color: var(--primary-color);
}

[data-theme="dark"] .slider::-moz-range-thumb {
    background-color: var(--primary-color);
}

[data-theme="dark"] .loading-overlay {
    background-color: rgba(26, 26, 26, 0.8);
}

[data-theme="dark"] .nav-links a {
    color: var(--text-color);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .language-option:hover {
    background-color: var(--input-background);
}

[data-theme="dark"] .hamburger-menu span {
    background-color: var(--text-color);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--heading-color);
}

[data-theme="dark"] .accessibility-link {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-food-of-day {
    color: var(--text-color);
}

[data-theme="dark"] .nav-food-of-day i {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-food-of-day:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .cooking-quote-card {
    background-color: var(--quote-background);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin: 2rem 0;
}

[data-theme="dark"] .cooking-quote-card h2 {
    color: var(--heading-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

[data-theme="dark"] .quote-text {
    color: var(--text-color);
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1rem;
}

[data-theme="dark"] .quote-author {
    color: var(--muted-text);
    font-style: italic;
    text-align: right;
    font-size: 1.1rem;
}

[data-theme="dark"] .nav-food-of-day,
[data-theme="dark"] .nav-food-of-day i.fa-utensils {
    color: var(--text-color);
}

[data-theme="dark"] .nav-food-of-day:hover,
[data-theme="dark"] .nav-food-of-day:hover i.fa-utensils {
    color: var(--primary-color);
}

/* Ensure the icon itself is visible */
[data-theme="dark"] i.fa-utensils {
    color: var(--text-color);
}

/* Make sure the icon container is also visible */
[data-theme="dark"] .nav-links a i {
    color: var(--text-color);
}

[data-theme="dark"] .nav-food-of-day i.fa-utensils,
[data-theme="dark"] .nav-links .nav-food-of-day i.fa-utensils,
[data-theme="dark"] header .nav-food-of-day i.fa-utensils {
    color: #ffffff !important;
}

[data-theme="dark"] .nav-food-of-day:hover i.fa-utensils,
[data-theme="dark"] .nav-links .nav-food-of-day:hover i.fa-utensils,
[data-theme="dark"] header .nav-food-of-day:hover i.fa-utensils {
    color: var(--primary-color) !important;
}

/* Additional specificity for the icon */
[data-theme="dark"] .nav-container .nav-links .nav-food-of-day i.fa-utensils {
    color: #ffffff !important;
}

[data-theme="dark"] .nav-container .nav-links .nav-food-of-day:hover i.fa-utensils {
    color: var(--primary-color) !important;
}