/* Generate Recipe Page */
.generate-sticky-footer {
    position: sticky;
    bottom: 0;
    padding: 1rem 0;
    margin-top: 2rem;
    background: linear-gradient(to top, var(--bg-primary) 80%, transparent);
    z-index: 10;
    display: flex;
    justify-content: center;
}

.status-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.status-dot.success {
    background-color: var(--color-success);
}

/* Generate Recipe Form */
.generate-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.generate-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--chefmike-orange);
    width: 16px;
}

.form-required {
    color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--chefmike-orange);
    box-shadow: 0 0 0 3px rgba(232, 93, 51, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239E9E9E' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-radio-group,
.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-radio-label,
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-radio-label:hover,
.form-checkbox-label:hover {
    border-color: var(--chefmike-orange);
    background: var(--hover-bg);
}

.form-radio-label input[type="radio"],
.form-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--chefmike-orange);
}

.form-link {
    color: var(--chefmike-orange);
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.form-link:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #D32F2F;
}

/* Recipe Detail */
.recipe-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.recipe-detail-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.recipe-detail-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.recipe-detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-detail-hero-content {
    padding: 2rem;
}

.recipe-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.recipe-detail-summary {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.recipe-detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.recipe-meta-item i {
    color: var(--chefmike-orange);
    font-size: 1.25rem;
}

.recipe-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recipe-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    overflow: hidden;
    z-index: 10;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--hover-bg);
    color: var(--chefmike-orange);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 0;
}

.recipe-detail-body {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.recipe-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.recipe-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.recipe-tab:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.recipe-tab.active {
    color: var(--chefmike-orange);
    border-bottom-color: var(--chefmike-orange);
}

.recipe-tab-content {
    padding: 2rem;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ingredient-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ingredient-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--chefmike-orange);
}

.ingredient-label {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
}

.ingredient-qty {
    font-weight: 600;
    color: var(--text-primary);
}

.ingredient-name {
    color: var(--text-primary);
}

.ingredient-note {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instruction-item {
    display: flex;
    gap: 1rem;
}

.instruction-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--chefmike-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.instruction-text {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 0.25rem;
}

.nutrition-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.nutrition-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
}

.nutrition-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.nutrition-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--chefmike-orange);
    margin-bottom: 0.25rem;
}

.nutrition-unit {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-left: 3px solid var(--chefmike-orange);
    border-radius: var(--radius-sm);
}

