
* {

    box-sizing:
        border-box;

}


body {

    margin: 0;

    min-height:
        100vh;

    background:
        radial-gradient(
            circle at top,
            #3a0808,
            #080808 55%
        );

    color:
        white;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

}


.app {

    width:
        100%;

    max-width:
        950px;

    height:
        100vh;

    margin:
        auto;

    display:
        flex;

    flex-direction:
        column;

    background:
        rgba(10,10,10,.96);

}


.header {

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    padding:
        16px;

    border-bottom:
        1px solid #292929;

}


.logo {

    width:
        50px;

    height:
        50px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        16px;

    font-size:
        25px;

    background:
        linear-gradient(
            135deg,
            #d00000,
            #550000
        );

}


.title {

    font-size:
        20px;

    font-weight:
        bold;

}


.status {

    color:
        #43d86a;

    font-size:
        12px;

    margin-top:
        4px;

}


.chat {

    flex:
        1;

    overflow-y:
        auto;

    padding:
        20px;

}


.message {

    max-width:
        82%;

    padding:
        13px 16px;

    margin-bottom:
        14px;

    border-radius:
        18px;

    line-height:
        1.8;

    white-space:
        pre-wrap;

    word-break:
        break-word;

}


.message.user {

    margin-right:
        auto;

    background:
        linear-gradient(
            135deg,
            #b80000,
            #650000
        );

    border-bottom-right-radius:
        5px;

}


.message.ai {

    margin-left:
        auto;

    background:
        #1c1c1c;

    border:
        1px solid #303030;

    border-bottom-left-radius:
        5px;

}


.loading {

    opacity:
        .6;

}


.input-area {

    display:
        flex;

    gap:
        10px;

    padding:
        12px;

    border-top:
        1px solid #292929;

    background:
        #111;

}


textarea {

    flex:
        1;

    min-height:
        50px;

    max-height:
        140px;

    resize:
        none;

    outline:
        none;

    border:
        0;

    border-radius:
        15px;

    padding:
        14px;

    color:
        white;

    background:
        #202020;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    font-size:
        15px;

}


textarea::placeholder {

    color:
        #888;

}


button {

    width:
        55px;

    border:
        0;

    border-radius:
        15px;

    color:
        white;

    background:
        linear-gradient(
            135deg,
            #d00000,
            #680000
        );

    font-size:
        22px;

}


button:disabled {

    opacity:
        .5;

}


@media (max-width:600px) {

    .message {

        max-width:
            90%;

    }

    .chat {

        padding:
            12px;

    }

}
