* {
    box-sizing: border-box;
}

/* Body & container */
body {
    margin: 0;
    background: #FFFFF0;
    color: #333;
    font-family: "Times New Roman", Times, serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background: black;
    color: white;
    padding: 20px;
    font-size: 30px;
    text-align: center;
    margin-bottom: 30px;
    font-family: "Dancing Script", serif;
}

#chat-container {
    width: 600px;
    max-width: 95%;
    height: 600px;
    background: #FFFFF0; 
    border-radius: 20px;
    border: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    padding: 20px;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

/* Chat output */
#chat-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px;
}

/* Input area */
#input-area {
    display: flex;
    gap: 10px;
}

#userInput {
    flex: 1;
    padding: 15px;
    border-radius: 25px;
    font-size: 18px;
    outline: none;
    font-weight: bold;
    border: 3px solid black;
    background: white;
}

button {
    padding: 15px 25px;
    border-radius: 25px;
    border: none;
    background: black; 
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.5s;
    font-weight: bold;
}

button:hover {
    background: white;
    color: black;
    border: 1px solid black;
}

/* Bubbles */
.bubble {
    padding: 14px 20px;
    border-radius: 20px;
    margin: 8px 0;
    max-width: 80%;
    clear: both;
    word-wrap: break-word;
    box-shadow: 0 5px 6px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s forwards;
    font-size: 18px;
}

/* Fade-in animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User bubbles */
.user {
    background-color: white;
    color: black;
    border: 3px solid black;
    float: right;
    font-weight: bold;
}

/* Bot bubbles */
.bot {
    background-color: white;
    color: darkred;
    float: left;
    font-weight: bold;
    border: 3px solid darkred;
}

.bot.warning {
    background-color: white;
    color: darkred;
    font-weight: bold;
    border: 3px solid darkred;
}

.bot.info {
    background-color: white;
    color: darkblue;
    font-weight: bold;
    border: 3px solid darkblue;
}

.bot.success {
    background-color: white;
    color: darkgreen;
    font-weight: bold;
    border: 3px solid darkgreen;
}

.bot.typing {
    font-style: italic;
    background-color: white;
    color: black;
    position: relative;
    font-weight: bold;
    border: 3px solid black;
}

.bot.typing::after {
    content: '...';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
}

