/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.chat-toggle.close {
    background: #ff6b6b;
}

.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.chat-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-header p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.chat-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.chat-home {
    padding: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.category-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.category-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.questions-view {
    display: none;
    padding: 20px;
}

.questions-view.active {
    display: block;
}

.back-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 14px;
    color: #667eea;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e9ecef;
}

.question-item {
    margin-bottom: 10px;
}

.question-btn {
    width: 100%;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.question-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.answer {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    border-left: 4px solid #667eea;
}

.answer.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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



/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-widget {
        right: 15px;
        bottom: 15px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .chat-panel {
        width: 320px;
        max-width: calc(100vw - 30px);
        bottom: 70px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.chat-content::-webkit-scrollbar {
    width: 4px;
}

.chat-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 2px;
}

.chat-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
} 