:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #8b6ce8;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background: #f8f9fa;
    --warm-purple: #7c3aed;
    --warm-blue: #3b82f6;
    --warm-lavender: #a855f7;
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    unicode-bidi: embed;
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "liga", "kern";
    font-feature-settings: "liga", "kern";
}

/* Hero Background */
.hero-background {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Floating Ingredients Animation */
.floating-ingredients {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ingredient {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.15;
}

.ingredient.tomato {
    top: 8%;
    left: 12%;
    animation-delay: 0s;
}

.ingredient.onion {
    top: 18%;
    right: 8%;
    animation-delay: 1s;
}

.ingredient.carrot {
    top: 28%;
    left: 25%;
    animation-delay: 2s;
}

.ingredient.pepper {
    top: 38%;
    right: 22%;
    animation-delay: 3s;
}

.ingredient.herb {
    top: 48%;
    left: 8%;
    animation-delay: 4s;
}

.ingredient.garlic {
    top: 58%;
    right: 35%;
    animation-delay: 5s;
}

.ingredient.broccoli {
    top: 68%;
    left: 18%;
    animation-delay: 0.5s;
}

.ingredient.eggplant {
    top: 78%;
    right: 15%;
    animation-delay: 1.5s;
}

.ingredient.corn {
    top: 88%;
    left: 35%;
    animation-delay: 2.5s;
}

.ingredient.avocado {
    top: 15%;
    left: 45%;
    animation-delay: 3.5s;
}

.ingredient.potato {
    top: 25%;
    right: 40%;
    animation-delay: 4.5s;
}

.ingredient.lemon {
    top: 35%;
    left: 65%;
    animation-delay: 0.8s;
}

.ingredient.mushroom {
    top: 45%;
    right: 55%;
    animation-delay: 1.8s;
}

.ingredient.banana {
    top: 55%;
    left: 75%;
    animation-delay: 2.8s;
}

.ingredient.apple {
    top: 65%;
    right: 5%;
    animation-delay: 3.8s;
}

.ingredient.cucumber {
    top: 75%;
    left: 55%;
    animation-delay: 4.8s;
}

.ingredient.lettuce {
    top: 85%;
    right: 45%;
    animation-delay: 1.2s;
}
.ingredient.strawberry {
    top: 12%;
    left: 75%;
    animation-delay: 2.3s;
}
.ingredient.grapes {
    top: 52%;
    left: 42%;
    animation-delay: 3.7s;
}
.ingredient.pineapple {
    top: 72%;
    right: 28%;
    animation-delay: 5.2s;
}


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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-body .container {
    max-width: none;
    margin: 0;
    padding: 20px 40px;
}

/* Mobile Responsive Container */
@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
        max-width: 100%;
    }
    
    .dashboard-body .container {
        padding: 15px 20px;
    }
    
    .upload-section {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 8px;
    }
    
    .dashboard-body .container {
        padding: 10px 15px;
    }
    
    .upload-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
}

/* Hero Header Styles */
.hero-header {
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.logo-icon {
    position: relative;
    font-size: 4rem;
    color: #fff;
}

.logo-icon .sparkle {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    color: #ffd700;
    animation: sparkle 3s ease-in-out infinite;
}

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

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% { 
        transform: scale(1.2) rotate(90deg);
        opacity: 0.7;
    }
    50% { 
        transform: scale(0.8) rotate(180deg);
        opacity: 1;
    }
    75% { 
        transform: scale(1.1) rotate(270deg);
        opacity: 0.8;
    }
}

