@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
html {
    overflow-y: scroll;
}
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: 'Vazirmatn', sans-serif; }
body {
    margin: 0;
    line-height: inherit;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f3f4f6;
    transition: background-color 0.3s ease;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, a, button, input, select, footer { margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button, input, select { font-family: inherit; }
#content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
main {
    flex-grow: 1;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}
.loader-global { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 9999; background: #f0fdf9; display: flex; justify-content: center; align-items: center; transition: opacity 0.3s ease-out, visibility 0.3s ease-out; }
.loader-spinner { border: 5px solid #e0f2fe; border-top: 5px solid #14b8a6; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); }
 100% { transform: rotate(360deg); }
 }
.content-hidden { visibility: hidden; opacity: 0; }
.content-visible { visibility: visible; opacity: 1; transition: opacity 0.5s ease-in-out; }
.container { width: 100%; margin-right: auto; margin-left: auto; padding-right: 1rem; padding-left: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; }
 }
@media (min-width: 768px) { .container { max-width: 768px; }
 }
@media (min-width: 1024px) { .container { max-width: 1024px; }
 }
@media (min-width: 1280px) { .container { max-width: 1280px; }
 }
.flex { display: flex; }
 .grid { display: grid; }
 .hidden { display: none; }
 .block { display: block; }
 .flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
 .justify-center { justify-content: center; }
 .justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
 .justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
 .flex-row { flex-direction: row; }
 .flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 1rem; }
 .gap-6 { gap: 1.5rem; }
 .gap-8 { gap: 2rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
 .mb-0 { margin-bottom: 0px; }
 .mb-2 { margin-bottom: 0.5rem; }
 .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
 .mb-6 { margin-bottom: 1.5rem; }
 .mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
 .mb-12 { margin-bottom: 3rem; }
 .mb-16 { margin-bottom: 4rem; }
 .ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
 .mr-4 { margin-right: 1rem; }
 .mt-1 { margin-top: 0.25rem; }
 .mt-4 { margin-top: 1rem; }
 .mt-6 { margin-top: 1.5rem; }
 .mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
 .p-6 { padding: 1.5rem; }
 .p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
 .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
 .px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
 .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
 .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
 .py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.space-x-8:not([hidden]) > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-x-reverse:not([hidden]) > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1; margin-right: calc(2rem * var(--tw-space-x-reverse)); margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse))); }
.w-auto { width: auto; }
 .w-full { width: 100%; }
 .w-5 { width: 1.25rem; }
 .w-6 { width: 1.5rem; }
 .w-8 { width: 2rem; }
 .w-16 { width: 4rem; }
 .w-64 { width: 16rem; }
.h-full { height: 100%; }
 .h-5 { height: 1.25rem; }
 .h-6 { height: 1.5rem; }
 .h-8 { height: 2rem; }
 .h-10 { height: 2.5rem; }
 .h-16 { height: 4rem; }
