/* Chatbot Styles */

/* Toggle button */
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0056b3;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background-color: #003d80;
    transform: scale(1.05);
}

.chatbot-toggle i {
    font-size: 24px;
}

/* Chatbot container */
.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Chatbot header */
.chatbot-header {
    background-color: #0056b3;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

/* Messages container */
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual message styles */
.chatbot-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.chatbot-message p {
    margin: 0;
    line-height: 1.4;
}

.user-message {
    align-self: flex-end;
    background-color: #0056b3;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background-color: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 5px;
}

.bot-message a {
    color: #0056b3;
    text-decoration: underline;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #aaa;
    border-radius: 50%;
    animation: typing-animation 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-animation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Input form */
.chatbot-form {
    display: flex;
    border-top: 1px solid #e0e0e0;
    padding: 10px;
}

.chatbot-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chatbot-form button {
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.chatbot-form button:hover {
    background-color: #003d80;
}

.chatbot-form button i {
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100% - 40px);
        bottom: 80px;
    }
} 