/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: hsl(220, 25%, 97%);
    --foreground: hsl(220, 30%, 15%);
    --card: hsl(220, 25%, 99%);
    --card-foreground: hsl(220, 30%, 15%);
    --primary: #304697;
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 25%, 92%);
    --secondary-foreground: hsl(220, 30%, 25%);
    --muted: hsl(220, 20%, 94%);
    --muted-foreground: hsl(220, 15%, 45%);
    --accent: #304697;
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: #304697;
    --destructive-foreground: hsl(0, 0%, 100%);
    --border: hsl(220, 20%, 88%);
    --input: hsl(220, 20%, 88%);
    --ring: #304697;
    --radius: 0.75rem;
    --charcoal: hsl(220, 30%, 15%);
    --warm-gray: hsl(220, 15%, 45%);
    --primary-opacity: 0.8;
}


body {
    font-family: "Outfit", sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: rgba(245, 247, 252, 0.8);
    backdrop-filter: blur(12px);
}

.announce-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #fcd34d;
}

.announce-banner span {
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.route-planner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.route-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.route-search .input {
    min-width: 220px;
}

.route-store {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.route-store:last-child {
    border-bottom: none;
}

.route-store-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.route-store-distance {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.route-planner-placeholder {
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--muted);
    color: var(--muted-foreground);
    text-align: center;
}

.route-planner-map {
    width: 100%;
    height: 360px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--border);
}

.route-planner-route {
    margin-top: 1rem;
}

.route-search-results {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.route-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 900px) {
    .route-planner-grid {
        grid-template-columns: 1fr;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--foreground);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #304697 0%, #4a5fb5 100%);
    box-shadow: 0 4px 20px -4px rgba(48, 70, 151, 0.3);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.08);
    height: 5vh;
}

.btn-primary:hover {
    background: #263a7d;
    box-shadow: 0 8px 30px -8px rgba(48, 70, 151, 0.25);
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: hsl(220, 25%, 88%);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-destructive {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-destructive:hover {
    background: #c72a1e;
}

.btn-icon {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
}

.btn-sm {
    height: 2.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    height: 3rem;
    padding: 0.5rem 2rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card */
.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

/* Input */
.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input {
    width: 100%;
    height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: 0.5rem;
    background: var(--background);
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(48, 70, 151, 0.15);
}

.input-icon {
    position: relative;
}

.input-icon input {
    padding-left: 2.5rem;
}

.input-icon .icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.input-password {
    position: relative;
}

.input-password input {
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: var(--foreground);
}

textarea.input {
    height: auto;
    min-height: 5rem;
    resize: vertical;
}

/* Select */
.select {
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: 0.5rem;
    background: var(--background);
    font-family: inherit;
    font-size: 0.875rem;
}

.select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(48, 70, 151, 0.15);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.scroll-reveal.animate-fade-in,
.scroll-reveal.animate-slide-up,
.scroll-reveal.animate-scale-in {
    animation: none;
}

.scroll-reveal.animate-fade-in {
    transform: translateY(8px);
}

.scroll-reveal.animate-slide-up {
    transform: translateY(20px);
}

.scroll-reveal.animate-scale-in {
    transform: scale(0.96);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        hsl(220, 25%, 97%) 0%,
        hsl(220, 25%, 92%) 100%
    );
    display: flex;
    flex-direction: column;
}

.login-header {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
}

.login-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 28rem;
}

.login-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #304697 0%, #4a5fb5 100%);
    box-shadow: 0 4px 20px -4px rgba(48, 70, 151, 0.3);
}

.demo-info {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(48, 70, 151, 0.05);
    border: 1px solid var(--border);
}

.demo-info p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.demo-info div {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Dashboard */
.dashboard-hero {
    margin-bottom: 2rem;
}

.dashboard-hero h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-hero p {
    color: var(--muted-foreground);
}

.search-box {
    position: relative;
    max-width: 28rem;
    margin-bottom: 2rem;
}

.category-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-pill {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: none;
}

.category-pill:hover {
    background: hsl(220, 25%, 88%);
}

.category-pill.active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 20px -4px rgba(48, 70, 151, 0.3);
}

