/* Typing indicator animation */
.typing-indicator .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #5a5a5a;
    margin-right: 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { 
    animation-delay: 0.4s; 
    margin-right: 0;
}

@keyframes typingAnimation {
    0%, 60%, 100% { 
        transform: translateY(0);
        opacity: 0.6;
    }
    30% { 
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Chatbot toggle button */
#chatbotToggle {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#chatbotToggle:hover {
    transform: scale(1.1);
    background-color: #011e47; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.suggestion-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.suggestion-btn:hover {
    background-color: #0056b3;
}

.suggestion-btn.disabled-suggestion {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* Chatbot bubble animation */
.chatbot-bubble {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Chatbot triangle for bubble */
.chatbot-triangle {
    position: absolute;
    bottom: -8px;
    left: 90%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid black;
}

/* Chatbot icon */
.chatbot-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat messages container */
#chatMessages {
    font-size: 0.95rem;
}

/* General chat message styling */
.chat-message,
.greeting-message {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    word-wrap: break-word;
    display: inline-block;
    clear: both;
}

/* User message styling */
.user-message {
    background-color: #d1e7dd;
    align-self: flex-end;
    text-align: right;
}

/* Bot and greeting message styling */
.bot-message,
.greeting-message {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    align-self: flex-start;
}

/* Alert message styling */
.alert-message {
    background-color: #e6f4ea;
    border: 1px solid #34c759;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-message .alert-icon {
    font-size: 1.2rem;
}

/* Star rating styling */
#starRating .star {
    cursor: pointer;
    color: #ccc;
}

#starRating .star.selected,
#starRating .star.glow {
    color: #ffc107;
}

/* Responsive design for mobile */
@media (max-width: 576px) {
    #chatDialog {
        width: 95%;
        height: 85vh;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Chatbot header */
.chatbot-header {
    height: 80px;
    background-color: #023363;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* Chatbot title */
.chatbot-title {
    line-height: 1.2;
}

.chatbot-title strong {
    font-size: 1.1rem;
}

.chatbot-title small {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 300;
}

/* Scrollbar for chat messages */
#chatMessages .badge.bg-secondary {
    font-family: monospace;
    white-space: pre-wrap;
}
#chatMessages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Suggestion card */
.suggestion-card {
    background-color: #f5faff;
    border: 1px solid #d1e1ff;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    max-width: 300px;
}

.suggestion-heading {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}



/* Suggestion button */
.suggestion-btn {
    font-size: 0.6rem;
    padding: 2px 10px;
    background-color: #ffffff;
    border: 1px solid #023363;
    border-radius: 999px;
    color: #023363;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.suggestion-btn:hover {
    background-color: #023363;
    color: #ffffff;
}

/* Updated chat message styling */
.chat-message {
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
}

.bot-message {
    background-color: #f5faff;
    color: #333;
}

.user-message {
    background-color: hsl(210, 100%, 86%);;
    color: #fff;
}

/* Video container */
#video-container {
    margin-top: 20px;
}

#video-container video {
    width: 300px;
    margin-right: 10px;
    border-radius: 10px;
}