/* Chat Widget Styles - Same as Index page */
.chat-widget-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.chat-widget-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-widget-header:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a42a0);
}

.chat-widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
}

.expand-icon {
    transition: transform 0.3s ease;
}

.chat-widget-header.expanded .expand-icon {
    transform: rotate(180deg);
}

.chat-widget-body {
    height: 280px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f8f9fa;
    max-height: 220px;
}

.message-bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 14px;
}

.ai-bubble {
    background: #e3f2fd;
    color: #1565c0;
    margin-right: auto;
}

.user-bubble {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    margin-left: auto;
}

.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

/* Current Category Title */
.current-category-title {
    text-align: center;
    margin-bottom: 8px;
}

.current-category-title h2 {
    @if (ViewBag.Customer != null && !string.IsNullOrEmpty(ViewBag.Customer.IndexTextColor)) 
    { 
        <text>color: @ViewBag.Customer.IndexTextColor;</text> 
    } 
    else 
    { 
        <text>color: white;</text> 
    }
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(128, 128, 128, 0.3);
    padding: 10px 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

/* Category Slider */
.category-slider-section {
    background: rgba(128, 128, 128, 0.7);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-slider::-webkit-scrollbar {
    height: 8px;
}

.category-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.category-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

.category-slide {
    flex: 0 0 auto;
    width: auto;
    min-width: 80px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 6px;
    border: 2px solid transparent;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-slide:hover, .category-slide.active {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-3px);
}

.category-slide h6 {
    font-size: 0.75rem;
    color: white;
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
}

.category-slide .image-box {
    margin-bottom: 0;
}

.category-slide img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-slide:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .chat-widget-container {
        width: 90% !important;
        right: 5% !important;
        max-width: none !important;
    }
    
    .current-category-title {
        margin-bottom: 6px;
    }
    
    .current-category-title h2 {
        font-size: 1.3rem;
        padding: 8px 16px;
    }
    
    .category-slider-section {
        margin-bottom: 10px;
    }
    
    .category-slider {
        gap: 6px;
    }
    
    .category-slide {
        min-width: 70px;
        padding: 4px;
    }
    
    .category-slide img {
        width: 55px;
        height: 55px;
    }
    
    .category-slide h6 {
        font-size: 0.7rem;
        min-height: 18px;
    }
}

@media (max-width: 480px) {
    .current-category-title {
        margin-bottom: 5px;
    }
    
    .current-category-title h2 {
        font-size: 1.2rem;
        padding: 6px 12px;
    }
    
    .category-slider-section {
        margin-bottom: 8px;
        padding: 12px;
    }
    
    .category-slide {
        min-width: 60px;
        padding: 3px;
    }
    
    .category-slide img {
        width: 50px;
        height: 50px;
    }
    
    .category-slide h6 {
        font-size: 0.65rem;
        min-height: 16px;
    }
}