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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --dark-color: #2C3E50;
    --light-color: #F7F9FC;
    --accent-color: #FFD166;
    --text-color: #FFFFFF;
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    --background-color: #F7F9FC;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(0, 0, 0, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Background Images */
.background-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.bg-image.active {
    opacity: 1;
}

/* 3D Scene Container */
#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* UI Container */
.ui-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Left Column - Food Categories and Restaurants */
.food-content {
    grid-column: 1;
    margin-top: 1rem;
}

/* Right Column - AI Features and Chat */
.ai-content {
    grid-column: 2;
    margin-top: 1rem;
}

/* Navigation Bar */
.navbar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 2rem;
    border: var(--glass-border);
    position: relative;
    z-index: 1000;
}

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

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    text-shadow: var(--text-shadow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-shadow: var(--text-shadow);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

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

.login-btn,
.signup-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.signup-btn {
    background: var(--primary-color);
    color: white;
}

.login-btn:hover,
.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    grid-column: 1 / -1;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: var(--glass-border);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: var(--text-shadow);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature span {
    color: var(--text-color);
    font-size: 0.9rem;
    text-shadow: var(--text-shadow);
}

.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem;
    border: var(--glass-border);
}

.search-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Food Preview */
.food-preview {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 300px;
    height: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: var(--glass-border);
    overflow: hidden;
}

.preview-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.preview-controls button {
    padding: 0.5rem;
    border: none;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    text-shadow: var(--text-shadow);
}

.preview-controls button:hover {
    background: var(--primary-color);
}

/* Categories Section */
.categories {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    border-radius: 20px;
    border: var(--glass-border);
    position: relative;
    z-index: 1;
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: var(--text-shadow);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.category-card {
    position: relative;
    background: rgba(25, 25, 25, 0.95);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.category-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-icon {
    position: absolute;
    bottom: 60px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-card h3 {
    position: absolute;
    bottom: 30px;
    left: 15px;
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-card p {
    position: absolute;
    bottom: 10px;
    left: 15px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Featured Restaurants */
.featured-restaurants {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: var(--glass-border);
    position: relative;
    z-index: 1;
}

.featured-restaurants h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: var(--text-shadow);
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.restaurant-card {
    position: relative;
    background: rgba(25, 25, 25, 0.95);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.restaurant-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.restaurant-info {
    padding: 1rem;
    background: rgba(25, 25, 25, 0.95);
}

.restaurant-info h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.restaurant-info .rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.restaurant-info .rating i {
    color: var(--primary-color);
}

.restaurant-info .rating span {
    color: white;
    font-weight: 500;
}

.restaurant-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.delivery-info {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.delivery-info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    text-align: center;
}

.food-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: float 2s ease-in-out infinite;
}

.loading-text {
    color: var(--text-color);
    font-size: 1.2rem;
    text-shadow: var(--text-shadow);
}

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

/* Cuisine Dialog Box */
#cuisineDialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
}

#cuisineDialog.active {
    display: flex;
}

#cuisineDialog .dialog-content {
    background: rgba(15, 15, 15, 0.98);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#cuisineDialog.active .dialog-content {
    transform: translateY(0);
    opacity: 1;
}

#cuisineDialog .dialog-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

#cuisineDialog .dialog-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#cuisineDialog .close-dialog {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

#cuisineDialog .close-dialog:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

#cuisineDialog .dialog-body {
    padding: 1.5rem;
    background: rgba(30, 30, 30, 0.8);
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

#cuisineDialog .cuisine-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

#cuisineDialog .cuisine-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#cuisineDialog .cuisine-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

#cuisineDialog .cuisine-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

#cuisineDialog .cuisine-item h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#cuisineDialog .cuisine-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

#cuisineDialog .cuisine-item .price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

/* AI Features Section */
.ai-features {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: var(--glass-border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #4CAF50;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.feature-button {
    display: inline-block;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.feature-button:hover {
    background: #45a049;
}

/* AI Dialog Box */
.ai-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-dialog.active {
    display: flex;
    opacity: 1;
}

.ai-dialog .dialog-content {
    background: rgba(15, 15, 15, 0.98);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.ai-dialog.active .dialog-content {
    transform: scale(1);
    opacity: 1;
}

.dialog-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.dialog-header .feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border: 2px solid var(--primary-color);
    animation: pulse 2s infinite;
}

.dialog-header .feature-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

.feature-preview {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-visualization {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease;
}

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

.feature-examples {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-examples h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.examples-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.example-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.example-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Taste Profile Styles */
.taste-profile {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: var(--glass-border);
}

.profile-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.preference-inputs {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.preference-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preference-group label {
    font-weight: 500;
}

.preference-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.preference-group select {
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
}

.generate-profile-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.generate-profile-btn:hover {
    background: var(--primary-hover);
}

/* Mood Food Styles */
.mood-food {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: var(--glass-border);
}

.mood-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.mood-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mood-option {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mood-option:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.mood-option i {
    font-size: 2rem;
}

.mood-description textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    resize: vertical;
    min-height: 100px;
}

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

.craving-option {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.craving-option:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Food Pairing Styles */
.food-pairing {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: var(--glass-border);
}

.pairing-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.pairing-search {
    margin-bottom: 2rem;
}

.search-input {
    display: flex;
    gap: 1rem;
}

.search-input input {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-hover);
}

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

.suggestion-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.3);
}

.suggestion-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.suggestion-info {
    padding: 1rem;
}

.suggestion-info h4 {
    margin: 0 0 0.5rem 0;
}

.suggestion-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.back-button {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--primary-color);
}

/* AI Services Dropdown */
.ai-services-dropdown {
    position: relative;
    display: inline-block;
}

.ai-services-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-services-link i {
    transition: transform 0.3s ease;
}

.ai-services-dropdown:hover .ai-services-link i {
    transform: rotate(180deg);
}

.ai-services-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.ai-services-dropdown:hover .ai-services-menu {
    display: block;
}

.ai-services-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.ai-services-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* AI Chat Interface */
.ai-chat {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.chat-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header h3 i {
    color: #4CAF50;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4CAF50;
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-content {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.ai .message-content {
    background: rgba(76, 175, 80, 0.1);
    color: #ffffff;
    border-top-left-radius: 0;
}

.message.user .message-content {
    background: rgba(76, 175, 80, 0.2);
    color: #ffffff;
    border-top-right-radius: 0;
}

.chat-input {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.chat-input input:focus {
    outline: none;
    border-color: #4CAF50;
}

.chat-input button {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #45a049;
}

.chat-input button i {
    font-size: 1rem;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.5);
}
