* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #2a2a2a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chatbot-container {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #0a0a0a;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.header h1 {
    font-family: 'DM Mono', monospace;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 400;
    font-family: 'DM Mono', monospace;
}

.chat-window {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #1a1a1a;
}

.chat-window::-webkit-scrollbar {
    width: 6px;
}

.chat-window::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.chat-window::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.chat-window::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.message {
    margin-bottom: 16px;
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

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

.message.user {
    justify-content: flex-end;
}

.message.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'DM Mono', monospace;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: #00ff88;
    color: #0a0a0a;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.message.ai .message-bubble {
    background: #2a2a2a;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
    border: 1px solid #333;
}

.input-container {
    padding: 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    color: #e0e0e0;
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.message-input::placeholder {
    color: #888;
}

.message-input:focus {
    border-color: #00ff88;
    background: #333;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.send-button {
    background: #00ff88;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-button:hover {
    background: #00cc66;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.send-button:active {
    transform: translateY(0);
}

.send-button svg {
    width: 18px;
    height: 18px;
}

.disclaimer {
    padding: 12px 20px;
    background: #2a2a2a;
    text-align: center;
    font-size: 11px;
    color: #888;
    border-top: 1px solid #333;
    font-family: 'DM Mono', monospace;
}

.typing-indicator {
    display: none;
    padding: 12px 16px;
    background: #2a2a2a;
    border-radius: 8px;
    border-bottom-left-radius: 4px;
    border: 1px solid #333;
    margin-bottom: 16px;
    width: fit-content;
}

.typing-indicator.show {
    display: block;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    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.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .chatbot-container {
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .chat-window {
        flex: 1;
    }
}