/* Custom Logo Styles */
.logo-svg {
    height: 192px;
    width: auto;
    max-width: 800px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Landing page logo - 50% larger, no animations */
.hero-header .logo-svg {
    height: 288px;
    max-width: 1200px;
}

/* All other pages - no hover animations */

.brand-name {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #fff, #ffd700, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease-in-out infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 10px 0 0 0;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    margin-bottom: 50px;
}

.hero-subtitle p {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Features Preview */
.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Sign In Card */
.signin-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.signin-header {
    margin-bottom: 30px;
}

.signin-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.signin-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.signin-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Enhanced Google Sign In Button */
.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    margin-bottom: 25px;
}

.google-signin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.google-signin-btn:hover::before {
    left: 100%;
}

.google-signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.auth-note {
    margin: 15px 0 25px 0;
    color: rgba(102, 126, 234, 0.8);
    font-style: italic;
}

.auth-note small {
    font-size: 0.9rem;
}

.signin-benefits {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.benefit i {
    color: #4CAF50;
    font-size: 1rem;
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: #fff;
}

/* Recipe Index Specific Styles */
.dashboard-body {
    background: linear-gradient(135deg, var(--background) 0%, #ffeaa7 100%);
    min-height: 100vh;
}

.dashboard-background {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 10px 0 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 100;
    overflow: visible;
}

.dashboard-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dashboard-header .user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(102, 126, 234, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.dashboard-logo .brand-name {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(102, 126, 234, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.user-avatar i {
    font-size: 2rem;
    color: #667eea;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-welcome {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Admin Button - Unified Styling for Header */
.admin-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.2);
}

.admin-btn:hover {
    background: linear-gradient(45deg, #f7931e, #ff6b35);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.admin-btn i {
    font-size: 0.9rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header h2 i {
    color: #667eea;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Enhanced Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 50px;
    padding: 6px;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #667eea;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    max-width: 200px;
}

.tab-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Enhanced Drag Drop Zone */
.drag-drop-zone {
    border: 3px dashed #e0e0e0;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(255, 147, 251, 0.02));
}

.drag-drop-zone:hover,
.drag-drop-zone.drag-over {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(255, 147, 251, 0.05));
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.drag-drop-icon i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
    display: block;
}

.drag-drop-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.drag-drop-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.browse-btn {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    transition: color 0.2s;
}

.browse-btn:hover {
    color: #5a67d8;
}

.supported-formats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.format-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced URL Input */
.url-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.url-icon {
    color: #667eea;
    font-size: 1.2rem;
    min-width: 20px;
}

.url-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.process-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Enhanced Processing Section */
.processing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.processing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.processing-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Enhanced Recipes Section */
.recipes-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.recipes-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Enhanced Recipe Cards */
.recipe-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 120px;
    box-sizing: border-box;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: left 0.3s ease;
}

.recipe-card:hover::before {
    left: 0;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.2);
}

/* Horizontal Recipe Card Layout */
.recipe-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.recipe-info {
    flex: 1;
    min-width: 0;
}

.recipe-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.recipe-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    min-width: 150px;
    max-width: 200px;
}

.recipe-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin-left: 20px;
    min-width: 140px;
    flex-shrink: 0;
}

.recipe-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.recipe-tags-preview {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.recipe-tags-preview .tag {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-more {
    background: var(--text-secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
}

.recipe-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.recipe-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.recipe-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.recipe-tags-preview .tag {
    display: inline-block;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(255, 147, 251, 0.1));
    color: #667eea;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.recipe-date {
    font-size: 0.8rem;
    color: #999;
    font-weight: 300;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.recipe-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
}

.view-page-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.recipe-content-area {
    cursor: pointer;
    flex: 1;
}

.no-recipes {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 60px 40px;
    font-size: 1.2rem;
}

/* Search Enhancement */
.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.search-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

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

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: rgba(255, 107, 53, 0.9);
    color: white;
    border: 1px solid rgba(255, 107, 53, 0.8);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.logout-btn:hover {
    background: rgba(255, 87, 34, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.auth-section {
    text-align: center;
}

.google-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.upload-section {
    margin-bottom: 40px;
}

.upload-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    border-bottom-color: #667eea;
    color: #667eea;
}

.tab-content {
    min-height: 200px;
}

.tab-content.hidden {
    display: none;
}

.drag-drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.drag-drop-zone.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.drag-drop-content .drag-drop-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.drag-drop-content h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.drag-drop-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.browse-btn {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.url-input-section {
    display: flex;
    gap: 12px;
    align-items: center;
}

.url-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.process-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.process-btn:hover {
    background: #5a67d8;
}

.processing-section {
    text-align: center;
    padding: 40px;
}

.processing-section.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.recipes-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}


.recipe-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    transition: all 0.2s;
}

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

.recipe-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.recipe-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.recipe-meta {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.search-btn:hover {
    background: #5a67d8;
}

.no-recipes {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 40px;
}

.recipe-tags-preview {
    margin-top: 12px;
    margin-bottom: 8px;
}

.recipe-tags-preview .tag {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 4px;
    margin-bottom: 4px;
}

.recipe-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 8px;
}

/* Recipe page styles */
.recipe-container {
    max-width: 800px;
    margin: 0 auto;
}

.recipe-loading {
    text-align: center;
    padding: 40px;
}

.recipe-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.recipe-header h1 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.recipe-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Recipe Images */
.recipe-images {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.recipe-images h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.recipe-image:hover {
    transform: scale(1.05);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.image-modal-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.recipe-meta .meta-item {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.recipe-tags {
    margin: 15px 0;
}

.recipe-tags .tag {
    background: #f0f0f0;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.original-source {
    margin-top: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    font-size: 0.9rem;
}

.original-source h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.original-source a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.original-source a:hover {
    text-decoration: underline;
}

.recipe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.recipe-section h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.ingredients-list li::before {
    content: "▪";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.instructions-list {
    padding-left: 20px;
}

.instructions-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}

.recipe-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
    border-top: 2px solid #eee;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.print-btn {
    background: #38a169;
    color: white;
}

.print-btn:hover {
    background: #2f855a;
}

.error-message {
    text-align: center;
    padding: 40px;
}

.error-message h2 {
    color: #e53e3e;
    margin-bottom: 15px;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.8;
}

.language-toggle {
    display: flex;
    gap: 4px;
    margin: 0 15px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .user-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .upload-tabs {
    flex-direction: row-reverse;
}

[dir="rtl"] .url-input-section {
    flex-direction: row-reverse;
}

[dir="rtl"] .recipe-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .search-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .recipe-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-toggle {
    order: -1;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .url-input-section {
        flex-direction: column;
    }
    
    .url-input {
        width: 100%;
    }
    
    .recipe-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recipe-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* Recipe title clickable link */
.recipe-title-link {
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.recipe-title-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Recipe action icons container */
.recipe-action-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Individual action buttons - Minimal design */
.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: none;
    box-shadow: none;
}

.action-btn .icon {
    font-size: 14px;
    display: inline-block;
    line-height: 1;
    font-style: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* View button - minimal blue */
.view-btn {
    color: #3b82f6;
    border-color: #dbeafe;
}

.view-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

/* Edit button - minimal gray */
.edit-btn {
    color: #6b7280;
    border-color: #e5e7eb;
}

.edit-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #4b5563;
}

/* Delete button - minimal red */
.delete-btn {
    color: #ef4444;
    border-color: #fecaca;
}

.delete-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* International Language Support */
.recipe-content {
    direction: auto;
    text-align: start;
}

.recipe-title, 
.recipe-description,
.ingredient-item,
.instruction-step {
    direction: auto;
    text-align: start;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* RTL Language Support */
[dir="rtl"] .recipe-card,
[dir="rtl"] .recipe-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .recipe-meta {
    flex-direction: row-reverse;
}

/* Language-specific font optimization */
:lang(ar), :lang(he), :lang(fa), :lang(ur) {
    font-family: 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Tahoma', 'Arial Unicode MS', sans-serif;
    line-height: 1.8;
}

:lang(zh), :lang(ja), :lang(ko) {
    font-family: 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Noto Sans CJK JP', 'Noto Sans CJK KR', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
}

:lang(th), :lang(vi), :lang(hi), :lang(ta) {
    font-family: 'Noto Sans Thai', 'Noto Sans Devanagari', 'Noto Sans Tamil', system-ui, sans-serif;
    line-height: 1.8;
}

/* Delete Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-container {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #ff6b6b, #e53e3e);
    color: white;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-header i {
    font-size: 1.1rem;
}

.modal-content {
    padding: 25px;
    text-align: center;
}

.modal-content p {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.recipe-title-preview {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.warning-text {
    font-size: 0.9rem;
    color: #ff6b6b;
    font-weight: 500;
}

.modal-actions {
    padding: 0 25px 25px 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    max-width: 140px;
}

.modal-btn.cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.modal-btn.cancel-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.modal-btn.delete-btn {
    background: linear-gradient(135deg, #ff6b6b, #e53e3e);
    color: white;
}

.modal-btn.delete-btn:hover {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.recipe-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ======================== */
/*   NOTIFICATION BAR      */
/* ======================== */

.notification-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 20px 20px;
    margin: 0 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease-out;
}

.notification-bar.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.notification-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.processing-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.progress-spinner {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.progress-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.notification-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.count-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.mark-read-btn, .clear-all-btn, .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mark-read-btn:hover, .clear-all-btn:hover, .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Deleted Recipe Modal */
.deleted-recipe-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: fadeInOut 2.5s ease-in-out;
}

.deleted-recipe-modal .modal-content {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.deleted-recipe-modal .modal-content i {
    font-size: 1.2rem;
    color: #fef2f2;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* Clickable notification styling */
.notification-item.clickable:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Edit Recipe Image Upload Dropzone */
.edit-image-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-image-drop-zone:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

.edit-image-drop-zone.drag-over {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.edit-image-drop-zone .upload-placeholder {
    color: #6b7280;
}

.edit-image-drop-zone .upload-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.edit-image-drop-zone .upload-placeholder h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.edit-image-drop-zone .upload-placeholder p {
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    color: #6b7280;
}

.edit-image-drop-zone .file-types {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.edit-image-drop-zone .file-type {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.edit-image-drop-zone .upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
}

.edit-image-drop-zone .upload-loading i {
    font-size: 2rem;
}

.edit-image-drop-zone .upload-loading span {
    font-size: 1rem;
    font-weight: 500;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Notification Alerts */
.notification-alerts {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-alert {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.3s ease-out;
}

.notification-alert:last-child {
    border-bottom: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(16, 172, 132, 0.1);
    border-left: 4px solid #10ac84;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
}

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

.alert-success .alert-icon {
    color: #1dd1a1;
}

.alert-error .alert-icon {
    color: #ff6b6b;
}

.alert-message {
    font-weight: 500;
}

.alert-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.alert-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.alert-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.retry-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.retry-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    transform: scale(1.1);
}

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

.retry-btn:disabled:hover {
    background: none;
    color: rgba(255, 255, 255, 0.8);
    transform: none;
}

.notification-retry-btn {
    background: none;
    border: none;
    color: rgba(52, 211, 153, 0.8);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.notification-retry-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    transform: scale(1.1);
}

.notification-retry-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.notification-retry-btn:disabled:hover {
    background: none;
    color: rgba(52, 211, 153, 0.8);
    transform: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification-bar {
        margin: 0 1rem;
        margin-bottom: 1rem;
    }
    
    .notification-content {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .notification-status {
        justify-content: center;
    }
    
    .notification-alert {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
        text-align: center;
    }
    
    .alert-content {
        justify-content: center;
    }
}

/* Simple 2D Icon Styles */
.view-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
}

.view-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.edit-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    clip-path: polygon(0 75%, 25% 50%, 100% 0, 100% 25%, 75% 100%, 0 100%);
}

.delete-icon {
    display: inline-block;
    width: 14px;
    height: 16px;
    background: currentColor;
    border-radius: 0 0 4px 4px;
    position: relative;
}

.delete-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 2px;
    width: 10px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

.delete-icon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 4px;
    width: 6px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* Arrow back button styles */
.back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.back-arrow::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid currentColor;
}

/* Update back button to remove text and use only arrow */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
}

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

/* ====================================
   NOTIFICATION SYSTEM STYLES
   ==================================== */

/* Notification Bell Icon */
.notification-icon-container {
    position: relative;
    margin-right: 20px;
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.notification-bell:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.notification-bell.has-notifications {
    color: #ffd700;
}

.notification-bell.shake-once {
    animation: bellShake 1s ease-in-out;
}

@keyframes bellShake {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    transform: translate(25%, -25%);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: translate(25%, -25%) scale(1); }
    50% { transform: translate(25%, -25%) scale(1.1); }
}

/* Notification Tooltip */
.notification-tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipSlideIn 0.3s ease forwards, tooltipFadeOut 2s ease 2s forwards;
}

.notification-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.9);
}

@keyframes tooltipSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(248, 247, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.25);
    width: 380px;
    max-height: 500px;
    z-index: 99999;
    opacity: 0;
    backdrop-filter: blur(25px);
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.notification-panel:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    background: rgba(102, 126, 234, 0.9);
    border-radius: 20px 20px 0 0;
    color: white;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    background: rgba(102, 126, 234, 0.9);
    border-radius: 20px 20px 0 0;
    color: white;
}

.notification-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
}

.notification-panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-panel-actions {
    display: flex;
    gap: 8px;
}

.mark-read-btn, .clear-all-btn, .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mark-all-read-btn, .close-panel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.mark-read-btn:hover, .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mark-all-read-btn:hover, .close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-panel-content {
    max-height: 420px;
    overflow-y: auto;
    width: 100%;
    min-height: 100px;
}

/* Custom scrollbar for notification panel */
.notification-panel-content::-webkit-scrollbar {
    width: 6px;
}

.notification-panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notification-panel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.notification-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Notification List */
.notification-list {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Custom scrollbar for notification list */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.notification-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.notification-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-source {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.notification-error-details {
    font-size: 0.8rem;
    color: #dc2626;
    background: #fef2f2;
    padding: 8px;
    border-radius: 6px;
    margin-top: 6px;
    border: 1px solid #fecaca;
}

/* Notification Actions */
.notification-actions {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.notification-delete-btn {
    background: rgba(220, 38, 38, 0.1);
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.notification-delete-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.2);
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.15);
}

.notification-delete-btn:active {
    transform: scale(0.95);
}

/* Loading and Empty States */
.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: #6b7280;
}

.notification-loading i {
    color: var(--primary-color);
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.notification-empty i {
    font-size: 2rem;
    color: #d1d5db;
    margin-bottom: 12px;
    display: block;
}

.notification-empty p {
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}

.notification-empty small {
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
    
    .notification-source {
        max-width: 150px;
    }
}

/* Animation for new notifications */
@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-item.new {
    animation: slideInNotification 0.5s ease;
}

/* Single Page App Styles */
.hidden {
    display: none !important;
}

.view {
    min-height: 100vh;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.loading-spinner i {
    color: var(--primary-color);
    animation: spin 2s linear infinite;
}

.loading-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.loading-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification System Styles */
.notification-panel .notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: background-color 0.2s ease;
}

.notification-panel .notification-item:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.notification-panel .notification-item.unread {
    background-color: rgba(102, 126, 234, 0.08);
}

.notification-panel .notification-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.75rem;
}

.notification-panel .notification-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-panel .notification-icon.success {
    background-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.notification-panel .notification-icon.error {
    background-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.notification-panel .notification-details {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: block;
}

.notification-panel .notification-message {
    color: var(--text-primary) !important;
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    display: block !important;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-panel .notification-time {
    color: var(--text-secondary) !important;
    font-size: 0.75rem;
    display: block !important;
    margin-top: 2px;
}

.notification-panel .notification-error-details {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    background: rgba(255, 107, 107, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.notification-panel .notification-actions {
    margin-left: 0.5rem;
}

.notification-panel .notification-delete-btn {
    background: rgba(255, 107, 107, 0.15);
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    opacity: 0.8;
}

.notification-panel .notification-delete-btn:hover {
    background-color: rgba(255, 107, 107, 0.3);
    color: #dc2626;
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.delete-all-item {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0.75rem;
    justify-content: center;
}

.delete-all-notifications-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.delete-all-notifications-btn:hover {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Clean Recipe Cards - Compact Layout */
.recipes-grid .recipe-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    position: relative !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    height: auto !important;
    min-height: unset !important;
}

.recipes-grid .recipe-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color) !important;
}

.recipes-grid .recipe-card .recipe-card-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;
}

.recipes-grid .recipe-card .recipe-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.recipes-grid .recipe-card .recipe-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.recipes-grid .recipe-card .recipe-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #1a202c !important;
    line-height: 1.3 !important;
}

.recipes-grid .recipe-card .recipe-description {
    font-size: 0.85rem !important;
    color: #718096 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.recipes-grid .recipe-card .recipe-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

.recipes-grid .recipe-card .meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    font-size: 0.75rem !important;
    color: #4a5568 !important;
    background: rgba(74, 85, 104, 0.1) !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 4px !important;
}

.recipes-grid .recipe-card .meta-item i {
    font-size: 0.7rem !important;
    color: var(--primary-color) !important;
}

.recipes-grid .recipe-card .recipe-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

.recipes-grid .recipe-card .action-btn {
    width: 2.5rem !important;
    height: 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

/* Removed conflicting button styles - using minimal design instead */

.recipes-grid .recipe-card .action-btn i {
    font-size: 16px !important;
}

/* Minimal button styles for recipe grid */
.recipes-grid .recipe-card .action-btn {
    background: #f8fafc !important;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
}

.recipes-grid .recipe-card .action-btn:hover {
    background: #f1f5f9 !important;
    border-color: #d1d5db !important;
}

.recipes-grid .recipe-card .view-btn {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #dbeafe !important;
}

.recipes-grid .recipe-card .view-btn:hover {
    background: #dbeafe !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

.recipes-grid .recipe-card .edit-btn {
    background: #f8fafc !important;
    color: #4b5563 !important;
    border-color: #e5e7eb !important;
}

.recipes-grid .recipe-card .edit-btn:hover {
    background: #f1f5f9 !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.recipes-grid .recipe-card .delete-btn {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

.recipes-grid .recipe-card .delete-btn:hover {
    background: #fecaca !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

/* Remove any image containers */
.recipes-grid .recipe-card .recipe-image {
    display: none !important;
}

/* New Slick Recipe List Design */
.search-filter-bar {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.9rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.tag-filter-indicator {
    display: flex;
    align-items: center;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 0.5rem;
}

.clear-tag-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
}

.clear-tag-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Recipe List Styles */
.recipes-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.recipe-list-item {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
}

.recipe-list-item:last-child {
    border-bottom: none;
}

.recipe-list-item:hover {
    background: #f9fafb;
}

.recipe-list-item.expanded {
    background: #f8fafc;
    border-left: 3px solid var(--primary-color);
}

.recipe-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.recipe-name-container {
    flex: 1;
    min-width: 0; /* Allows text truncation */
}

.recipe-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.recipe-list-title:hover {
    color: var(--primary-color);
}

.recipe-list-title .highlight {
    background: #fef3c7;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 700;
}

.recipe-expand-icon {
    color: #9ca3af;
    transition: transform 0.2s ease;
    font-size: 0.8rem;
    min-width: 1rem;
}

.recipe-list-item.expanded .recipe-expand-icon {
    transform: rotate(90deg);
}

/* Expanded Tray */
.recipe-tray {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    animation: slideDown 0.2s ease-out;
}

.recipe-list-item.expanded .recipe-tray {
    display: block;
}

.recipe-tray-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-actions-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.recipe-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.recipe-action-btn.view-btn {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.recipe-action-btn.view-btn:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.recipe-action-btn.edit-btn {
    background: #f0f9f4;
    color: #059669;
    border: 1px solid #d1fae5;
}

.recipe-action-btn.edit-btn:hover {
    background: #d1fae5;
    border-color: #a7f3d0;
}

.recipe-action-btn.delete-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.recipe-action-btn.delete-btn:hover {
    background: #fecaca;
    border-color: #fca5a5;
}

.recipe-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.recipe-import-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.recipe-import-date i {
    font-size: 0.8rem;
    color: #9ca3af;
}

.recipe-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.recipe-tags-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-right: 0.5rem;
}

.recipe-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.recipe-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-input-wrapper {
        min-width: 100%;
    }
    
    .search-box-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .recipe-main-row {
        padding: 0.75rem 1rem;
    }
    
    .recipe-list-title {
        font-size: 1rem;
    }
    
    .recipe-tray {
        padding: 0 1rem 1rem 1rem;
    }
    
    .recipe-actions-row {
        flex-direction: column;
    }
    
    .recipe-action-btn {
        text-align: center;
        justify-content: center;
    }
    
    .recipe-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .recipe-tags-label {
        margin-right: 0;
    }
}

/* No recipes message for list */
.no-recipes-list {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
    font-size: 1.1rem;
}

.no-recipes-list i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

/* Hide old grid when using new list */
.recipes-grid {
    display: none;
}

/* Camera interface styles */
.camera-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.camera-preview-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

#camera-preview {
    width: 100%;
    height: 300px;
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    display: block;
}

.camera-preview-container:empty::before {
    content: "📷 Camera preview will appear here";
    color: #9ca3af;
    font-size: 1.1rem;
    text-align: center;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.camera-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.camera-btn:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

.camera-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

#capture-photo-btn {
    background: #dc2626;
}

#capture-photo-btn:hover {
    background: #b91c1c;
}

#stop-camera-btn {
    background: #6b7280;
}

#stop-camera-btn:hover {
    background: #4b5563;
}

/* Orientation toggle button */
.orientation-toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    z-index: 10;
}

.orientation-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.orientation-toggle-btn.landscape {
    transform: rotate(90deg);
}

.orientation-toggle-btn.landscape:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Camera preview orientation classes */
.camera-preview-container.portrait {
    aspect-ratio: 3/4;
}

.camera-preview-container.landscape {
    aspect-ratio: 4/3;
}

.camera-tips {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.camera-tips i {
    color: #fbbf24;
    margin-right: 0.5rem;
}

/* Captured image styles */
.captured-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
}

.captured-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.camera-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    color: #dc2626;
    text-align: center;
}

.camera-error i {
    font-size: 3rem;
    color: #fbbf24;
}

/* Mobile camera styles */
@media (max-width: 768px) {
    body:has(.camera-section) {
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .camera-section {
        padding: 0;
        margin: 0;
        gap: 0;
        height: 100vh;
        position: relative;
    }

    .camera-preview-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        z-index: 1000;
        background: #000;
        overflow: hidden;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        transform: translateX(0);
    }

    .camera-preview-container.portrait {
        aspect-ratio: unset;
    }

    .camera-preview-container.landscape {
        aspect-ratio: unset;
    }

    #camera-preview {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        object-fit: cover;
        border-radius: 0;
        margin: 0;
        padding: 0;
        display: block;
        border: none;
        position: relative;
    }
    
    /* Hide orientation toggle on mobile - auto-detect instead */
    .orientation-toggle-btn {
        display: none;
    }
    
    .mobile-camera-close-btn {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        font-size: 1.3rem;
    }
    
    .mobile-camera-close-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(1.1);
    }
    
    /* Move camera controls to center overlay */
    .camera-controls {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1001;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(15px);
        border-radius: 50%;
        padding: 0;
        flex-direction: row;
        width: auto;
    }
    
    .camera-btn {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        border: 3px solid rgba(255, 255, 255, 0.8);
        font-size: 1.5rem;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: auto;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .camera-btn:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }
    
    #capture-photo-btn {
        background: rgba(220, 38, 38, 0.9);
        color: white;
        border-color: rgba(255, 255, 255, 0.8);
    }
    
    #capture-photo-btn:hover {
        background: rgba(220, 38, 38, 1);
        transform: scale(1.1);
    }
    
    .camera-btn span {
        display: none;
    }
    
    .camera-tips {
        position: fixed;
        bottom: 40px;
        left: 20px;
        right: 20px;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        text-align: center;
        font-size: 0.85rem;
        padding: 12px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
    
    .camera-tips i {
        color: #fbbf24;
    }
    
    /* Hide other content when camera is active on mobile */
    .mobile-camera-active .upload-tabs,
    .mobile-camera-active .tab-content:not(#camera-tab),
    .mobile-camera-active .recipes-section,
    .mobile-camera-active .dashboard-header {
        display: none;
    }
    
    .mobile-camera-active #camera-tab {
        display: block !important;
    }
    
    /* Prevent body overflow when camera is active */
    .mobile-camera-active {
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    
    .mobile-camera-active .container {
        padding: 0;
        margin: 0;
        max-width: none;
    }
    
    .mobile-camera-active .dashboard-main {
        padding: 0;
        margin: 0;
    }
    
    /* Mobile dashboard adjustments */
    .dashboard-main {
        padding: 1rem;
    }
    
    .upload-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
        font-size: 0.9rem;
        padding: 12px 8px;
    }
}

/* Mobile Dashboard Header Styles */
@media (max-width: 768px) {
    .dashboard-header {
        margin: 10px 0 20px;
        border-radius: 15px;
    }
    
    .dashboard-header .header-content {
        padding: 15px 20px;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .dashboard-logo .brand-name {
        font-size: 1.8rem;
    }
    
    .dashboard-tagline {
        display: none;
    }
    
    .user-info {
        gap: 10px;
        padding: 8px 15px;
        background: rgba(102, 126, 234, 0.06);
    }
    
    .user-welcome {
        display: none;
    }
    
    .user-name {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
    
    .user-details {
        min-width: 0;
        flex-shrink: 1;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        border-radius: 20px;
        gap: 6px;
        min-width: auto;
    }
    
    .logout-btn span {
        display: none;
    }
    
    .logout-btn i {
        margin: 0;
    }
    
    /* Notification bell mobile adjustments */
    .notification-bell {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .notification-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
}

/* Clickable Elements */
.recipe-title:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    transition: all 0.3s ease !important;
}

.clickable-notification {
    transition: all 0.3s ease !important;
}

.clickable-notification:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(5px) !important;
}

.clickable-notification .notification-message {
    transition: all 0.3s ease !important;
}

.clickable-notification:hover .notification-message {
    color: var(--accent-color) !important;
}

/* User Profile Picture */
.profile-picture {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.profile-picture:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.05) !important;
}

.user-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
}

