#portfolio-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    font-family: 'Poppins', sans-serif;
}

/* Floating Button */
#chat-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    color: white;
    font-size: 24px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulseGlow 2s infinite;
}

#chat-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* Chat Window */
#chat-window {
    width: 350px;
    height: 500px;
    background-color: var(--card-bg, #ffffff);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.chat-header {
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    color: white;
    padding: 15px;
}

.bot-avatar {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.status-dot::before {
    content: "●";
    color: #00ff00;
    margin-right: 5px;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
}

/* Messages */
.message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-msg {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer input {
    background-color: var(--light-color, #f8f9fa);
    color: var(--text-color);
}

/* Dark Mode Adjustments */
[data-theme="dark"] #chat-window {
    background-color: #1e2227;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bot-msg {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    #chat-window {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 70px;
    }
}