.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #007cba;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    transition: transform 0.3s;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-header {
    padding: 16px 20px;
    background: #007cba;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-info i {
    font-size: 24px;
}

.header-info h3 {
    margin: 0;
    font-size: 16px;
}

.header-info .status {
    font-size: 11px;
    opacity: 0.9;
}

.status.online {
    color: #00ff88;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    min-height: 300px;
    max-height: 400px;
}

.message {
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message.user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
}

.message.bot .message-content {
    background: white;
    color: #1e1e1e;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.user .message-content {
    background: #007cba;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.message .time {
    font-size: 10px;
    color: #999;
    margin: 4px 4px 0;
}

.chatbot-input {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
}

.chatbot-input input:focus {
    border-color: #007cba;
}

.chatbot-input .send-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #007cba;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input .send-btn:hover {
    transform: scale(1.05);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        height: 100vh;
        min-height: 100vh;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}