.user-avatar .fas.fa-user-circle {
    font-size: 2.5rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Notification Panel Header Actions */
.notification-panel-actions {
    display: flex !important;
    gap: 0.5rem !important;
}

.delete-all-notifications-btn,
.mark-all-read-btn,
.close-panel-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 6px !important;
    padding: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
}

.delete-all-notifications-btn:hover {
    background: rgba(255, 107, 107, 0.2) !important;
    border-color: rgba(255, 107, 107, 0.4) !important;
    color: #ff6b6b !important;
}

.mark-all-read-btn:hover {
    background: rgba(16, 172, 132, 0.2) !important;
    border-color: rgba(16, 172, 132, 0.4) !important;
    color: #10ac84 !important;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Recipe Page Styles for SPA */
.recipe-page {
    min-height: 100vh;
    background: var(--gradient-bg);
    padding: 0;
    position: relative;
}

.recipe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.recipe-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.recipe-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.recipe-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.meta-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: white;
    font-weight: 500;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.original-source {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid var(--accent-color);
}

.original-source h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.original-source a {
    color: var(--accent-color);
    text-decoration: none;
    word-break: break-all;
}

.original-source a:hover {
    text-decoration: underline;
}

.recipe-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.recipe-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.recipe-image:hover {
    transform: scale(1.05);
}

.recipe-body {
    display: grid;
    gap: 2rem;
}

.recipe-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

.recipe-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-list, .instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredient-title:first-child {
    margin-top: 0.5rem;
}

.ingredient-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.2rem 0 0.8rem 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ingredient-subtitle::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

.ingredient-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.8rem;
    padding: 1rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    border-left: 4px solid var(--primary-color);
}

