body{
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.layout-Misa {
    /* DELETE position: absolute; */
    /* DELETE bottom: ...; */
    
    width: 100%;
    display: flex;
    justify-content: center; /* Keeps your input centered */
    flex-shrink: 0; /* Protects it from being squished by the chat window */
    padding-bottom: 20px; /* Gives it some breathing room above the footer */
}
#message{
    width: 100%;
    padding-right: 55px;
    box-sizing: border-box;
    flex-shrink: 0;
    font-size: 16px;
}

.chat-window{
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    margin: 100px auto 30px auto;

    

    background-color: rgba(10, 25, 47, 0.7);
    border: 1 solid var(--neon-blue);
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.1);
    padding: 20px;

    flex-grow: 1;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.chat-window::-webkit-scrollbar{
    width: 8px;
}
.chat-window::-webkit-scrollbar-thumb{
    background: var(--neon-blue);
    border-radius: 4px;
    
}

.message{
    font-size: 16px;
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: sans-serif;
    line-height: 1.5;
    word-wrap: break-word;
}

.misa-message{
   align-self: flex-start;
   background-color: rgba(0, 243, 255, 0.1);
   border-left: 3px solid var(--neon-blue);
   color: #e0e0e0;
}

.user-message{
    align-self: flex-end;
    background-color: rgba(0, 255, 136, 0.1);
    border-right: 3px solid #00ff88;
    color: white;
}
.typing-indicator{
    display: inline-block;
    padding: 2px 4px;
}
.typing-indicator span{
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00f3ff;
    border-radius: 50%;
    margin: 0 4px;
    animation: pulse 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s;}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s;}
.typing-indicator span:nth-child(3) {animation-delay: 0.4s;}

@keyframes pulse{
    0%, 100% {transform:scale(0.6); opacity: 0.4;}
    50% {transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px rgba(0, 243, 255, 0.8a);}
}