.max-w-2xl { max-width: 42rem; }
 .max-w-3xl { max-width: 48rem; }
 .max-w-4xl { max-width: 56rem; }
 .max-w-md { max-width: 32rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
 .text-base { font-size: 1rem; line-height: 1.5rem; }
 .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
 .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
 .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
 .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
 .font-medium { font-weight: 500; }
 .leading-tight { line-height: 1.25; }
.text-center { text-align: center; }
 .text-right { text-align: right; }
.text-white { color: #ffffff; }
 .text-gray-200 { color: #e5e7eb; }
 .text-gray-400 { color: #9ca3af; }
 .text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
 .text-gray-700 { color: #374151; }
 .text-gray-800 { color: #1f2937; }
 .text-jade-600 { color: #0d9488; }
 .text-red-500 { color: #ef4444; }
.hover\:text-jade-600:hover { color: #0d9488; }
.bg-white { background-color: #ffffff; }
 .bg-gray-100 { background-color: #f3f4f6; }
 .bg-jade-50 { background-color: #f0fdf9; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-jade-50 { --tw-gradient-from: #f0fdf9; }
 .from-jade-100 { --tw-gradient-from: #ccfbef; }
 .from-jade-500 { --tw-gradient-from: #14b8a6; }
.to-skyblue-50 { --tw-gradient-to: #f0f9ff; }
 .to-skyblue-100 { --tw-gradient-to: #e0f2fe; }
 .to-skyblue-500 { --tw-gradient-to: #0ea5e9; }
.from-purple-50 { --tw-gradient-from: #faf5ff; }
.to-pink-50 { --tw-gradient-to: #fdf2f8; }
.from-purple-500 { --tw-gradient-from: #a855f7; }
.to-pink-500 { --tw-gradient-to: #ec4899; }
.from-orange-50 { --tw-gradient-from: #fff7ed; }
.to-yellow-50 { --tw-gradient-to: #fefce8; }
.from-orange-500 { --tw-gradient-from: #f97316; }
.to-yellow-500 { --tw-gradient-to: #eab308; }
.from-cyan-50 { --tw-gradient-from: #ecfeff; }
.to-blue-50 { --tw-gradient-to: #eff6ff; }
.from-cyan-500 { --tw-gradient-from: #06b6d4; }
.to-blue-500 { --tw-gradient-to: #3b82f6; }
.hover\:from-jade-600:hover { --tw-gradient-from: #0d9488; }
.hover\:to-skyblue-600:hover { --tw-gradient-to: #0284c7; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
 .hover\:bg-jade-50:hover { background-color: #f0fdf9; }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.rounded-lg { border-radius: 0.5rem; }
 .rounded-xl { border-radius: 0.75rem; }
 .rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
 .rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
 .border-2 { border-width: 2px; }
 .border-dashed { border-style: dashed; }
 .border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
 .border-gray-300 { border-color: #d1d5db; }
 .border-gray-400 { border-color: #9ca3af; }
 .border-jade-200 { border-color: #99f6e0; }
.hover\:border-jade-500:hover { border-color: #14b8a6; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.transition { transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: ease-in-out; }
.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.translate-x-full { --tw-translate-x: 100%; transform: translateX(var(--tw-translate-x)); }
.translate-x-0 { --tw-translate-x: 0; transform: translateX(var(--tw-translate-x)); }
.hover\:-translate-y-1:hover { --tw-translate-y: -0.25rem; transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.rotate-3 { --tw-rotate: 3deg; transform: rotate(var(--tw-rotate)); }
.-rotate-6 { --tw-rotate: -6deg; transform: rotate(var(--tw-rotate)); }
button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    appearance: button;
    cursor: pointer;
}
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-jade-500:focus { --tw-ring-color: #14b8a6; }
.fill-currentColor { fill: currentColor; }
 .fill-none { fill: none; }
.stroke-width-2 { stroke-width: 2; }
 .stroke-linecap-round { stroke-linecap: round; }
 .stroke-linejoin-round { stroke-linejoin: round; }
.sticky { position: sticky; }
 .top-0 { top: 0; }
.fixed { position: fixed; }
 .right-0 { right: 0; }
 .left-0 { left: 0; }
.z-10 { z-index: 10; }
 .z-40 { z-index: 40; }
 .z-50 { z-index: 50; }
.relative { position: relative; }
 .absolute { position: absolute; }
 .inset-0 { top:0; right:0; bottom:0; left:0; }
.opacity-10 { opacity: .1; }
 .blur-3xl { --tw-blur: blur(64px); filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); }
.animate-float { animation: float 3s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); }
 50% { transform: translateY(-10px); }
 100% { transform: translateY(0px); }
 }
.gradient-text {
    background: linear-gradient(90deg, #14b8a6, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-animation 5s ease-in-out infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.nav-link-special {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease-in-out;
}
.nav-link-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
    border-radius: 9999px;
    z-index: -1;
}
.nav-link-special:hover::before,
.nav-link-special.active::before {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-link-special:hover,
.nav-link-special.active {
    color: #ffffff;
}
.nav-link-glowing {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    color: #14b8a6;
    background-color: #f0fdf9;
    border: 1px solid #ccfbef;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.2);
    animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(20, 184, 166, 0.2), 0 0 10px rgba(20, 184, 166, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(20, 184, 166, 0.4), 0 0 25px rgba(14, 165, 233, 0.2);
    }
    100% {
        box-shadow: 0 0 5px rgba(20, 184, 166, 0.2), 0 0 10px rgba(20, 184, 166, 0.1);
    }
}

html.dark .nav-link-glowing {
    color: #5eead4;
    background-color: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.3);
}
.vision-bg {
    background-color: #0d1a2e;
    background-image: radial-gradient(at 20% 20%, hsla(175, 70%, 25%, 0.4) 0px, transparent 50%),
                      radial-gradient(at 80% 80%, hsla(200, 70%, 30%, 0.4) 0px, transparent 50%);
}
.upload-box { transition: background-color 300ms, border-color 300ms; }
.upload-box:hover { background-color: rgba(255, 255, 255, 0.1); border-color: #14b8a6; }
.upload-box:hover svg { transform: translateY(-5px) scale(1.05); color: #ccfbef; }
.upload-box svg { transition: transform 300ms, color 300ms; }
#vision-buttons-container.hidden {
    display: none;
}
.vision-action-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border: none;
}
.vision-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn-analyze {
    background: linear-gradient(to right, #14b8a6, #0ea5e9);
    color: white;
}
.btn-remove {
    background-color: #f1f5f9;
    color: #475569;
}
.btn-remove:hover {
    background-color: #e2e8f0;
}
.message-box {
    text-align: center;
    border-radius: 1.5rem;
    padding: 4rem 1rem;
}
.message-box.prompt {
    background-image: linear-gradient(to right, #f0fdf9, #f0f9ff);
    color: #4b5563;
}
.message-box.error {
    background-image: linear-gradient(to right, #fff1f2, #ffedd5);
    color: #9f1239;
}
.message-box svg {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    height: 4rem;
    width: 4rem;
}
.message-box.error svg {
    color: #f43f5e;
}
.message-box.prompt svg {
    color: #9ca3af;
}
.custom-dropdown {
    position: relative;
    cursor: pointer;
}
.custom-dropdown.open {
    z-index: 30;
}
.dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}
.custom-dropdown.open .dropdown-selected {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.4);
}
.dropdown-arrow {
    transition: transform 0.3s ease;
}
.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    z-index: 20;
}
.custom-dropdown.open .dropdown-options {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
}
.dropdown-option {
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}
.dropdown-option:hover {
    background-color: #f0fdf9;
}
.dropdown-option.selected {
    background-color: #ccfbef;
    font-weight: 500;
    color: #047857;
}
#recipe-form input[type="text"] {
    transition: all 0.3s ease;
}
.cursor-pointer { cursor: pointer; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
@media (min-width: 768px) {
    .md\:flex { display: flex; }
 .md\:hidden { display: none; }
 .md\:flex-row { flex-direction: row; }
    .md\:w-1\/2 { width: 50%; }
 .md\:mb-0 { margin-bottom: 0px; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
}
@media (max-width: 767px) {
    .md-hidden-force {
        display: block;
    }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.recipe-actions {
    margin-top: 1.5rem;
    margin-bottom: 2rem; 
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: none;
    text-decoration: none;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.download-btn svg {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}
.btn-pdf {
    background: linear-gradient(to right, #ef4444, #f87171);
}
.btn-image {
    background: linear-gradient(to right, #f97316, #fb923c);
}
.recipe-on-screen-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    margin-top: 2rem;
    overflow: hidden;
}
.recipe-on-screen-card .recipe-header {
    background: linear-gradient(to right, #f0fdf9, #f0f9ff);
    padding: 2rem;
    text-align: center;
}
.recipe-on-screen-card .recipe-header h1 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.recipe-on-screen-card .recipe-header p {
    color: #475569;
    max-width: 65ch;
    margin: 0 auto;
}
.recipe-on-screen-card .recipe-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .recipe-on-screen-card .recipe-body {
        grid-template-columns: 1fr 1.5fr;
    }
}
.recipe-on-screen-card .recipe-ingredients-column h3,
.recipe-on-screen-card .recipe-instructions-column h3 {
    font-size: 1.25rem;
    color: #0d9488;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ccfbef;
    margin-bottom: 1rem;
    text-align: right;
}
.recipe-on-screen-card .recipe-ingredients-column ul {
    list-style: none;
    padding-right: 0;
}
.recipe-on-screen-card .recipe-ingredients-column li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    color: #334155;
    line-height: 1.6;
}
.recipe-on-screen-card .recipe-ingredients-column li::before {
    content: '•';
    color: #14b8a6;
    font-size: 1.25rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.recipe-on-screen-card .recipe-instructions-column ul {
    list-style: none;
    padding: 0;
}
.instruction-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1rem;
    line-height: 1.75;
}
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d9488;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    min-width: 32px;
    width: 32px;
    height: 32px;
    margin-left: 12px;
    padding-top: 2px;
}
.step-text {
    flex: 1;
    text-align: right;
    color: #334155;
}
.recipe-export-container {
    display: none;
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    width: 800px;
    padding: 2rem;
}
.recipe-export-container .recipe-header {
    text-align: center;
    border-bottom: 2px solid #0d9488;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.recipe-export-container .recipe-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.recipe-export-container .recipe-header p {
    font-size: 1rem;
    max-width: 70ch;
    margin: 0 auto;
}
.recipe-export-container .recipe-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}
.recipe-export-container .recipe-ingredients-column {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05);
}
.recipe-export-container .recipe-instructions-column {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}
.recipe-export-container .recipe-ingredients-column h3,
.recipe-export-container .recipe-instructions-column h3 {
    font-size: 1.25rem;
    text-align: right;
    margin-bottom: 1rem;
}
.recipe-export-container .recipe-ingredients-column ul {
    list-style: none;
    padding-right: 0;
}
.recipe-export-container .recipe-ingredients-column li {
    padding-right: 1.25rem;
    position: relative;
    margin-bottom: 0.75rem;
}
.recipe-export-container .recipe-ingredients-column li::before {
    content: '•';
    color: #0d9488;
    position: absolute;
    right: 0;
}
.recipe-export-container .recipe-instructions-column ul {
    list-style: none;
    padding: 0;
}
.recipe-export-container .step-text {
    text-align: right;
    line-height: 1.75;
}
.recipe-export-container .recipe-credit-footer {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.recipe-export-container .recipe-credit-footer img {
    height: 2rem;
    margin: 0 auto 0.5rem;
}
.advanced-search-btn {
    background-color: #ffffff;
    color: #0d9488;
    border: 1px solid #ccfbef;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.advanced-search-btn:hover {
    background-color: #f0fdf9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.advanced-search-btn.open svg {
    transform: rotate(180deg);
}
.advanced-search-container {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.4s ease-in-out, margin-top 0.4s ease-in-out;
}
.advanced-search-container.open {
    max-height: 15rem;
    margin-top: 1.5rem;
}
.custom-dropdown.open {
    z-index: 30;
}
.search-button {
    background: linear-gradient(to right, #14b8a6, #0ea5e9);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.search-button svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
    stroke: white;
}
.recipe-export-container .recipe-specifications {
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}
.recipe-export-container .recipe-specifications h3 {
    font-size: 1.25rem;
    text-align: right;
    margin-bottom: 1rem;
    color: #334155;
}
.recipe-export-container .spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
}
.recipe-export-container .spec-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.9rem;
}
.recipe-export-container .spec-label {
    color: #64748b;
    margin-left: 0.5rem;
}
.recipe-export-container .spec-value {
    font-weight: 500;
    color: #1e293b;
}
@media (max-width: 640px) {
    #vision-buttons-container {
        flex-direction: column;
    }
}
.sm\:flex-row-reverse {
    flex-direction: row-reverse;
}
.hamburger-btn {
    transition: all 0.3s ease;
    background-color: transparent;
    color: #0d9488;
}
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-active .line1 {
    transform: translateY(6px) rotate(45deg);
}
.hamburger-active .line2 {
    opacity: 0;
}
.hamburger-active .line3 {
    transform: translateY(-6px) rotate(-45deg);
}
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 26, 46, 0.95);
    background-image: radial-gradient(circle at top right, hsla(175, 70%, 25%, 0.3), transparent 40%),
                      radial-gradient(circle at bottom left, hsla(200, 70%, 30%, 0.3), transparent 50%);
    backdrop-filter: blur(8px);
    z-index: 40;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.menu-overlay.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.menu-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}
.menu-item.active {
    font-weight: 500;
    color: #ffffff;
    background-color: #14b8a6;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
}
.menu-icon {
    width: 1.5rem;
    text-align: center;
}
.menu-footer {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
.bg-current {
    background-color: currentColor;
}
.h-0\.5 {
    height: 0.125rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.25rem;
}
html.dark body { background-color: #0d1a2e; }
html.dark main { background-color: #111827; }
html.dark .loader-global { background: #0d1a2e; }
html.dark .loader-spinner { border-color: #1e293b; border-top-color: #14b8a6; }
html.dark .text-gray-200 { color: #9ca3af; }
html.dark .text-gray-400 { color: #6b7280; }
html.dark .text-gray-500 { color: #9ca3af; }
html.dark .text-gray-600 { color: #d1d5db; }
html.dark .text-gray-700 { color: #e5e7eb; }
html.dark .text-gray-800 { color: #f3f4f6; }
html.dark .text-jade-600 { color: #2dd4bf; }
html.dark .hover\:text-jade-600:hover { color: #5eead4; }
html.dark .bg-white { background-color: #1f2937; }
html.dark .bg-gray-100 { background-color: #0d1a2e; }
html.dark .bg-jade-50 { background-color: #112b27; }
html.dark .from-jade-50 { --tw-gradient-from: #112b27; }
html.dark .from-jade-100 { --tw-gradient-from: #134e4a; }
html.dark .to-skyblue-50 { --tw-gradient-to: #0c2a41; }
html.dark .to-skyblue-100 { --tw-gradient-to: #1e40af; }
html.dark .from-purple-50 { --tw-gradient-from: #2a2137; }
html.dark .to-pink-50 { --tw-gradient-to: #341f2a; }
html.dark .from-orange-50 { --tw-gradient-from: #312519; }
html.dark .to-yellow-50 { --tw-gradient-to: #32301f; }
html.dark .from-cyan-50 { --tw-gradient-from: #192f31; }
html.dark .to-blue-50 { --tw-gradient-to: #1e283a; }
html.dark .hover\:bg-gray-100:hover { background-color: #1f2937; }
html.dark .hover\:bg-jade-50:hover { background-color: #134e4a; }
html.dark .border-gray-200 { border-color: #374151; }
html.dark .border-gray-300 { border-color: #4b5563; }
html.dark .border-gray-400 { border-color: #6b7280; }
html.dark .border-jade-200 { border-color: #14b8a6; }
html.dark .hover\:border-jade-500:hover { border-color: #2dd4bf; }
html.dark .shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3); }
html.dark .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3); }
html.dark .shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3); }
html.dark .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
html.dark .hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3); }
html.dark .hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3); }
html.dark .btn-remove { background-color: #334155; color: #cbd5e1; }
html.dark .btn-remove:hover { background-color: #475569; }
html.dark .message-box.prompt { background-image: linear-gradient(to right, #112b27, #0c2a41); color: #d1d5db; }
html.dark .message-box.error { background-image: linear-gradient(to right, #44191c, #4d2c16); color: #fda4af; }
html.dark .dropdown-selected { background-color: #374151; border-color: #6b7280; color: #f3f4f6; }
html.dark .dropdown-options { background-color: #374151; border-color: #6b7280; }
html.dark .dropdown-option { color: #f3f4f6; }
html.dark .dropdown-option:hover { background-color: #112b27; }
html.dark .dropdown-option.selected { background-color: #134e4a; color: #5eead4; }
html.dark #recipe-form input[type="text"] { background-color: #374151; border-color: #6b7280; color: #f3f4f6; }
html.dark #recipe-form input[type="text"]::placeholder { color: #9ca3af; }
html.dark .recipe-on-screen-card { background: #1f2937; border-color: #374151; }
html.dark .recipe-on-screen-card .recipe-header { background: linear-gradient(to right, #112b27, #0c2a41); }
html.dark .recipe-on-screen-card .recipe-header h1 { color: #f3f4f6; }
html.dark .recipe-on-screen-card .recipe-header p { color: #d1d5db; }
html.dark .recipe-on-screen-card .recipe-ingredients-column h3, html.dark .recipe-on-screen-card .recipe-instructions-column h3 { color: #2dd4bf; border-color: #134e4a; }
html.dark .recipe-on-screen-card .recipe-ingredients-column li { color: #cbd5e1; }
html.dark .step-text { color: #cbd5e1; }
html.dark .hamburger-btn { color: #2dd4bf; }
html.dark .advanced-search-btn {
    background-color: #1f2937;
    color: #2dd4bf;
    border-color: #134e4a;
}
html.dark .advanced-search-btn:hover {
    background-color: #374151;
}
html.dark .recipe-export-container {
    background: #111827;
    border-color: #374151;
}
html.dark .recipe-export-container .recipe-header {
    border-color: #0d9488;
}
html.dark .recipe-export-container .recipe-header h1,
html.dark .recipe-export-container .recipe-header p,
html.dark .recipe-export-container .recipe-ingredients-column h3,
html.dark .recipe-export-container .recipe-instructions-column h3,
html.dark .recipe-export-container .recipe-ingredients-column li,
html.dark .recipe-export-container .recipe-specifications h3, 
html.dark .recipe-export-container .step-text {
    color: #f3f4f6; 
}
html.dark .recipe-export-container .recipe-specifications,
html.dark .recipe-export-container .recipe-ingredients-column,
html.dark .recipe-export-container .recipe-instructions-column {
    background-color: #1f2937;
    border-color: #374151;
}
html.dark .recipe-export-container .spec-value {
    color: #f3f4f6;
}
html.dark .recipe-export-container .spec-label {
    color: #9ca3af;
}
html.dark .recipe-export-container .recipe-credit-footer {
    border-color: #374151;
}
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #0d9488;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
#theme-toggle:hover {
    background-color: #f0fdf9;
}
html.dark #theme-toggle {
    color: #9ca3af;
}
html.dark #theme-toggle:hover {
    background-color: #374151;
    color: #e5e7eb;
}
#theme-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}
.faq-item {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
    --tw-gradient-from: #f0fdf9;
    --tw-gradient-to: #f0f9ff;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
}
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.07);
}
html.dark .faq-item {
    --tw-gradient-from: #112b27;
    --tw-gradient-to: #0c2a41;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    user-select: none; 
    -webkit-user-select: none; 
    -ms-user-select: none; 
}
.faq-question::-webkit-details-marker {
   display: none;
}
html.dark .faq-question {
    color: #f3f4f6;
}
.faq-answer {
    color: #4b5563;
    line-height: 1.7;
    padding: 0 1.5rem 1.5rem;
}
html.dark .faq-answer {
    color: #d1d5db;
}
.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    font-weight: 300;
    color: #0d9488;
}
html.dark .faq-icon {
    color: #2dd4bf;
}
.faq-item[open] > .faq-question .faq-icon {
    transform: rotate(45deg);
}
.auth-main {
    background-image: 
        radial-gradient(at 0% 0%, hsla(175, 70%, 35%, 0.2) 0px, transparent 50%),
        radial-gradient(at 98% 1%, hsla(200, 70%, 40%, 0.2) 0px, transparent 50%);
}
html.dark .auth-main {
    background-image: 
        radial-gradient(at 0% 0%, hsla(175, 70%, 25%, 0.25) 0px, transparent 50%),
        radial-gradient(at 98% 1%, hsla(200, 70%, 30%, 0.3) 0px, transparent 50%);
}
.auth-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
html.dark .auth-card {
    background-color: rgba(31, 41, 55, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}
html.dark .form-label {
    color: #d1d5db;
}
.form-input {
    width: 100%;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.3s ease;
}
.form-input::placeholder {
    color: #9ca3af;
}
.form-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
    background-color: #ffffff;
}
html.dark .form-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}
html.dark .form-input::placeholder {
    color: #6b7280;
}
html.dark .form-input:focus {
    background-color: #4b5563;
    border-color: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.4);
}
.auth-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.auth-button.btn-primary {
    background: linear-gradient(to right, #14b8a6, #0ea5e9);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.auth-button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.auth-button.btn-secondary {
    background-color: #ffffff;
    color: #374151;
    border-color: #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.auth-button.btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}
html.dark .auth-button.btn-secondary {
    background-color: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}
html.dark .auth-button.btn-secondary:hover {
    background-color: #4b5563;
}
.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    background-color: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.auth-tab.active {
    color: #14b8a6;
    border-bottom-color: #14b8a6;
}
html.dark .auth-tab {
    color: #9ca3af;
}
html.dark .auth-tab.active {
    color: #2dd4bf;
    border-bottom-color: #2dd4bf;
}
.nav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}
.nav-action-btn:hover {
    background-color: #f3f4f6;
    color: #0d9488;
}
html.dark .nav-action-btn {
    color: #9ca3af;
}
html.dark .nav-action-btn:hover {
    background-color: #374151;
    color: #5eead4;
}
.nav-action-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}
.recipe-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.07);
}
html.dark .recipe-card {
    background-color: #1f2937;
    border-color: #374151;
}
.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bg-green-100 { background-color: #dcfce7; }
.text-green-600 { color: #16a34a; }
.bg-yellow-100 { background-color: #fef9c3; }
.text-yellow-600 { color: #ca8a04; }
.bg-red-100 { background-color: #fee2e2; }
.text-red-600 { color: #dc2626; }
html.dark .bg-green-100 { background-color: #10402f; }
html.dark .text-green-600 { color: #6ee7b7; }
html.dark .bg-yellow-100 { background-color: #4a3a14; }
html.dark .text-yellow-600 { color: #fde047; }
html.dark .bg-red-100 { background-color: #4d161b; }
html.dark .text-red-600 { color: #fca5a5; }
.recipe-card-star {
    color: #f59e0b; 
}
.star-rating {
    display: flex;
    flex-direction: row; 
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}
.star {
    font-size: 1.5rem;
    color: #d1d5db; 
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0 0.1rem;
}
.star-rating:hover .star {
    color: #fbbf24; 
}
.star:hover ~ .star {
    color: #d1d5db;
}
.star.fa-solid.fa-star,
.star.fa-solid.fa-star-half-alt {
    color: #f59e0b; 
}
html.dark .star {
    color: #4b5563;
}
html.dark .star.fa-solid.fa-star,
html.dark .star.fa-solid.fa-star-half-alt {
    color: #f59e0b;
}
html.dark .star-rating:hover .star {
    color: #fbbf24;
}
html.dark .star:hover ~ .star {
    color: #4b5563;
}
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease-in-out;
}
.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.notification-toast.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
html.dark .notification-toast.error {
    background-color: #3f2224;
    color: #fda4af;
    border-color: #991b1b;
}
.notification-toast button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.notification-toast button:hover {
    opacity: 1;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
    transition: all 0.2s ease;
}
.back-button:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}
.back-button svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s ease;
}
.back-button:hover svg {
    transform: translateX(4px);
}
html.dark .back-button {
    background-color: #374151;
    color: #d1d5db;
}
html.dark .back-button:hover {
    background-color: #4b5563;
    color: #f9fafb;
}
.recipe-rating-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center; 
}
@media (min-width: 768px) {
    .recipe-rating-section {
        flex-direction: row;
        justify-content: space-between;
        text-align: right; 
    }
}
html.dark .recipe-rating-section {
    border-top-color: #374151;
}
.rating-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
html.dark .rating-info h3 {
    color: #f9fafb;
}
.current-rating {
    font-size: 0.875rem;
    color: #6b7280;
}
html.dark .current-rating {
    color: #9ca3af;
}
.rating-interaction {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rating-prompt {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
}
html.dark .rating-prompt {
    color: #d1d5db;
}
.star-rating .star.hovered,
.star-rating .star:hover {
    color: #f59e0b !important;
    transform: scale(1.1);
}
.star-rating .star:hover ~ .star {
    color: #d1d5db !important;
}
html.dark .star-rating .star:hover ~ .star {
    color: #4b5563 !important;
}
.notification-toast.success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
html.dark .notification-toast.success {
    background-color: #1c3224;
    color: #86efac;
    border-color: #22c55e;
}
.no-recipes-found {
    text-align: center;
    width: 100%;
    padding: 2rem;
    color: #6b7280;
    grid-column: 1 / -1;
}
.loader-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Image search page */
.vision-hero {
    padding: 4rem 1rem;
    background-color: #f0fdf9;
    background-image: 
        radial-gradient(at 10% 20%, hsla(160, 80%, 95%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 90%, hsla(200, 80%, 95%, 1) 0px, transparent 50%);
    text-align: center;
}

html.dark .vision-hero {
    background-color: #0d1a2e;
    background-image: 
        radial-gradient(at 10% 20%, hsla(160, 70%, 15%, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 90%, hsla(200, 70%, 20%, 0.3) 0px, transparent 50%);
}

.vision-hero-content {
    max-width: 48rem;
    margin: 0 auto;
}

.vision-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}
html.dark .vision-title {
    color: #f9fafb;
}

.vision-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
}

html.dark .vision-subtitle {
    color: #d1d5db;
}

.upload-box-vision {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-box-vision:hover {
    border-color: #14b8a6;
    background-color: #f0fdf9;
    transform: scale(1.02);
}
.upload-box-vision-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.upload-box-vision:hover .upload-box-vision-content {
    transform: translateY(-4px);
}
html.dark .upload-box-vision {
    background-color: #1f2937;
    border-color: #4b5563;
}
html.dark .upload-box-vision:hover {
    border-color: #2dd4bf;
    background-color: #112b27;
}
html.dark .upload-box-vision .text-jade-500 {
    color: #2dd4bf;
}

/* Unavailable action links */
.disabled-link {
    cursor: not-allowed;
    opacity: 0.6;
}