.instructions-list {
    counter-reset: instruction;
}

.instructions-list li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    border-left: 4px solid var(--accent-color);
    position: relative;
    padding-left: 3.5rem;
    counter-increment: instruction;
}

.instructions-list li::before {
    content: counter(instruction);
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    background: var(--accent-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.1rem;
    padding: 3rem;
}

.loading-spinner i {
    font-size: 1.5rem;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ff6b6b;
    font-size: 1.1rem;
    padding: 3rem;
    text-align: center;
}

.error-message i {
    font-size: 3rem;
    opacity: 0.7;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

/* Recipe body class */
body.recipe-body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Recipe images at top */
.recipe-images-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.recipe-images-top .recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.recipe-images-top .recipe-image:hover {
    transform: scale(1.02);
}

/* Original source at bottom */
.original-source-bottom {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.original-source-bottom a {
    color: #4ecdc4;
    text-decoration: none;
    word-break: break-all;
    font-weight: 500;
}

.original-source-bottom a:hover {
    color: #26d0ce;
    text-decoration: underline;
}

/* Debug section */
.debug-section {
    text-align: center;
    margin-top: 2rem;
}

.debug-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.debug-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e55100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Debug modal */
.debug-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.debug-modal-content {
    background: #1a1a1a;
    border-radius: 15px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.debug-modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: between;
    align-items: center;
}

.debug-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.debug-modal-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.debug-json {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 60vh;
    overflow: auto;
}

.debug-modal-footer {
    background: #2d2d2d;
    padding: 1rem 1.5rem;
    border-radius: 0 0 15px 15px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.debug-copy-btn, .debug-close-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.debug-copy-btn {
    background: linear-gradient(135deg, #10ac84, #00d2d3);
    color: white;
}

.debug-copy-btn:hover {
    background: linear-gradient(135deg, #0fb87a, #00c3f7);
    transform: translateY(-1px);
}

.debug-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.debug-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive design for recipe page */
@media (max-width: 768px) {
    .recipe-container {
        padding: 1rem;
    }
    
    .recipe-header h1 {
        font-size: 2rem;
    }
    
    .recipe-meta {
        gap: 1rem;
    }
    
    .recipe-images-top {
        grid-template-columns: 1fr;
    }
    
    .recipe-images-top .recipe-image {
        height: 250px;
    }
    
    .instructions-list li {
        padding-left: 3rem;
    }
    
    .instructions-list li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
        top: 1.2rem;
    }
    
    .debug-modal {
        padding: 1rem;
    }
    
    .debug-modal-content {
        max-width: 95vw;
    }
    
    .debug-json {
        font-size: 0.75rem;
    }
}


/* Failed Jobs Debug Modal Styles */
.debug-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.debug-modal-container {
    background: white;
    border-radius: 15px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.debug-modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debug-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debug-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.debug-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.debug-modal-content {
    flex: 1;
    overflow: auto;
    padding: 1.5rem;
    background: #f8f9fa;
}

.no-failed-jobs {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-failed-jobs i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
    display: block;
}

.failed-jobs-actions {
    margin-bottom: 1.5rem;
    text-align: right;
}

.danger-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
}

.failed-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.failed-job-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.failed-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.failed-job-source {
    flex: 1;
    min-width: 200px;
}

.source-type {
    background: #6c757d;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.failed-job-date {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.failed-job-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.failed-job-details details {
    margin-bottom: 1rem;
}

.failed-job-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    padding: 0.5rem 0;
    user-select: none;
}

.failed-job-details summary:hover {
    color: #007bff;
}

.failed-job-metadata {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #007bff;
}

.failed-job-metadata p {
    margin-bottom: 0.5rem;
}

.failed-job-metadata code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-all;
    display: block;
    margin-top: 0.5rem;
}

.original-data {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.original-data pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.failed-job-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.failed-job-actions .retry-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.failed-job-actions .retry-btn:hover {
    background: linear-gradient(135deg, #218838, #1abc9c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.failed-job-actions .retry-btn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.failed-job-actions .danger-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments for failed jobs modal */
@media (max-width: 768px) {
    .debug-modal-overlay {
        padding: 1rem;
    }
    
    .debug-modal-container {
        max-width: 100vw;
    }
    
    .failed-job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .failed-job-actions {
        justify-content: flex-start;
    }
    
    .original-data pre {
        font-size: 0.75rem;
    }
}


/* Failed Jobs Page Styles */
.failed-jobs-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.failed-jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.failed-jobs-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.failed-jobs-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.failed-jobs-summary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.failed-jobs-body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}


/* Prompt Display Styles */
.prompt-data {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.prompt-section {
    margin-bottom: 1rem;
}

.prompt-section:last-child {
    margin-bottom: 0;
}

.prompt-section strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1976d2;
    font-weight: 600;
}

.prompt-content {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.4;
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}

.prompt-content:hover {
    background: #f0f0f0;
}

/* Responsive prompt styles */
@media (max-width: 768px) {
    .prompt-content {
        font-size: 0.7rem;
        max-height: 200px;
    }
    
    .prompt-data {
        padding: 0.75rem;
    }
}

/* Admin Panel Styles */
.admin-panel-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.admin-panel-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-panel-background {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.admin-panel-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-panel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.admin-panel-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.admin-panel-header h1 i {
    margin-right: 1rem;
}


.admin-panel-tabs {
    display: flex;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.admin-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.admin-tab-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.admin-tab-content {
    display: none;
}

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

/* Users Management Styles */
.users-loading,
.users-error {
    text-align: center;
    padding: 2rem;
    color: #667eea;
}

.users-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.no-users {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.no-users i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.no-users h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.users-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.users-summary h3 {
    color: #667eea;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.users-summary h3 i {
    margin-right: 0.5rem;
}

.users-summary p {
    color: #666;
    margin: 0;
}

.users-list {
    display: grid;
    gap: 1rem;
}

.user-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.user-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-meta span {
    font-size: 0.8rem;
    color: #999;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.delete-user-btn {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

/* Responsive admin panel styles */
@media (max-width: 768px) {
    .admin-panel-container {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .admin-panel-header {
        text-align: center;
    }
    
    .admin-panel-header h1 {
        font-size: 2rem;
    }
    
    .admin-panel-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-tab-btn {
        padding: 0.75rem;
    }
    
    .user-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .user-meta {
        justify-content: center;
    }
}

/* Recipe View Edit Button Styles */
.recipe-actions {
    margin: 1.5rem 0;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.edit-recipe-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.edit-recipe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6b4190);
}

.edit-recipe-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.edit-recipe-btn i {
    font-size: 1rem;
}

.edit-recipe-btn span {
    font-size: 0.95rem;
}

/* Responsive recipe edit button */
@media (max-width: 768px) {
    .recipe-actions {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .edit-recipe-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .edit-recipe-btn i {
        font-size: 0.9rem;
    }
    
    .edit-recipe-btn span {
        font-size: 0.85rem;
    }
}


/* Enhanced upload tab styles with large icons */
.upload-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    padding: 16px 20px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    color: var(--text-secondary) !important;
    min-width: 100px !important;
    font-weight: 500 !important;
}

.upload-tab:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-2px) !important;
    color: var(--primary-color) !important;
}

.upload-tab.active {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transform: translateY(-2px) !important;
}

.upload-tab:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.upload-tab .tab-icon {
    font-size: 28px !important;
    margin-bottom: 4px !important;
}

.upload-tab .tab-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
}


/* Recipe Action Drawer Styles */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.drawer {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

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

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.drawer-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.drawer-content {
    padding: 25px 30px;
}

.drawer-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.drawer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.drawer-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.drawer-meta .meta-item i {
    color: var(--primary-color);
    width: 16px;
}

.drawer-tags {
    margin-bottom: 25px;
}

.drawer-tags h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list .tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.drawer-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.drawer-btn.view-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.drawer-btn.view-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.drawer-btn.edit-btn:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.drawer-btn.delete-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

/* Loading and Empty States */
.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.loading-state i, .empty-state i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.loading-state p, .empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
}

.clear-search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: var(--secondary-color);
}

/* Search and Filter Bar */
.search-filter-bar {
    margin-bottom: 30px;
    padding: 0 5px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-search {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #f3f4f6;
    color: var(--text-primary);
}

.recipes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.recipes-header h2 {
    margin: 0;
    color: rgba(0, 0, 0, 0.9) !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.recipe-count {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.8) !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Recipe Tags Styles */
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.recipe-tags .tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.recipe-tags .tag-more {
    background: #f3f4f6;
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .drawer {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .drawer-header, .drawer-content {
        padding: 20px;
    }
    
    .drawer-actions {
        gap: 10px;
    }
}


/* Recipes Header */
.recipes-header {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recipes-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.recipes-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
    flex-shrink: 0;
}

.add-recipe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    white-space: nowrap;
}

.add-recipe-btn i {
    font-size: 1rem;
}

.add-recipe-modal .recipe-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.add-recipe-modal .recipe-modal-content {
    display: block;
}

.add-recipe-modal .edit-recipe-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Confirmation Modal Styles */
.confirmation-modal {
    max-width: 500px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.12);
}

.confirmation-modal .recipe-modal-content {
    display: block;
    text-align: center;
    padding: 20px 0;
}

.confirmation-modal .recipe-modal-content p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.6;
}

.confirmation-modal .recipe-modal-header h2 {
    color: white;
    font-size: 1.5rem;
}

.confirmation-modal .recipe-modal-header i {
    color: #f59e0b;
}

.confirmation-modal .recipe-modal-actions {
    justify-content: center;
    gap: 16px;
}

/* Search and Filter Bar */
.search-filter-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    min-width: 280px;
    max-width: 350px;
}

.search-box i.fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 38px 10px 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
    color: #9ca3af;
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.tag-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.tag-filter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-filter i.fa-tag {
    color: var(--primary-color);
    font-size: 13px;
}

.tag-select {
    padding: 10px 32px 10px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 160px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tag-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 10px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.tag-pill:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.tag-pill span {
    line-height: 1;
}

.remove-tag {
    background: none;
    border: none;
    color: var(--primary-color);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    font-weight: 600;
}

.remove-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.15);
}

.clear-all-tags {
    padding: 5px 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.clear-all-tags:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.1);
}

.filter-info {
    color: #64748b;
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 500;
}

/* Responsive Search Bar */
@media (max-width: 1024px) {
    .recipes-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filter-bar {
        justify-content: flex-start;
    }

    .tag-filter-wrapper {
        align-items: flex-start;
    }

    .selected-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
        width: 100%;
    }

    .tag-filter-wrapper {
        width: 100%;
    }

    .tag-filter {
        width: 100%;
    }

    .tag-select {
        width: 100%;
        flex: 1;
    }

    .filter-info {
        text-align: left;
    }

    .selected-tags {
        justify-content: flex-start;
    }
}

/* Recipe Grid Layout */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* Recipe Card */
.recipe-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Recipe Card Image */
.recipe-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.recipe-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-thumbnail {
    transform: scale(1.08);
}

/* Recipe Card Overlay for Edit/Delete buttons */
.recipe-card-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-card:hover .recipe-card-overlay {
    opacity: 1;
}

.btn-edit-overlay,
.btn-delete-overlay {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.btn-edit-overlay {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.btn-edit-overlay:hover {
    background: rgba(59, 130, 246, 1);
    transform: scale(1.1);
}

.btn-delete-overlay {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.btn-delete-overlay:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

/* Recipe Card Footer */
.recipe-card-footer {
    padding: 16px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.recipe-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
}

.btn-load-more {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-load-more:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .recipes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .recipe-card-image {
        height: 220px;
    }
    
    .recipe-card-footer {
        padding: 14px 16px 18px;
    }
    
    .recipe-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recipe-card-image {
        height: 280px;
    }
    
    .recipe-card-footer {
        padding: 16px 20px 20px;
    }
    
    .recipe-card-title {
        font-size: 1.1rem;
    }
}

/* Recipe Rolodex Styles */
/* Recipe List Only Layout */
.recipes-list-only {
    max-width: 1750px;
    margin: 40px auto;
    padding: 24px;
}

.rolodex-wide {
    width: 100%;
    min-height: 600px;
}

.recipes-rolodex-app {
    max-width: 1800px;
    margin: 40px auto;
    padding: 24px;
    gap: 32px;
    display: grid;
    grid-template-columns: 0.8fr 2fr;
}

@media (max-width: 900px) {
    .recipes-rolodex-app {
        grid-template-columns: 1fr;
    }
}

/* Left: Recipe Details */
.recipe-details {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.recipe-details header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pill {
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,.08);
    padding: 6px 10px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.recipe-details h1 {
    font-size: clamp(36px, 7.5vw, 54px);
    margin: 4px 0 6px;
    letter-spacing: 0.2px;
    color: white;
}

.recipe-details .meta {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.recipe-details .meta b {
    color: white;
    font-weight: 600;
}

.hero {
    margin: 18px 0;
    height: 220px;
    width: 100%;
    border-radius: 16px;
    background: #0e1116;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.06);
}

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

.grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
}

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

.card {
    background: #171b21;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 14px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c5ccdb;
}

ul.ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

ul.ingredients li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: white;
}

ul.ingredients li:before {
    content: "•";
    color: var(--primary-color);
    line-height: 1.2;
    margin-top: 1px;
}

ol.steps {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

ol.steps li {
    color: white;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.12);
    color: white;
}

.btn:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.35);
    outline-offset: 2px;
}

/* Right: Rolodex list */
.rolodex {
    position: relative;
    height: 560px;
    perspective: 1200px;
    user-select: none;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
}

.rolodex header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rolodex header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.8) !important;
}

