* {
    box-sizing: border-box;
    font-family: "JetBrainsMono-Medium", monospace;
}

@font-face {
    font-family: "JetBrainsMono-Medium";
    src: url("JetBrainsMono-Medium.ttf") format("truetype");
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0a0e14;
    background-image:
        repeating-linear-gradient(to bottom,
            rgba(79, 209, 197, 0.05) 0px,
            rgba(79, 209, 197, 0.05) 1px,
            transparent 1px,
            transparent 4px);
    color: #c5d1de;
    position: relative;
    overflow-x: hidden;
}

/* vignette overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            transparent 45%,
            rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
}

#sup {
    text-align: center;
    padding: 24px 20px 0;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4fd1c5;
    opacity: 0.7;
    z-index: 2;
}

#sup::before {
    content: "// supply chain ai showcase";
}

#chat {
    flex: 1;
    padding: 24px;
    margin: 40px 200px 20px;
    border: 1px solid rgba(79, 209, 197, 0.25);
    border-radius: 10px;
    background: rgba(13, 21, 32, 0.75);
    box-shadow:
        0 0 0 1px rgba(79, 209, 197, 0.05),
        0 0 30px rgba(79, 209, 197, 0.08),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
    white-space: pre-wrap;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(2px);
}

#chat-field {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #a9f5e5;
}

#input-form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 200px 40px;
    position: relative;
    z-index: 2;
}

#input-field {
    width: 100%;
    max-width: 600px;
    height: 44px;
    border: 1px solid rgba(79, 209, 197, 0.3);
    background: rgba(10, 14, 20, 0.85);
    color: #c5d1de;
    padding: 5px 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#input-field::placeholder {
    color: #5a6b7d;
}

#input-field:focus {
    border-color: rgba(79, 209, 197, 0.7);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.12), 0 0 20px rgba(79, 209, 197, 0.15);
}

/* scrollbar to match the theme */
#chat::-webkit-scrollbar {
    width: 8px;
}

#chat::-webkit-scrollbar-track {
    background: transparent;
}

#chat::-webkit-scrollbar-thumb {
    background: rgba(79, 209, 197, 0.25);
    border-radius: 4px;
}

@media (max-width: 900px) {
    #chat {
        margin: 30px 20px 20px;
    }

    #input-form {
        padding: 0 20px 30px;
    }
}