/* Futuristic and Tech-inspired Chatbot Stylesheet */

.chatbot-section {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chatbot-header {
    text-align: center;
    margin-bottom: 3rem;
}

.chatbot-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.chatbot-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-style: italic;
}

.chatbot-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    height: 70vh;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.1);
}

.chat-messages {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

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

.message-content {
    padding: 1rem;
    border-radius: 10px;
    position: relative;
}

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

/* Bot messages */
.bot-message {
    align-self: flex-start;
}

.bot-message .message-avatar {
    background: rgba(0, 170, 255, 0.2);
    color: var(--primary-color);
}

.bot-message .message-content {
    background: rgba(0, 170, 255, 0.1);
    border-left: 3px solid var(--primary-color);
}

/* User messages */
.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: rgba(192, 192, 192, 0.2);
    color: var(--accent-color);
}

.user-message .message-content {
    background: rgba(192, 192, 192, 0.1);
    border-right: 3px solid var(--accent-color);
}

/* Suggested Questions */
.suggested-questions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition-speed) ease;
}

.suggestion-btn:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

/* Input Area */
.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
    display: flex;
    background: var(--background-color);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

#chatInput {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1rem;
    padding: 0 20px;
}

#sendButton {
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

#sendButton:hover {
    background: var(--secondary-color);
}

#sendButton:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--accent-color);
    font-style: italic;
}

.typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: typing 1.4s infinite;
    margin: 0 2px;
}

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

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}
