@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #e0e0e0;
}

.chat-container {
    width: 90%;
    max-width: 450px;
    background: #2c2c2c;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 20px;
}

.chat-header {
    background: linear-gradient(90deg, #f97316, #facc15);
    color: #ffffff;
    padding: 16px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 600px;
    background: #333333;
}

.message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in;
}

.user-message {
    background: #f97316;
    color: #ffffff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: #4b4b4b;
    color: #d1d5db;
    border-bottom-left-radius: 4px;
}

.input-container {
    display: flex;
    padding: 12px;
    background: #2c2c2c;
    border-top: 1px solid #4b4b4b;
}

#userInput {
    flex: 1;
    padding: 12px;
    border: 1px solid #4b4b4b;
    border-radius: 8px;
    resize: none;
    font-size: 1rem;
    background: #333333;
    color: #e0e0e0;
    transition: border-color 0.2s ease;
}

#userInput:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.sendMessage {
    background: #f97316;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    margin-left: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sendMessage:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.sendMessage:active {
    transform: translateY(0);
}

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

@media (max-width: 600px) {
    .chat-container {
        width: 95%;
        margin: 10px;
    }

    .chat-header {
        font-size: 1.2rem;
        padding: 12px;
    }

    .message {
        max-width: 85%;
    }

    .sendMessage {
        padding: 10px 16px;
    }
}