.rolodex-wide header h2 {
    color: rgba(0, 0, 0, 0.9) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.controls {
    display: flex;
    gap: 8px;
}

.iconbtn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.02);
    cursor: pointer;
    color: white;
}

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

.iconbtn:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.35);
    outline-offset: 2px;
}

.wheel {
    position: relative;
    height: 520px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: #171b21;
    width: calc(780px * 1.25);
    margin: 0 auto;
}

/* Stack of cards with 3D tilt */
.stack {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.stack::-webkit-scrollbar {
    width: 6px;
}

.stack::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.stack::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.stack::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.stack .item-container {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto 8px auto;
    pointer-events: auto;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.stack .item-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stack .item-container.active {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.stack .item {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    background: #171b21;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
    flex: 0 0 auto;
}

.item .title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.item .tag {
    display: none;
}

.item.active {
    outline: 2px solid rgba(102, 126, 234, 0.35);
    outline-offset: 0;
}

/* Visible slice hint */

/* Tooltip chip for keyboard hint */
.hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    padding: 6px 10px;
}

kbd {
    background: #0c0f13;
    border: 1px solid rgba(255,255,255,.18);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #cbd5e1;
}

/* Item Container */
.item-container {
    position: relative;
    width: 100%;
}

/* View Button */
.view-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(59, 130, 246, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.view-btn:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.view-btn i {
    font-size: 16px;
}

/* Recipe Modal */
.recipe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.recipe-modal {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 32px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,.5);
}

.recipe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.recipe-modal-pills {
    display: flex;
    gap: 10px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.recipe-modal h1 {
    font-size: 2.5rem;
    margin: 0 0 20px;
    color: white;
    font-weight: 700;
}

.recipe-modal .meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.recipe-photos {
    margin-bottom: 32px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.recipe-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.edit-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.edit-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.edit-recipe-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.delete-photo-btn {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.delete-photo-btn:hover {
    background: rgba(255, 0, 0, 1);
}

.make-cover-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 193, 7, 0.9);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.make-cover-btn:hover {
    background: rgba(255, 193, 7, 1);
    transform: scale(1.1);
}

.cover-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 193, 7, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.cover-badge i {
    font-size: 9px;
}

.label-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
    margin-left: 8px;
}

.image-upload-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.image-upload-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.recipe-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.recipe-modal-section h3 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
}

.recipe-modal-section .ingredients,
.recipe-modal-section .steps {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin: 0;
}

.recipe-modal-section .ingredients li,
.recipe-modal-section .steps li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    line-height: 1.6;
}

.recipe-modal-section .steps li {
    margin-bottom: 12px;
}

.recipe-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recipe-modal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 16px;
}