.tip-item i {
    color: var(--chefmike-orange);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.tip-item p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===========================
   Recipe Detail - Polished Styles
   =========================== */

/* Hero Image - 3:2 ratio for better food photos */
.recipe-detail .recipe-detail-hero-image {
    aspect-ratio: 3/2;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Title Polish */
.recipe-detail .recipe-detail-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Section Cards */
.recipe-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.recipe-section .section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recipe-section .section-title i {
    color: var(--chefmike-orange);
}

.recipe-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* Content Grid - normal mode */
.recipe-content-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Cooking Mode 2-Column Layout */
.cooking-mode-active .recipe-content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

.cooking-mode-active .ingredients-section {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* Cooking Mode Header */
.cooking-mode-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.cooking-mode-header .cooking-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.cooking-mode-header .cooking-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cooking-mode-header .cooking-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cooking-mode-header .cooking-meta-item i {
    color: var(--chefmike-orange);
}

/* Custom Progress Bar */
.cooking-progress-bar {
    height: 8px;
    background: var(--gray-200, #e5e7eb);
    border-radius: 999px;
    overflow: hidden;
}

.cooking-progress-fill {
    height: 100%;
    background: var(--chefmike-orange);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.cooking-progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Fixed Bottom Navigation */
.cook-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1000px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cook-nav-bar .step-indicator {
    font-weight: 600;
    color: var(--text-primary);
}

/* Button Hover Lift */
.btn-cooking {
    background: var(--chefmike-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cooking:hover {
    background: var(--chefmike-orange-dark, #d14d2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 93, 51, 0.3);
}

.btn-cooking.active {
    background: var(--chefmike-charcoal, #3E4A52);
}

.btn-cooking.active:hover {
    background: var(--gray-700, #374151);
}

/* Current Step Highlight */
.instruction-item.current-step {
    background: rgba(232, 93, 51, 0.08);
    border: 2px solid var(--chefmike-orange);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: -0.25rem;
}

.instruction-item.current-step .instruction-number {
    transform: scale(1.1);
}

/* Checked Items */
.ingredient-item.checked .ingredient-label {
    opacity: 0.5;
    text-decoration: line-through;
}

.instruction-item.checked {
    opacity: 0.5;
}

.instruction-item.checked .instruction-content {
    text-decoration: line-through;
}

/* Polished Ingredient List */
.recipe-section .ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recipe-section .ingredient-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
    transition: opacity 0.2s;
}

.recipe-section .ingredient-item:last-child {
    border-bottom: none;
}

.recipe-section .ingredient-qty {
    font-weight: 700;
    color: var(--chefmike-orange);
    min-width: 80px;
}

/* Polished Instruction List */
.recipe-section .instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recipe-section .instruction-item {
    display: flex;
    gap: 1rem;
    transition: all 0.2s;
}

.recipe-section .instruction-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--chefmike-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.recipe-section .instruction-content {
    flex: 1;
}

.recipe-section .instruction-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.recipe-section .instruction-action i {
    color: var(--chefmike-orange);
    font-size: 0.9rem;
}

.recipe-section .instruction-text {
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 0;
}

.recipe-section .instruction-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.recipe-section .instruction-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recipe-section .instruction-meta-item i {
    color: var(--chefmike-orange);
    font-size: 0.8rem;
}

/* Tips - Green Theme */
.recipe-section.tips-section .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.tip-card {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 1rem;
    border-radius: 0.75rem;
}

.tip-card .tip-icon {
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.tip-card .tip-title {
    color: #166534;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.tip-card .tip-text {
    color: #15803d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tip-card .tip-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

/* Dark mode tip cards */
[data-theme="dark"] .tip-card {
    background: rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .tip-card .tip-title {
    color: #86efac;
}

[data-theme="dark"] .tip-card .tip-text {
    color: #4ade80;
}

/* Nutrition Grid - Polished */
.recipe-section.nutrition-section .nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.recipe-section .nutrition-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-section .nutrition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recipe-section .nutrition-card-primary {
    border-color: var(--chefmike-orange);
    background: rgba(232, 93, 51, 0.05);
}

.recipe-section .nutrition-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--chefmike-orange);
}

.recipe-section .nutrition-card-primary .nutrition-icon {
    background: rgba(232, 93, 51, 0.1);
}

/* Alerts - Color Coded */
.recipe-detail-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recipe-detail-alerts .alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid;
}

.recipe-detail-alerts .alert-allergen {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.recipe-detail-alerts .alert-info {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.recipe-detail-alerts .alert-warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.recipe-detail-alerts .alert-danger {
    background: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.recipe-detail-alerts .alert-nutrition {
    background: #dcfce7;
    border-left-color: #22c55e;
    color: #166534;
}

/* Description toggle */
.recipe-description {
    margin-bottom: 1.5rem;
}

.recipe-description summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary, #f9fafb);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.recipe-description summary:hover {
    background: var(--hover-bg, #f3f4f6);
}

.recipe-description summary::marker,
.recipe-description summary::-webkit-details-marker {
    display: none;
}

.recipe-description summary i {
    transition: transform 0.25s;
}

.recipe-description[open] summary i {
    transform: rotate(180deg);
}

.recipe-description p {
    padding: 1rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .cooking-mode-active .recipe-content-grid {
        grid-template-columns: 1fr;
    }

    .cooking-mode-active .ingredients-section {
        position: static;
        max-height: none;
    }

    .recipe-detail .recipe-detail-title {
        font-size: 1.75rem;
    }

    .cook-nav-bar {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 640px) {
    .recipe-section {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .recipe-section .section-title {
        font-size: 1.2rem;
    }

    .recipe-section.nutrition-section .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-section.tips-section .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Cooking mode body padding for fixed nav */
.cooking-mode-active {
    padding-bottom: 5rem;
}

/* Timer floating panel */
.timer-floating {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99;
    min-width: 200px;
}

.timer-floating .timer-display {
    text-align: center;
    margin-bottom: 0.75rem;
}

.timer-floating .timer-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--chefmike-orange);
    font-variant-numeric: tabular-nums;
}

.timer-floating .timer-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-dialog {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-color: var(--color-success);
}

.toast-success i {
    color: var(--color-success);
    font-size: 1.25rem;
}

.toast span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Onboarding Page */
.onboarding-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-mint-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.onboarding-container {
    width: 100%;
    max-width: 500px;
}

.onboarding-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.onboarding-card .hero-avatar {
    margin: 0 auto 1.5rem;
    display: block;
}

.onboarding-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.onboarding-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
}

.onboarding-form {
    text-align: left;
    margin-top: 2rem;
}

.onboarding-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .onboarding-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 1.5rem;
    color: var(--color-orange);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===========================
   Pantry Page Styles
   Extracted from Pantry.razor
   =========================== */
.pantry-page { min-height: 100vh; background-color: var(--bg-primary); }
.pantry-page .page-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; gap: 1rem; }
.pantry-page .spinner { width: 48px; height: 48px; border: 4px solid var(--border-color); border-top-color: var(--chefmike-orange); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pantry-page .error-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; gap: 1rem; text-align: center; }
.pantry-page .error-state i { font-size: 3rem; color: var(--color-error); }
.pantry-page .error-state h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.pantry-page .error-state p { color: var(--text-secondary); margin: 0; }

/* Pantry stats badge (inside PageHeader) */
.pantry-page .stats-badge { text-align: right; }
.pantry-page .stats-number { font-size: 1.5rem; font-weight: 700; color: var(--chefmike-orange); }
.pantry-page .stats-label { font-size: 0.75rem; color: var(--text-muted); }

/* Pantry filters section */
.pantry-filters { max-width: 80rem; margin-left: auto; margin-right: auto; padding: 1rem; }

.pantry-filters .search-container { position: relative; margin-bottom: 1rem; }
.pantry-filters .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.pantry-filters .search-input { width: 100%; padding: 0.75rem 2.5rem; border: 1px solid var(--border-color); border-radius: 0.75rem; background-color: var(--bg-tertiary); font-size: 1rem; transition: all 0.2s; color: var(--text-primary); }
.pantry-filters .search-input:focus { outline: none; box-shadow: 0 0 0 2px var(--chefmike-orange); border-color: transparent; }
.pantry-filters .search-clear { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); background: transparent; border: none; cursor: pointer; padding: 0.25rem; display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
.pantry-filters .search-clear:hover { color: var(--text-primary); }

.pantry-filters .filter-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pantry-filters .status-tabs { display: flex; background-color: var(--bg-tertiary); border-radius: 0.5rem; padding: 0.25rem; }
.pantry-filters .status-tabs .tab { padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; color: var(--text-secondary); background: transparent; border: none; cursor: pointer; }
.pantry-filters .status-tabs .tab:hover { color: var(--text-primary); }
.pantry-filters .status-tabs .tab-active { background-color: var(--bg-secondary); color: var(--text-primary); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

.pantry-filters .view-toggle-group { display: flex; align-items: center; gap: 0.5rem; }
.pantry-filters .view-label { font-size: 0.875rem; color: var(--text-secondary); display: none; }
@media (min-width: 640px) { .pantry-filters .view-label { display: inline; } }
.pantry-filters .view-toggle { display: flex; background-color: var(--bg-tertiary); border-radius: 0.5rem; padding: 0.25rem; }
.pantry-filters .toggle-btn { padding: 0.5rem; border-radius: 0.375rem; transition: all 0.2s; color: var(--text-muted); background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pantry-filters .toggle-active { background-color: var(--bg-secondary); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); color: var(--chefmike-orange); }

.category-pills-bar { background-color: var(--bg-secondary); border-bottom: 1px solid var(--border-light); max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.category-pills { display: flex; gap: 0.5rem; padding: 0.75rem 0; overflow-x: auto; scrollbar-width: none; }
.category-pills::-webkit-scrollbar { display: none; }
.category-pill { flex-shrink: 0; display: flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; background-color: var(--bg-tertiary); color: var(--text-secondary); border: none; cursor: pointer; }
.category-pill:hover { background-color: var(--hover-bg); }
.pill-all { background-color: var(--text-primary); color: var(--bg-primary); }
.pill-all.pill-active { background-color: var(--text-primary); color: var(--bg-primary); }
.pill-active { background-color: var(--chefmike-orange); color: white; }
.pill-count { font-size: 0.75rem; }
.pill-active .pill-count { color: rgba(255, 255, 255, 0.7); }
.category-pill:not(.pill-active) .pill-count { color: var(--text-muted); }

.pantry-content { max-width: 80rem; margin: 0 auto; padding: 1.5rem 1rem 6rem; }
.pantry-content .results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pantry-content .results-count { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
.pantry-content .clear-all-btn { font-size: 0.875rem; color: var(--chefmike-orange); font-weight: 500; background: transparent; border: none; cursor: pointer; transition: color 0.2s; }
.pantry-content .clear-all-btn:hover { color: var(--color-error); }

.pantry-content .empty-state { text-align: center; padding: 4rem 0; }
.pantry-content .empty-icon { width: 4rem; height: 4rem; background-color: var(--bg-tertiary); border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--text-muted); font-size: 1.5rem; }
.pantry-content .empty-title { color: var(--text-secondary); font-weight: 500; margin: 0; }
.pantry-content .empty-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; margin-bottom: 0; }
.pantry-content .empty-action { margin-top: 1rem; color: var(--chefmike-orange); font-size: 0.875rem; font-weight: 500; background: transparent; border: none; cursor: pointer; transition: color 0.2s; }
.pantry-content .empty-action:hover { color: var(--color-error); }

.category-view { display: flex; flex-direction: column; gap: 0.75rem; }
.category-group { background-color: var(--bg-secondary); border-radius: 0.75rem; border: 1px solid var(--border-color); overflow: hidden; }
.category-header { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; transition: background-color 0.2s; background: transparent; border: none; cursor: pointer; }
.category-header:hover { background-color: var(--hover-bg); }
.category-info { display: flex; align-items: center; gap: 0.75rem; }
.category-name { font-weight: 600; color: var(--text-primary); }
.category-count { font-size: 0.875rem; color: var(--text-muted); }
.category-actions { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); }
.indicator-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background-color: var(--color-success); }
.chevron { transition: transform 0.2s; }
.chevron.expanded { transform: rotate(180deg); }
.category-items { padding: 0 1rem 1rem; }

.subcategory-section { margin-bottom: 1.5rem; }
.subcategory-section:last-child { margin-bottom: 0; }
.subcategory-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; padding-left: 0.25rem; }
.ingredient-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ingredient-chip { display: flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; background-color: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid transparent; cursor: pointer; }
.ingredient-chip:hover { background-color: var(--hover-bg); }
.ingredient-chip.chip-selected { background-color: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success); }
.chip-icon { width: 1rem; height: 1rem; color: var(--border-color); }
.ingredient-chip:hover .chip-icon { color: var(--text-muted); }
.chip-selected .chip-icon { color: var(--color-success); }

.alphabetical-view { position: relative; }
.alphabet-sidebar { position: fixed; right: 0.5rem; top: 50%; transform: translateY(-50%); z-index: 10; display: none; flex-direction: column; gap: 0.125rem; }
@media (min-width: 640px) { .alphabet-sidebar { display: flex; } }
.alphabet-btn { width: 1.5rem; height: 1.25rem; font-size: 0.75rem; font-weight: 500; border-radius: 0.25rem; transition: all 0.2s; color: var(--text-secondary); background: transparent; border: none; cursor: pointer; }
.alphabet-btn:hover { color: var(--chefmike-orange); background-color: var(--chefmike-orange-light); }
.alphabet-btn.disabled { color: var(--border-color); cursor: default; }
.alphabet-btn.disabled:hover { color: var(--border-color); background: transparent; }

.letter-groups { display: flex; flex-direction: column; gap: 1rem; margin-right: 2rem; }
.letter-header { position: sticky; top: 15rem; background-color: var(--bg-primary); padding: 0.25rem 0; z-index: 5; }
.letter-label { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); }
.letter-items { background-color: var(--bg-secondary); border-radius: 0.75rem; border: 1px solid var(--border-color); overflow: hidden; }
.ingredient-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; transition: background-color 0.2s; cursor: pointer; border-bottom: 1px solid var(--border-light); }
.ingredient-row:last-child { border-bottom: none; }
.ingredient-row:hover { background-color: var(--hover-bg); }
.row-checkbox { width: 1.25rem; height: 1.25rem; border-radius: 9999px; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.row-checkbox.checked { background-color: var(--color-success); border-color: var(--color-success); color: white; }
.row-checkbox i { font-size: 0.75rem; }
.row-name { flex: 1; color: var(--text-secondary); }
.row-name.name-selected { color: var(--text-primary); }
.row-category { font-size: 0.75rem; color: var(--text-muted); }
