* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #080d18;
    --sidebar: #0d1422;
    --surface: #121d2e;
    --border: #243247;
    --text: #edf3ff;
    --muted: #8493aa;
    --accent: #00d9ff;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    height: 100vh;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.app {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: var(--sidebar);
    border-left: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--accent);
    text-align: center;
}

#newChat {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 12px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu button {
    text-align: right;
    background: transparent;
    color: var(--muted);
    padding: 13px;
    border-radius: 9px;
}

.menu button:hover {
    background: var(--surface);
    color: var(--accent);
}

.profile {
    margin-top: auto;
    color: var(--muted);
    font-size: 12px;
}

.status {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #00e676;
    border-radius: 50%;
    margin-left: 8px;
}

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header {
    height: 70px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h2 {
    font-size: 19px;
}

.header span {
    color: var(--muted);
    font-size: 12px;
}

#menuButton {
    display: none;
    background: transparent;
    color: var(--text);
    font-size: 22px;
}

/* CHAT */
.chat {
    flex: 1;
    overflow-y: auto;
    padding: 30px 20px;
}

.welcome {
    text-align: center;
    margin: 12vh auto 0;
}

.core {
    width: 90px;
    height: 90px;
    margin: auto auto 25px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 48px;
    color: var(--accent);
    box-shadow: 0 0 35px #00d9ff30;
}

.welcome h1 {
    font-size: 25px;
    margin-bottom: 14px;
}

.welcome p {
    color: var(--muted);
    line-height: 2;
}

/* MESSAGE */
.message {
    max-width: 750px;
    margin: 18px auto;
    padding: 16px;
    border-radius: 14px;
    line-height: 2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.user-message {
    background: #17334b;
}

.bot-message {
    background: var(--surface);
    border: 1px solid var(--border);
}

/* INPUT */
.input-area {
    max-width: 850px;
    width: calc(100% - 40px);
    margin: 15px auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.input-area input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 15px;
    padding: 10px;
}

.input-area input::placeholder {
    color: var(--muted);
}

.input-area button {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: transparent;
    color: var(--accent);
    font-size: 22px;
}

#sendButton {
    background: var(--accent);
    color: #06111b;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 10px;
    padding: 12px;
}

/* MOBILE */
@media (max-width: 700px) {
    .sidebar {
        display: none;
        position: fixed;
        z-index: 10;
        top: 0;
        bottom: 0;
        right: 0;
    }

    .sidebar.open {
        display: flex;
    }

    #menuButton {
        display: block;
    }

    .header {
        padding: 0 15px;
    }

    .welcome h1 {
        font-size: 21px;
    }

    .welcome {
        margin-top: 10vh;
    }
}