.recipe-modal .btn:not(.ghost) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.recipe-modal .btn:not(.ghost):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.recipe-modal .btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.recipe-modal .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Edit Recipe Form Styles */
.edit-recipe-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Delete Modal Content */
.delete-modal-content {
    padding: 20px 0;
    text-align: center;
    color: white;
}

.delete-modal-content p {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Raw Data Content */
.raw-data-content {
    max-height: 60vh;
    overflow: auto;
}

@media (max-width: 768px) {
    .recipe-modal {
        padding: 20px;
        margin: 10px;
    }
    
    .recipe-modal-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .recipe-modal h1 {
        font-size: 2rem;
    }
    
    .recipe-modal .meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .wheel {
        width: 95vw;
        max-width: calc(780px * 1.25);
    }
}

/* Enhanced ImportRecipe Styles */
.upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.grab-recipe-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    background: none;
    padding: 0;
    border-radius: 0;
    margin: 0;
    text-shadow: none;
    box-shadow: none;
}

.upload-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-content {
    padding: 20px 20px;
    min-height: 300px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30px;
}

.content-container {
    max-width: none;
    width: 100%;
    text-align: center;
}

.form-header {
    margin-bottom: 20px;
}

.form-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.form-header h3 {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.9);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.form-header p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* URL Form Improvements */
.url-form .input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 20px;
}