.tag-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tag-pill {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: none;
}

.tag-pill:hover {
    background: hsl(220, 25%, 88%);
}

.tag-pill.active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 20px -4px rgba(48, 70, 151, 0.3);
}

.tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-size: 0.875rem;
    cursor: pointer;
}

.tag-option input {
    accent-color: var(--primary);
}

/* Dish Grid */
.dish-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .dish-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dish-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dish-card {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.dish-card:hover {
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.dish-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.dish-card:hover .dish-image img {
    transform: scale(1.1);
}

.dish-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(25, 25%, 15%, 0.6), transparent);
}

.dish-category {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(48, 70, 151, 0.9);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 500;
}

.dish-info {
    padding: 1rem;
}

.dish-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.dish-card:hover .dish-name {
    color: var(--primary);
}

.dish-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.dish-meta > div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dish-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

.dish-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--secondary);
    color: var(--secondary-foreground);
}

/* Dish Detail */
.detail-hero {
    position: relative;
    height: 16rem;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .detail-hero {
        height: 20rem;
    }
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        hsla(25, 25%, 15%, 0.7),
        transparent,
        transparent
    );
}

.detail-hero-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 1;
}

.detail-hero-content .dish-category {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.detail-hero h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.detail-hero .dish-meta {
    color: rgba(255, 255, 255, 0.8);
}

/* Tabs */
.tabs {
    margin-top: 1.5rem;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--muted);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .tabs-list {
        grid-template-columns: 1fr;
    }
}

.tab-trigger {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-trigger:hover {
    color: var(--foreground);
}

.tab-trigger.active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.08);
}

.tab-content {
    display: none;
}

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

/* Shopping List */
.shopping-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.shopping-servings {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.shopping-servings .servings-input {
    width: 90px;
    padding: 0.25rem 0.5rem;
}

.shopping-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(48, 70, 151, 0.1);
}

.shopping-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.stat-available {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent);
}

.stat-needed {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--destructive);
}

.ingredient-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ingredient-group-title {
    font-weight: 600;
    color: var(--foreground);
    margin: 0.75rem 0 0.25rem;
    grid-column: 1 / -1;
}

.ingredient-group-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.4rem 0;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
}

.ingredient-group-row .input {
    font-weight: 600;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card);
    cursor: pointer;
    transition: all 0.2s;
}

.ingredient-item:hover {
    border-color: rgba(48, 70, 151, 0.3);
}

