@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

:root {
    --bg-100: #ffffff;
    --bg-200: #eaeaea;
    --bg-300: #dddddd;
    --chat-bg: #ffe7d9;
    --text-color: #0c0c0c;
}

body {
    background: var(--bg-100);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

body.dark-theme {
    --bg-100: #121212;
    --bg-200: #2a2a2a;
    --bg-300: #4a4a4a;
    --chat-bg: #3a3a3a;
    --text-color: #ffffff;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    text-align: center;
    background: var(--bg-100);
}

.header-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#theme-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 999px;
    background: var(--bg-100);
    color: var(--text-color);
    cursor: pointer;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding-top: 3rem;

}

.chat-container {
    width: 100%;
    height: 100%;
    padding: 2rem;
    padding-bottom: 5rem;
}


.message {
    padding: 0.75rem 1rem;
    margin: 5px 0;
    background: var(--chat-bg);
    color: var(--text-color);
    border-radius: 999px;
    width: fit-content;
    line-break: 1.7;
}

.message.ai p {
    margin: 0.6em 0;
    line-height: 1.6;
}

.message.ai ul,
.message.ai ol {
    margin: 0.8em 0;
    padding-left: 1.5em;
}

.message.ai li {
    margin: 0.3em 0;
}

.message.ai br {
    display: block;
    margin-bottom: 0.4em;
}

.message.ai {
    background: transparent;
    margin-left: auto;
}

.chat-form {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    padding: 1rem 2rem;
    background: var(--bg-100);
}

.chat-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    margin-right: 1rem;
    font-size: 1rem;
    background: var(--bg-200);
    color: var(--text-color);
    outline: none;
}

.chat-form button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: var(--bg-300);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
}
