/* Main Index Page Styles */
.overlay-index-redesigned {
    position: relative !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important;
    max-width: 600px !important;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    margin: 0 0 60px 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
}

.main-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
    height: auto;
    min-height: auto;
    padding: 0;
    box-sizing: border-box;
}

/* Logo and Title */
.logo-container {
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    width: 220px !important;
    height: 100px !important;
    margin: 6px 0 6px 0 !important;
}

.app-title {
    font-size: 24px !important;
    color: #000 !important;
    margin: 0 0 4px 0 !important;
    font-weight: bold !important;
}

.intro-description {
    font-size: 15px !important;
    color: #333 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4 !important;
    /* font-style: italic; */
}

/* Upload Section */
.upload-section {
    background: linear-gradient(135deg, #000000, #333333);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.upload-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.upload-btn:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

input[type="file"] {
    display: none !important;
}

/* Feature Highlights (now part of logo-container) */

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    display: flex;
    align-items: center;
}

.feature-text span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* User Profile Section */
.user-profile-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.user-info-header {
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid #f1f3f4;
}

.user-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px !important;
    color: #000 !important;
    margin: 0 0 4px 0 !important;
    font-weight: 600 !important;
}

.user-email {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
}

.user-credit-badge {
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.credit-number {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.credit-label {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1;
    margin-top: 2px;
}

/* Favorites Section */
.favorites-container {
    padding: 20px;
}

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

.favorites-header h4 {
    font-size: 24px !important;
    color: #000 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-icon, .restaurant-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.restaurant-icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 8px;
    opacity: 0.8;
}

.favorites-count {
    background: #f0f0f0;
    color: #000000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ddd;
}

.favorites-content {
    overflow: visible;
    height: auto;
}

/* Empty States */
.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.empty-subtext {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Logout Section */
.logout-container {
    padding: 16px 20px;
    background: #fafbfc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.logout-btn {
    background: #000000 !important;
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    width: 100%;
    justify-content: center;
}

.logout-btn:hover {
    background: #333333 !important;
    transform: translateY(-1px);
}

.logout-icon {
    font-size: 16px;
}

/* Login Section */
.login-container {
    background: linear-gradient(135deg, #000000, #333333);
    padding: 40px 20px;
    text-align: center;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.login-title {
    font-size: 18px !important;
    color: white !important;
    margin: 0 0 8px 0 !important;
    font-weight: 600 !important;
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px 0;
}

/* Google Sign-in Styling */
.g_id_signin {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    border-radius: 8px !important;
    overflow: hidden;
}

.g_id_signin > div {
    border-radius: 8px !important;
}

[data-theme="filled_black"] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

[data-theme="filled_black"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

/* Results Section */
.results-section {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 200px;
}

/* Dish Cards */
.section-title {
    color: #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-top: 20px;
}

.dish-card {
    border: 1px solid #eee;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.dish-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #000;
}

.dish-card-new {
    animation: fadeInSlideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dish-card-new:nth-child(1) { animation-delay: 0.1s; }
.dish-card-new:nth-child(2) { animation-delay: 0.2s; }
.dish-card-new:nth-child(3) { animation-delay: 0.3s; }
.dish-card-new:nth-child(4) { animation-delay: 0.4s; }
.dish-card-new:nth-child(5) { animation-delay: 0.5s; }
.dish-card-new:nth-child(6) { animation-delay: 0.6s; }
.dish-card-new:nth-child(7) { animation-delay: 0.7s; }
.dish-card-new:nth-child(8) { animation-delay: 0.8s; }

.dish-name {
    color: #000;
    margin: 0 0 10px 0;
}

.dish-description {
    color: #666;
    margin-bottom: 10px;
    text-align: left;
}

.bilingual {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: baseline;
    flex-wrap: wrap;
}

.chinese {
    color: #808080;
    font-size: 0.9em;
    margin-left: 0;
}

/* Ingredients */
.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ingredient-tag {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #000000;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    border: 1px solid #ddd;
}

.ingredient-tag:hover, .ingredient-tag.active {
    background: #000000;
    color: white;
}

.ingredient-detail {
    display: none;
    background: #f8f9fa;
    padding: 12px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #333;
    line-height: 1.6;
    border: 1px solid #eee;
}

.ingredient-container {
    display: inline-block;
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.45);
}

/* Remove Button */
.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    background: rgba(220, 53, 69, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px 0 rgba(220, 53, 69, 0.25);
    transition: all 0.3s ease;
    line-height: 1;
    min-width: 24px;
    text-align: center;
}

.remove-btn:hover {
    transform: translateY(-2px);
    background: rgba(220, 53, 69, 0.9);
    box-shadow: 0 4px 12px 0 rgba(220, 53, 69, 0.45);
}

.remove-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px 0 rgba(220, 53, 69, 0.3);
}

/* Loading States */
.loading {
    position: relative;
    color: #666;
    background: white;
    width: auto;
    min-width: 200px;
    max-width: 90%;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
}

.loading-footer {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    text-align: center;
    margin: 20px auto;
    max-width: 300px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: -25px;
    right: 20px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    padding: 5px 0;
    font-style: italic;
    opacity: 0.8;
    white-space: nowrap;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .overlay-index-redesigned {
        width: 95vw !important;
        padding: 15px !important;
    }
    
    .main-section {
        gap: 15px;
    }
    
    .app-title {
        font-size: 20px !important;
    }
    
    .intro-description {
        font-size: 14px !important;
        margin: 0 0 10px 0 !important;
    }
    
    .user-info-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    /* Feature Highlights Mobile Styles */
    
    .feature-highlights {
        gap: 5px;
    }
    
    .feature-item {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .feature-icon {
        font-size: 18px;
        width: 24px;
        height: 24px;
    }
    
    .feature-text span {
        font-size: 13px;
    }
    
    .footer {
        font-size: 11px;
        bottom: -20px;
        right: 15px;
        padding: 3px 0;
    }
} 