.report-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    z-index: 60;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.report-panel {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--card, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 1rem;
    z-index: 59;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.report-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.report-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.report-panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.report-panel-close {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--muted-foreground, #64748b);
}

.report-form .input-group {
    margin-bottom: 0.75rem;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-item {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    background: var(--card, #ffffff);
}

.report-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.report-item-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.report-meta {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--muted-foreground, #64748b);
}

.report-message {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.report-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ingredient-item.checked {
    background: rgba(230, 51, 37, 0.1);
    border-color: rgba(230, 51, 37, 0.3);
}

.ingredient-checkbox {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--primary);
    border-radius: 0.25rem;
    flex-shrink: 0;
    position: relative;
}

.ingredient-item.checked .ingredient-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.ingredient-item.checked .ingredient-checkbox::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.ingredient-name {
    flex: 1;
}


.ingredient-item.checked .ingredient-name {
    color: var(--muted-foreground);
    text-decoration: line-through;
}

.ingredient-amount {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Preparation */
.prep-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.08);
}

.prep-section + .prep-section {
    margin-top: 1.5rem;
}

.prep-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.prep-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.prep-icon.ingredients-icon {
    background: rgba(230, 51, 37, 0.1);
    color: var(--accent);
}

.prep-icon.steps-icon {
    background: rgba(48, 70, 151, 0.1);
    color: var(--primary);
}

.prep-header h3 {
    font-weight: 600;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .ingredients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ingredient-badge {
    background: rgba(48, 70, 151, 0.08);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.ingredient-badge strong {
    font-weight: 500;
    color: var(--foreground);
}

.ingredient-badge span {
    color: var(--muted-foreground);
}

.prep-content {
    color: var(--foreground);
    white-space: pre-wrap;
    line-height: 1.75;
}

/* Admin Page */
.admin-tabs {
    margin-top: 1.5rem;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card);
    transition: background 0.2s;
}

.user-item:hover {
    background: rgba(48, 70, 151, 0.05);
}

.user-item-info p {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.user-item-info small {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.user-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.permission-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.user-role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.user-role-badge.admin {
    background: rgba(48, 70, 151, 0.1);
    color: var(--primary);
}

.user-role-badge.student {
    background: rgba(230, 51, 37, 0.1);
    color: var(--accent);
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .form-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Toast */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    max-width: 20rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12);
    animation: slideInRight 0.3s ease-out;
    display: none;
}

.toast.show {
    display: block;
}

.toast.success {
    border-left: 4px solid var(--accent);
}

.toast.error {
    border-left: 4px solid var(--destructive);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    max-width: 48rem;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    animation: scaleIn 0.3s;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.modal-close:hover {
    color: var(--foreground);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.modal-footer button {
    height: 4vh;
}

/* No Content */
.no-dishes {
    text-align: center;
    padding: 4rem 1rem;
}

.no-dishes .icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: hsla(25, 15%, 45%, 0.3);
}

.no-dishes p {
    color: var(--muted-foreground);
}

/* User Info */
.user-info {
    display: none;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .user-info {
        display: inline;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

/* Language Dropdown Styles - Füge dies zu styles.css hinzu */

/* Language Dropdown Container */
.language-dropdown {
    position: relative;
}

/* Language Trigger Button */
.language-trigger {
    position: relative;
}

.language-flag {
    font-size: 1.25rem;
    line-height: 1;
}

/* Language Menu */
.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 100;
    min-width: 16rem;
    max-width: 20rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 28rem;
    display: flex;
    flex-direction: column;
}

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

/* Language Menu Header */
.language-menu-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

/* Language Menu List */
.language-menu-list {
    padding: 0.5rem;
    overflow-y: auto;
    max-height: 24rem;
}

/* Custom Scrollbar für Language Menu */
.language-menu-list::-webkit-scrollbar {
    width: 6px;
}

.language-menu-list::-webkit-scrollbar-track {
    background: transparent;
}

.language-menu-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.language-menu-list::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* Language Menu Item */
.language-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.language-menu-item:hover {
    background: var(--secondary);
}

.language-menu-item.active {
    background: rgba(48, 70, 151, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.language-menu-item .language-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.language-menu-item .language-name {
    flex: 1;
}

/* Animation für neue Sprache */
@keyframes languageChange {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.language-trigger.changing .language-flag {
    animation: languageChange 0.3s ease-out;
}

/* Mobile Optimierung */
@media (max-width: 640px) {
    .language-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(100%);
        max-height: 60vh;
    }

    .language-menu.show {
        transform: translateY(0);
    }

    .language-menu-list {
        max-height: calc(60vh - 3rem);
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .language-menu {
        background: hsl(220, 25%, 12%);
        border-color: hsl(220, 20%, 20%);
    }

    .language-menu-item:hover {
        background: hsl(220, 25%, 16%);
    }

    .language-menu-item.active {
        background: rgba(48, 70, 151, 0.2);
    }
}

/* Language Dropdown - Passend zur UI */

.language-dropdown {
    position: relative;
}

/* Language Trigger Button */
.language-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.language-flag {
    font-size: 1.125rem;
    line-height: 1;
}

.language-code {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Language Menu */
.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 100;
    min-width: 14rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 26rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Language Menu Header */
.language-menu-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--charcoal);
    background: var(--background);
}

.language-menu-header i {
    color: var(--primary);
}

/* Language Menu List */
.language-menu-list {
    padding: 0.25rem;
    overflow-y: auto;
    max-height: 22rem;
}

/* Custom Scrollbar */
.language-menu-list::-webkit-scrollbar {
    width: 5px;
}

.language-menu-list::-webkit-scrollbar-track {
    background: transparent;
}

.language-menu-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.language-menu-list::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* Language Menu Item */
.language-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.language-menu-item:hover {
    background: var(--muted);
    color: var(--foreground);
}

.language-menu-item.active {
    background: rgba(48, 70, 151, 0.08);
    color: var(--primary);
    font-weight: 500;
}

.language-menu-item.active:hover {
    background: rgba(48, 70, 151, 0.12);
}

.language-menu-item .language-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.language-menu-item .language-name {
    flex: 1;
}

.language-menu-item i {
    color: var(--primary);
}

.language-menu.mobile-sheet {
    position: fixed !important;
    left: 0;
    right: 0;
    top: auto !important;
    bottom: 0;
    max-width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%);
    max-height: 60vh;
    z-index: 200;
}

.language-menu.mobile-sheet.show {
    transform: translateY(0);
}

.language-menu.mobile-sheet .language-menu-list {
    max-height: calc(60vh - 3rem);
}

/* Force language menu as bottom sheet only on small screens */
@media (max-width: 640px) {
    .language-menu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        max-width: 100% !important;
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(100%) !important;
        max-height: 60vh;
        z-index: 200;
    }

    .language-menu.show {
        transform: translateY(0) !important;
    }

    .language-menu-list {
        max-height: calc(60vh - 3rem);
    }
}

@media (max-width: 640px) {
    .language-dropdown .language-menu {
        position: fixed !important;
        left: 0;
        right: 0;
        top: auto !important;
        bottom: 0;
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(100%);
        max-height: 60vh;
        z-index: 200;
    }

    .language-dropdown .language-menu.show {
        transform: translateY(0);
    }

    .language-dropdown .language-menu-list {
        max-height: calc(60vh - 3rem);
    }
}

/* Animation für Sprachwechsel */
@keyframes languageChange {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.language-trigger.changing .language-flag {
    animation: languageChange 0.4s ease-out;
}

@media (max-width: 640px) {
    .language-menu {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(100%);
        max-height: 60vh;
    }

    .language-menu.show {
        transform: translateY(0);
    }

    .language-menu-list {
        max-height: calc(60vh - 3rem);
    }
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card);
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title:before {
    content: "";
    width: 4px;
    height: 1.5rem;
    background: var(--accent);
    border-radius: 2px;
}

.form-grid.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-grid.cols-3 {
        grid-template-columns: 1fr;
    }
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.daily-recipe {
    margin: 1.5rem 0;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(255, 255, 255, 0));
}

.daily-recipe-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.daily-recipe-header p {
    margin: 0;
    color: var(--muted-foreground);
}

.daily-recipe-card .dish-card {
    margin: 0;
}

/* Ingredient Input Rows */
.ingredient-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

#newDishIngredientsList {
    margin-bottom: 1rem;
}

.ingredient-input-row .input {
    margin: 0;
}

/* Select Styling */
.select {
    appearance: none;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-size: 0.875rem;
    height: 2.5rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    width: 100%;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='https://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px hsla(var(--accent), 0.1);
}

.select option {
    background: var(--background);
    color: var(--foreground);
}

/* Enhanced Button Styling */
.btn-lg {
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
}

.image-input-container {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.image-input-tabs {
    display: flex;
    background: var(--muted);
}

.image-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.image-tab.active {
    background: var(--background);
    color: var(--foreground);
    border-bottom: 2px solid var(--accent);
}

.image-tab:hover:not(.active) {
    background: var(--muted);
    color: var(--foreground);
}

.image-input-content {
    padding: 1rem;
    display: none;
}

.image-input-content.active {
    display: block;
}

.image-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-drop-zone.drag-over {
    border-color: var(--accent);
    background: hsla(var(--accent), 0.05);
}

.drop-zone-content p {
    margin: 1rem 0 0.5rem 0;
    color: var(--muted-foreground);
}

.upload-trigger {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

.upload-trigger:hover {
    text-decoration: none;
}

.image-preview {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: hsla(0, 0%, 0%, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-image:hover {
    background: hsla(0, 0%, 0%, 0.9);
}

/* Mobile Optimierung */
@media (max-width: 640px) {
    .form-section {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .ingredient-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ingredient-input-row .input {
        margin-bottom: 0.5rem;
    }

    .image-drop-zone {
        padding: 1.5rem;
        min-height: 120px;
    }

    .image-input-tabs {
        flex-direction: row;
    }

    .image-tab {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .language-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(100%);
        max-height: 65vh;
        box-shadow: 0 -4px 20px -4px rgba(0, 0, 0, 0.15);
    }

    .language-menu.show {
        transform: translateY(0);
    }

    .language-menu-list {
        max-height: calc(65vh - 3.5rem);
    }

    .language-code {
        display: none;
    }
}

/* Shopping List Page Styles */
.shopping-list-page {
    min-height: 100vh;
    background: var(--background);
}

.connection-status {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.status-success {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-dot.status-error {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-dot.status-warning {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.shopping-list-status {
    margin-bottom: 2rem;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.status-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-card.status-success {
    border-color: #22c55e;
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.05) 0%,
        transparent 100%
    );
}

.status-card.status-warning {
    border-color: #f59e0b;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.05) 0%,
        transparent 100%
    );
}

.status-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.status-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.shopping-list-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.shopping-dish-group {
    border-bottom: 1px solid var(--border);
}

.shopping-dish-group:last-child {
    border-bottom: none;
}

.dish-group-header {
    background: var(--muted);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dish-group-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
}

.dish-group-servings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.dish-group-servings .servings-input {
    width: 80px;
    padding: 0.25rem 0.5rem;
}

.shopping-items {
    padding: 0.5rem 0;
}

.shopping-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
    gap: 1rem;
}

.shopping-item:hover {
    background: var(--muted);
}

.shopping-item.checked {
    opacity: 0.6;
    background: rgba(34, 197, 94, 0.05);
}

.shopping-item.checked .shopping-item-text {
    text-decoration: line-through;
    color: var(--muted-foreground);
}

.shopping-item-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.shopping-item-toggle:hover {
    color: var(--foreground);
}

.shopping-item.checked .shopping-item-toggle {
    color: #22c55e;
}

.shopping-item-text {
    flex: 1;
    font-size: 1rem;
    color: var(--foreground);
    transition: all 0.2s;
}

.item-status {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.shopping-item:not(.checked) .item-status {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.shopping-item.checked .item-status {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
}

.empty-state p {
    margin: 1rem 0 0.5rem;
    font-size: 1.125rem;
    color: var(--foreground);
}

.empty-state .text-muted {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .status-cards {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .shopping-item {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .item-status {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 640px) {
    .route-search {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .route-search .input {
        width: 100%;
        min-width: 0;
    }
}

/* Add Dishes to Shopping List Modal */
.add-dishes-modal h3 {
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.dish-selection {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.dish-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    gap: 1rem;
}

.dish-option:last-child {
    border-bottom: none;
}

.dish-option:hover {
    background: var(--muted);
}

.dish-option.selected {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.dish-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.dish-option .dish-info {
    flex: 1;
}

.dish-option .dish-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.dish-option .dish-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.dish-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 0.25rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.dish-option.selected .dish-checkbox {
    background: #22c55e;
    border-color: #22c55e;
}

.dish-option.selected .dish-checkbox::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .dish-option {
        padding: 0.75rem;
    }

    .dish-thumb {
        width: 50px;
        height: 50px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.spinner-content {
    position: relative;
    z-index: 10000;
    text-align: center;
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.spinner-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.spinner-svg {
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.spinner-text {
    margin: 0;
    color: var(--foreground);
    font-weight: 500;
    font-size: 1rem;
}

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

/* Enhanced Busy Spinner for Translations */
.busy-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(32, 41, 64, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.busy-spinner-overlay.show {
    opacity: 1;
    visibility: visible;
}

.busy-spinner {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.busy-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--muted);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.busy-spinner-text {
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

#createUserBtn {
    margin-top: 2.2vh;
}
