/* Floating toggle button */
.chatbot-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bcd4, #00e676);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6);
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    flex-direction: column;
    transition: all 0.3s ease;
    color: #ffffff;
}

.chatbot-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a3a;
}

.chatbot-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #1a1a1a;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    animation: slideIn 0.3s ease;
}

.message.user {
    margin-left: auto;
    background: #2c3e50;
    color: white;
    border-radius: 15px 15px 0 15px;
}

.message.bot {
    margin-right: auto;
    background: #3a3a3a;
    color: #ffffff;
    border-radius: 15px 15px 15px 0;
}

.chatbot-input {
    padding: 15px;
    background: #2c3e50;
    border-top: 1px solid #3a3a3a;
    display: flex;
    gap: 10px;
    border-radius: 0 0 10px 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    outline: none;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
}

.chatbot-input input::placeholder {
    color: #888888;
}

.chatbot-input button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 600;
}

.chatbot-input button:hover {
    background: #2980b9;
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Animation for new messages */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chatbot-header {
        border-radius: 0;
    }
    
    .chatbot-input {
        border-radius: 0;
    }
} 