/* ===================================
   Chatbot Interface Styles
   =================================== */
.chatbot-interface {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.chatbot-header {
    background: var(--gradient-1);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

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

.status-online {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.chatbot-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
    animation: messageSlide 0.3s ease-out;
}

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

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

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--gradient-1);
    color: white;
}

.user-message .message-avatar {
    background: #6c757d;
    color: white;
}

.message-content {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    color: var(--text-dark);
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.user-message .message-content::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--primary-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.bot-message .message-content::after {
    content: '';
    position: absolute;
    top: 15px;
    left: -8px;
    width: 0;
    height: 0;
    border-right: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.chatbot-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.chat-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.chatbot-input {
    padding: 20px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e9ecef;
}

.chatbot-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    color: var(--text-dark);
    background: white;
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
}

.chatbot-input input::placeholder {
    color: var(--text-light);
}

.send-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* ===================================
   Enhanced Review Cards
   =================================== */
.review-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: 20px 25px;
    margin: 0 15px;
    min-width: 350px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.review-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-text {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.review-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .chatbot-interface {
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .chatbot-messages {
        height: 400px;
        padding: 15px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .message-content {
        padding: 12px 15px;
    }
    
    .chatbot-buttons {
        flex-direction: column;
    }
    
    .chat-btn {
        justify-content: center;
        padding: 12px 20px;
    }
    
    .review-card {
        min-width: 280px;
        padding: 15px 20px;
        margin: 0 10px;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
    
    .review-author {
        font-size: 0.8rem;
    }
    
    .chatbot-input {
        padding: 15px;
    }
    
    .chatbot-input input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .send-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .chatbot-interface {
        margin: 0 5px;
    }
    
    .chatbot-header {
        padding: 15px;
    }
    
    .chatbot-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .chatbot-info h3 {
        font-size: 1rem;
    }
    
    .status-online {
        font-size: 0.8rem;
    }
    
    .chatbot-messages {
        height: 350px;
        padding: 10px;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .message-content {
        padding: 10px 12px;
    }
    
    .chat-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .chatbot-input {
        padding: 10px;
    }
    
    .chatbot-input input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .send-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .review-card {
        min-width: 240px;
        padding: 12px 16px;
    }
    
    .review-text {
        font-size: 0.8rem;
    }
    
    .review-author {
        font-size: 0.7rem;
    }
}
