body {
    font-family: sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    padding: 50px;
}

.chat-container {
    width: 400px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100px;
}

.chat-container {
    height: 100px;
    transition: height 0.4s ease;
    overflow: hidden; /* Prevent content overflow during animation */
}

.title-message {
    text-align: center;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.title-message.hidden {
    opacity: 0;
}

.chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
}

.chat-input {
    display: flex;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 0 0 0 10px;
}

.chat-input button {
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 0 0 10px 0;
    cursor: pointer;
}

.new-chat {
    margin: 10px;
    height: 40px;
    width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Optional: makes it clear it's clickable */
    transition: background-color 0.2s ease; /* Smooth hover */
}

.new-chat:hover {
    background-color: #cccccc;
}

.new-chat .fa-pen-to-square {
    font-size: 25px;
}


.user-msg {
    text-align: right;
    margin: 5px;
    color: #333;
}

.bot-msg {
    text-align: left;
    margin: 5px;
    color: black;
}

.bot-msg h1, .bot-msg h2 {
    font-size: 1em;
    font-weight: bold;
    margin: 8px 0 4px;
}

.bot-msg ul {
    padding-left: 20px;
    margin: 4px 0;
}

.bot-msg li {
    margin-bottom: 4px;
}

.bot-msg strong {
    font-weight: bold;
}

.bot-msg em {
    font-style: italic;
}


.bot-msg h1, .bot-msg h2 {
    font-size: 1em;
    font-weight: bold;
    margin: 8px 0 4px;
}

.bot-msg ul {
    padding-left: 20px;
    margin: 4px 0;
}

.bot-msg li {
    margin-bottom: 4px;
}

.bot-msg strong {
    font-weight: bold;
}

.bot-msg em {
    font-style: italic;
}

.bot-thinking::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border-radius: 50%;
    background-color: #888;
    animation: pulseGlow 1.2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}