/* ===== CHATBOT STYLES ===== */
.chatbot-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.chatbot-trigger {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-dark);
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.chatbot-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.6);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.chatbot-container {
    width: 380px;
    height: 500px;
    background: rgba(15, 15, 15, 0.95);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 35px rgba(0, 255, 136, 0.3);
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    border: 2px solid var(--primary-color);
    display: none;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-dark);
    padding: 15px;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.close-chatbot {
    background: none;
    border: none;
    color: var(--background-dark);
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-chatbot:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: rgba(26, 26, 46, 0.8);
}

.message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
    word-wrap: break-word;
}

.user-message {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--background-dark);
    margin-left: auto;
    border-bottom-right-radius: 5px;
    font-weight: 600;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-bottom-left-radius: 5px;
}

.chatbot-input-container {
    padding: 15px;
    border-top: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(15, 15, 15, 0.9);
    border-radius: 0 0 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.chatbot-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-input::placeholder {
    color: rgba(128, 255, 219, 0.6);
}

.chatbot-send-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-dark);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.chatbot-send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.chatbot-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.chatbot-warning {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid rgba(255, 0, 128, 0.3);
    color: var(--accent-color);
    padding: 8px;
    border-radius: 5px;
    font-size: 11px;
    text-align: center;
    font-weight: 600;
}

/* Responsive Chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        height: 60vh;
        right: 20px;
        bottom: 80px;
        left: 20px;
    }

    .chatbot-trigger {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .chatbot-input-wrapper {
        flex-direction: column;
    }
    
    .chatbot-send-btn {
        border-radius: 20px;
    }
}