/* Chatbot Section */
.chatbot-section {
    padding: 2rem 0 5rem;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.chatbot-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.settings-button {
    position: absolute;
    top: 0;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 100;
    pointer-events: auto;
}

.settings-button:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .settings-button {
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

.chatbot-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.chatbot-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.message {
    display: flex;
    gap: 1rem;
    animation: fadeInMessage 0.3s ease;
    max-width: 80%;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.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.5rem;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
}

.message-content {
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.bot-message .message-content {
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
}

.message-content p {
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
}

.message-time {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.bot-message .message-time {
    color: var(--text-light);
}

.chat-input-container {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    background: var(--bg-white);
}

.chat-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.send-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.send-button:active {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.quick-action-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container {
        height: calc(100vh - 250px);
        border-radius: 15px;
    }

    .chat-messages {
        padding: 1.5rem;
    }

    .message {
        max-width: 85%;
    }

    .chat-input-container {
        padding: 1rem;
    }

    .quick-actions {
        gap: 0.5rem;
    }

    .quick-action-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        height: calc(100vh - 200px);
    }

    .message {
        max-width: 90%;
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .message-content {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

