@font-face { 
    font-family: Inter; 
    src: url('/assets/font/Inter/InterVariable.ttf');  
}

/* chat.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: inter;
    color: #ececf1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 1rem;
    transition: justify-content 0.3s ease-in-out;
    justify-content: center;
    background-image: linear-gradient(
    to bottom,
    #000000 0%,
    #1a1e3e 50%,
    #4f5478 100%
  );

}

body.chat-active {
    justify-content: flex-start;
}

body.chat-active .chat-window {
    height: 100%;
    flex-grow: 1;
}

body.chat-active #chat-container {
    display: flex;
}

body.chat-active .disclaimer {
    display: block;
}

body.chat-active .initial-greeting {
    display: none;
}

.nav {
    width: 100%;
    height: 55px;
    background-color: black;
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.options-button {
    margin-right: auto;
    height: 20px;
    width: auto;
    cursor: pointer;
    background-color: black;
    color: gray;
    border: none;
}

.options-button img {
    height: 20px;
}

.options-menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 55px;
    left: 0;
    width: 220px;
    height: auto;
    padding: 20px 20px;
    background-color: black;
    border: 1px solid rgb(40,40,40);
    border-radius: 0 10px 10px 10px;
    color: white;
    cursor: pointer;
}

.options-menu.active {
    display: flex;
}

.options-menu a:last-child {
    color: red;
    text-decoration: none;
}

.nav .settigs .info {
    cursor: pointer;
}

.nav a {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.logo {
    height: 32px;
    width: auto;
}


.initial-greeting {
    font-size: 2.75rem;
    font-weight: 500;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
}

.chat-window {
    width: 75%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    border: none;
}

#chat-container {
    flex-grow: 1;
    padding: 1rem;
    display: none;
    flex-direction: column;
    padding-bottom: 10rem; /* ADDED: Prevents last message from being hidden by the footer */
}

.message-wrapper {
    display: flex;
    margin-bottom: 1.5rem;
}

.message-wrapper.user {
    justify-content: flex-end;
}

.message-wrapper.ai {
    justify-content: flex-start;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    max-width: 40rem;
    color: rgb(220,220,220);
    line-height: 1.5;
    font-size: 1.1rem;
}

/* Images in messages */
.message-bubble img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.message-bubble.user-bubble {
    background-color: rgb(60,60,60);
}

.message-bubble.ai-bubble {
    background-color: transparent;
}

.chat-footer {
    padding: 1rem 0;
    background-color: transparent;
    border-top: none;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}

#chat-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 14px;
    border-radius: 14px;
    background-color: black;
}

.input-wrapper {
    display: flex;
    padding: 0.5rem;
    background-color: black;
}

#user-input {
    flex-grow: 1;
    font-size: 1rem;
    background-color: black;
    color: #ececf1;
    border: none;
    padding: 0.4rem;
    resize: none;
    overflow-y: hidden;
    line-height: 1.5rem;
    white-space: pre-wrap;
    font-family: inherit;
}

#user-input:focus {
    outline: none;
    box-shadow: none;
}

#user-input::placeholder {
    color: #8e8ea0;
}

.buttons-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.25rem;
}

.buttons-left,
.buttons-right {
    display: flex;
    gap: 0.5rem;
}

#chat-form button {
    color: #acacbe;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: transparent;
    border: 1px solid rgb(0, 110, 190);
    border-radius: 20px;
    width: 40px;
    height: 40px;
    padding: 0 1rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-form button img {
    height: 25px;
}

button#upload-button {
    border: 1px solid rgb(40,40,40);
    opacity: 0.7;
}

/* NEW: Style for the Think button */
button#think-button {
    border: 1px solid rgb(40,40,40);
    width: auto; /* Adjust width to fit text */
    padding: 0 1rem; /* Add padding for text */
    font-size: 14px; /* Adjust font size */
}

/* NEW: Highlight for active Think button */
button#think-button.active {
    background-color: white;
    color: black; /* Text color for active state */
}

button#submit-button {
    background-color: white;
    border: 4px solid black;
}

#chat-form button:hover:not(:disabled) {
    background-color: #4f5160;
}

.icon-button {
    font-size: 1.2rem;
    padding: 0;
    width: 40px;
}

button:disabled {
    color: #676872;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.disclaimer {
    font-size: 0.75rem;
    color: #acacbe;
    text-align: center;
    padding-top: 1.5rem;
    display: none;
}

.disclaimer a {
    color: #acacbe;
    text-decoration: underline;
}

@media only screen and (max-width: 1000px) {
    .logo {
        height: 28px;
    }

    .chat-window {
        width: 95%;
    }
}