/* Stop looking at my code me don't like that! :( */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #0f172a;

    color: white;

    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 16px;
}

#chat-container {
    width: 100%;
    max-width: 540px;
    height: 90vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 18px;

    background: #1e293b;

    border: 1px solid #334155;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.45);
}

#header {
    padding: 18px;

    text-align: center;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

#chat-window {
    flex: 1;

    overflow-y: auto;

    padding: 18px;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.msg {
    max-width: 82%;

    padding: 12px 16px;

    border-radius: 14px;

    line-height: 1.5;

    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.user {
    align-self: flex-end;

    background: #2563eb;

    border-bottom-right-radius: 4px;
}

.bot {
    align-self: flex-start;

    background: #334155;

    border: 1px solid #475569;

    border-bottom-left-radius: 4px;
}

.loading {
    opacity: 0.7;
    font-style: italic;
}

#input-area {
    display: flex;

    gap: 10px;

    padding: 14px;

    border-top: 1px solid #334155;
}

#user-input {
    flex: 1;

    border: 1px solid #334155;

    border-radius: 10px;

    background: #0f172a;

    color: white;

    padding: 12px;

    outline: none;

    font-size: 15px;
}

#user-input:focus {
    border-color: #3b82f6;
}

#send-btn {
    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: white;

    padding: 0 20px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.15s ease;
}

#send-btn:hover {
    background: #1d4ed8;
}

#send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {

    body {
        padding: 0;
    }

    #chat-container {
        width: 100%;
        height: 100vh;

        border-radius: 0;
    }

    .msg {
        max-width: 90%;
    }
}
