

/* GPT Chat Ui */

body {
    background-color: #000;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
}
/* Responsive header */
@media (max-width: 768px) {
    .main-nav {
        justify-content: center;
    }
    
    .logo {
        text-align: center;
    }
}

#chat {
    flex: 1;
    padding: 5px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    padding: 10px 14px;
    margin-bottom: 10px;
    max-width: 75%;
    border-radius: 10px;
    position: relative;
}

.user {
    align-self: flex-end;
    background-color: #000000;
    color: #ffffff;
    font-weight: 900;
    font-family: 'arial', sans-serif;
    text-shadow: 0 0 1px black;
}

.bot {
    align-self: flex-start;
    background-color: #000000;
    color: white;
    font-weight: 900;
    font-family: 'arial', sans-serif;
}

.typing {
    font-style: arial, sans-serif;
    opacity: 0.7;
}

@keyframes thinkingGradient {
    0% { color: #00D4FF; }
    33% { color: #ffffff; }
    66% { color: #00D4FF; }
    100% { color: #09ff00; }
}

.bot.thinking {
    animation: thinkingGradient 5s ease-in-out infinite;
    /* font-weight from .bot (900) and font-family from * or .bot will apply */
}

#inputArea {
    display: flex;
    justify-content: center;
    padding: 5px;
    background-color: #000000;
    border-top: 1px solid #000000;
}

.messageBox {
    width: 100%;
    max-width: 500px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid rgb(63, 63, 63);
    position: relative;
    overflow: hidden;
}

.messageBox:focus-within {
    border: 1px solid #6e6e6e;
}

#userInput {
    flex: 1;
    height: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    padding-left: 10px;
    color: white;
    margin-right: 40px; /* Make space for the button */
}
#userInput::placeholder {
    color: #ffffff; /* Makes placeholder text a lighter gray for better visibility */
}

#userInput:focus ~ #sendBtn svg path,
#userInput:valid ~ #sendBtn svg path {
    fill: #000000;
    stroke: #000000;
}

#sendBtn {
    position: absolute;
    right: 10px;
    height: 100%;
    width: 40px;
    background-color: transparent;
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

#sendBtn svg {
    height: 24px;
    width: 24px;
    transition: all 0.3s;
}

#sendBtn svg path {
stroke: #00fdcb;
animation: brandStroke 3s ease-in-out infinite alternate;
}

@keyframes brandStroke {
0% { stroke: #2A7B9B; }
50% { stroke: #57C785; }
100% { stroke: #EDDD53; }
}

#sendBtn:hover svg path {
    fill: #00000083;
    stroke: #00000000;
    animation-play-state: paused;
}

