/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0e0e0e, #1a1a1a, #222);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #e5e5e5;
    overflow: hidden;
}

/* Chat Container */
/* Chat Container */
.chat-container {
    width: 520px;   /* Increased from ~400px */
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(14px) saturate(150%);
    padding: 30px;   /* More padding for a balanced look */
    border-radius: 20px;
    box-shadow: 0px 14px 35px rgba(0, 0, 0, 0.75);
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.25);
    transition: transform 0.3s ease;
}

.chat-container:hover {
    transform: translateY(-5px);
}

/* Chat Box */
.chat-box {
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 18px;
    height: 420px;   /* Increased height from ~300px */
    overflow-y: auto;
    border-radius: 15px;
    background: rgba(18, 18, 18, 0.7);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}


/* Messages */
#chat-log {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* User Message */
.user-message {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    color: #fff;
    text-align: right;
    margin-left: auto;
    padding: 12px 18px;
    border-radius: 18px 18px 0 18px;
    display: inline-block;
    font-weight: 500;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    animation: fadeInRight 0.3s ease;
}

/* Bot Message */
.bot-message {
    background: linear-gradient(135deg, #2c2c2c, #1f1f1f);
    color: #f5f5f5;
    text-align: left;
    margin-right: auto;
    padding: 12px 18px;
    border-radius: 18px 18px 18px 0;
    display: inline-block;
    font-weight: 400;
    max-width: 80%;
    word-wrap: break-word;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    animation: fadeInLeft 0.3s ease;
}

/* Typing Indicator */
.typing {
    font-style: italic;
    color: #c0c0c0;
    margin: 5px;
}

/* Input Area */
.input-area {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 10px;
    font-size: 16px;
    background: #121212;
    color: #e5e5e5;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border: 1px solid #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

input::placeholder {
    color: #888;
}

/* Button */
button {
    padding: 12px 18px;
    border: none;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #111;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #ffd700, #daa520);
    transform: scale(1.07);
}

/* Scrollbar Styling */
.chat-box::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border-radius: 10px;
}

.chat-box::-webkit-scrollbar-track {
    background: transparent;
}

/* Animations */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 500px) {
    .chat-container {
        width: 92%;
    }
}
