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

body {
    font-family: 'Arial Black', Arial, sans-serif;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    min-height: 100vh;
    color: #333;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(0,0,0,0.1);
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 0px #fff;
    text-transform: lowercase;
}

.chat-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 3px solid #fff;
    font-family: Arial, sans-serif;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid #ddd;
}

.message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 15px;
    animation: messageSlide 0.5s ease-out;
}

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

.user-message {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    color: #333;
    margin-left: 20%;
    border: 2px solid #b3c5e0;
}

.ai-message {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    color: #2c3e50;
    margin-right: 20%;
    border: 2px solid #8fb7ed;
    font-weight: normal;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.5px;
}

.message-content {
    word-wrap: break-word;
}

.input-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

#user-input {
    flex: 1;
    padding: 15px 20px;
    border: 3px solid #a1c4fd;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    transition: all 0.3s ease;
    background: #f0f4f8;
}

#user-input:focus {
    border-color: #66a6ff;
    box-shadow: 0 0 20px rgba(102, 166, 255, 0.4);
    transform: scale(1.02);
}

#send-button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #66a6ff, #4facfe);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(102, 166, 255, 0.3);
}

#send-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

#send-button:active {
    transform: translateY(-1px) scale(1.02);
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #a1c4fd;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #66a6ff;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .user-message, .ai-message {
        margin-left: 0;
        margin-right: 0;
    }
    
    .input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    #user-input, #send-button {
        width: 100%;
    }
}