.url-form .url-input {
    flex: 1;
    padding: 18px 24px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.url-form .url-input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

.url-form .url-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.url-form .import-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.url-form .import-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.url-form .import-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.url-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* File Drop Zone Improvements */
.file-drop-zone {
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.upload-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.upload-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
}

.upload-placeholder p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.file-types {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-type {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
}

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

/* Camera Improvements */
.camera-instructions {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 18px 25px;
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.camera-instructions i {
    color: var(--primary-color);
}

.video-container {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#camera-preview {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
}

.capture-btn {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dc2626;
    border: 3px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    z-index: 10;
}

.capture-btn:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

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

.camera-error {
    text-align: center;
    color: white;
    padding: 40px;
}

.camera-error i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 20px;
    display: block;
}

.camera-error p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.camera-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.9);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.camera-btn:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.camera-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.captured-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.captured-image {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .upload-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .grab-recipe-title {
        font-size: 20px;
    }
    
    .url-form .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-container {
        padding: 0 10px;
    }
    
    .capture-btn {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        font-size: 20px;
        z-index: 1001;
        top: auto;
    }
}

/* Recipe Source Display */
.recipe-source {
    margin: 15px 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.recipe-source .source-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.recipe-source .source-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.recipe-source .source-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.recipe-source .source-link i:first-child,
.recipe-source .source-info i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.recipe-source .source-link i.fa-external-link-alt {
    font-size: 12px;
    opacity: 0.7;
    margin-left: auto;
}

.recipe-source .fab.fa-youtube {
    color: #FF0000;
}

.recipe-source .fab.fa-facebook {
    color: #1877F2;
}

.recipe-source .fab.fa-instagram {
    color: #E4405F;
}

.recipe-source .fab.fa-tiktok {
    color: #000;
    background: linear-gradient(45deg, #ff0050, #00f2ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.landing-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
}

.landing-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-header {
    margin-bottom: 32px;
}

.logo-container {
    margin-bottom: 24px;
}

.landing-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.landing-description {
    margin-bottom: 32px;
}

.landing-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.landing-actions {
    margin-bottom: 32px;
}

.google-login-btn {
    background: white;
    border: 2px solid #dadce0;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.features-preview {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
    min-width: 120px;
    flex: 1;
    max-width: 150px;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* Responsive design for landing page */
@media (max-width: 768px) {
    .landing-content {
        padding: 32px 24px;
    }

    .landing-title {
        font-size: 2rem;
    }

    .landing-subtitle {
        font-size: 1.1rem;
    }

    .landing-description p {
        font-size: 1rem;
    }

    .features-preview {
        gap: 16px;
    }

    .feature-item {
        min-width: 100px;
        padding: 12px 8px;
    }

    .google-login-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .landing-page {
        padding: 12px;
    }

    .landing-content {
        padding: 24px 20px;
    }

    .landing-logo {
        width: 100px;
        height: 100px;
    }

    .landing-title {
        font-size: 1.8rem;
    }

    .features-preview {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        flex-direction: row;
        max-width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.loading-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-logo {
    margin-bottom: 10px;
}

.loading-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.loading-spinner {
    position: relative;
    width: 50px;
    height: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Dancing Script', cursive;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Loading screen responsive design */
@media (max-width: 480px) {
    .loading-logo-img {
        width: 100px;
        height: 100px;
    }

    .loading-title {
        font-size: 1.8rem;
    }

    .loading-text {
        font-size: 1rem;
        padding: 0 20px;
    }
}


/* Status Messages */
.message {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

.message i {
    font-size: 18px;
    flex-shrink: 0;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.message.success i {
    color: #059669;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message.error i {
    color: #dc2626;
}

.message.info {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.message.info i {
    color: var(--primary-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher-btn {
    background: rgba(255, 107, 53, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.language-switcher-btn:hover {
    background: rgba(255, 87, 34, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.language-switcher-btn i {
    font-size: 16px;
}

.language-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

.language-option {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: background 0.2s ease;
}

[dir="rtl"] .language-option {
    text-align: right;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.language-option .fa-check {
    color: #667eea;
    font-size: 12px;
}

.language-name {
    flex: 1;
}

/* RTL Fixes for Images and Icons */
[dir="rtl"] img,
[dir="rtl"] .recipe-image,
[dir="rtl"] .recipe-photo,
[dir="rtl"] .edit-recipe-photo,
[dir="rtl"] .captured-image {
    direction: ltr;
}

/* Ensure FontAwesome icons render correctly in RTL */
[dir="rtl"] .fa,
[dir="rtl"] .fas,
[dir="rtl"] .far,
[dir="rtl"] .fab {
    direction: ltr;
    display: inline-block;
}

/* Fix for upload icons and images in RTL */
[dir="rtl"] .upload-placeholder i,
[dir="rtl"] .file-drop-zone i,
[dir="rtl"] .camera-section img {
    direction: ltr;
}

/* Fix for recipe card images in RTL */
[dir="rtl"] .recipe-card img,
[dir="rtl"] .recipe-card .recipe-image-container {
    direction: ltr;
}

/* Fix for logo in RTL */
[dir="rtl"] .logo-svg,
[dir="rtl"] .logo-icon img {
    direction: ltr;
}

/* Ensure proper rendering of user avatar */
[dir="rtl"] .user-avatar,
[dir="rtl"] .user-info img {
    direction: ltr;
}

/* Fix notification icons */
[dir="rtl"] .notification-panel i,
[dir="rtl"] .notification-bell i {
    direction: ltr;
}

/* RTL Layout Fixes */
[dir="rtl"] .recipes-grid {
    direction: ltr;
}

[dir="rtl"] .recipe-card {
    direction: rtl;
}

/* Fix tab icons in RTL */
[dir="rtl"] .upload-tabs .tab-icon {
    direction: ltr;
}

/* Fix file type badges in RTL */
[dir="rtl"] .file-types {
    direction: ltr;
}

[dir="rtl"] .file-type {
    direction: ltr;
}
/* Force proper icon rendering in RTL */
[dir="rtl"] i {
    unicode-bidi: embed;
    direction: ltr !important;
}

[dir="rtl"] .fa, 
[dir="rtl"] .fas, 
[dir="rtl"] .far, 
[dir="rtl"] .fab,
[dir="rtl"] .fal,
[dir="rtl"] .fad {
    unicode-bidi: embed !important;
    direction: ltr !important;
    text-align: center !important;
}

/* Force image rendering */
[dir="rtl"] img {
    unicode-bidi: embed !important;
}

/* Ensure FontAwesome loads properly in RTL */
[dir="rtl"] {
    font-family: 'Poppins', 'Arial', 'Helvetica', sans-serif;
}

/* Ensure icons use FontAwesome font in RTL */
[dir="rtl"] .fa::before,
[dir="rtl"] .fas::before,
[dir="rtl"] .far::before,
[dir="rtl"] .fab::before,
[dir="rtl"] .fal::before,
[dir="rtl"] .fad::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
}

[dir="rtl"] .far::before {
    font-weight: 400;
}

[dir="rtl"] .fab::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

/* ===========================
   Email Authentication Styles
   =========================== */

/* Auth Form Container */
.auth-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #333333;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-form .form-group input::placeholder {
    color: rgba(51, 51, 51, 0.5);
}

.auth-form .form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.password-toggle:focus {
    outline: none;
}

.password-toggle i {
    font-size: 1rem;
}

/* Auth Actions */
.auth-actions {
    margin-top: 24px;
    margin-bottom: 20px;
}

.auth-actions .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.05rem;
    justify-content: center;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 16px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px;
}

.link-btn:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    position: relative;
    background: var(--background-gradient);
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.auth-footer p {
    margin: 0;
}

/* Email Login Button */
.email-login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.email-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.email-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.email-login-btn i {
    font-size: 1.2rem;
}

/* Adjust Google login button to match */
.google-login-btn {
    margin: 0 auto;
}

/* Message styles for auth pages */
.message.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-form {
        max-width: 100%;
    }

    .email-login-btn,
    .google-login-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-form .form-group input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .auth-actions .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .email-login-btn,
    .google-login-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
