/* ==========================================================
   ART-STROY AI
   CHAT.CSS
========================================================== */

:root{

    --bg:#101318;
    --panel:#171b22;
    --panel2:#202733;

    --accent:#2f7cf6;
    --accent-hover:#4b90ff;

    --green:#35c46a;
    --yellow:#f0b33b;

    --text:#f3f6fb;
    --text2:#b8c2d0;

    --border:#2b3442;

    --shadow:
        0 12px 35px rgba(0,0,0,.35);

    --radius:18px;

    font-family:
        Inter,
        Segoe UI,
        Arial,
        sans-serif;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:var(--bg);

    color:var(--text);

}

/* ==========================================================
   LAYOUT
========================================================== */

.container{

    width:min(1450px,96%);

    margin:30px auto;

}

.app{

    display:grid;

    grid-template-columns:

        1fr
        360px;

    gap:24px;

}

/* ==========================================================
   PANELS
========================================================== */

.chat-panel,
.request-panel{

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:22px;

    box-shadow:var(--shadow);

}

.chat-panel{

    display:flex;

    flex-direction:column;

    overflow:hidden;

    min-height:820px;

}

/* ==========================================================
   HEADER
========================================================== */

.chat-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 26px;

    border-bottom:1px solid var(--border);

}

.logo{

    display:flex;

    align-items:center;

    gap:16px;

}

.logo-icon{

    width:56px;

    height:56px;

    border-radius:18px;

    background:var(--accent);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

}

.logo h2{

    font-size:22px;

}

.logo span{

    color:var(--text2);

    font-size:14px;

}

.status{

    display:flex;

    align-items:center;

    gap:10px;

    color:var(--text2);

}

.status-dot{

    width:10px;

    height:10px;

    border-radius:50%;

    background:var(--green);

}

/* ==========================================================
   CHAT
========================================================== */

.chat-window{

    flex:1;

    overflow-y:auto;

    padding:28px;

    display:flex;

    flex-direction:column;

    gap:18px;

}

.message{

    display:flex;

    opacity:0;

    transform:translateY(10px);

    transition:.25s;

}

.message.show{

    opacity:1;

    transform:none;

}

.message.user{

    justify-content:flex-end;

}

.bubble{

    max-width:78%;

    padding:16px 18px;

    border-radius:18px;

    line-height:1.55;

    word-break:break-word;

    font-size:15px;

}

.message.bot .bubble{

    background:var(--panel2);

}

.message.user .bubble{

    background:var(--accent);

}

/* ==========================================================
   BUTTONS
========================================================== */

.quick-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:15px;

}

.quick-button{

    border:none;

    cursor:pointer;

    padding:11px 18px;

    border-radius:12px;

    background:#2d3747;

    color:white;

    transition:.2s;

    font-size:14px;

}

.quick-button:hover{

    background:var(--accent);

    transform:translateY(-2px);

}

.quick-button.used{

    opacity:.35;

    cursor:default;

}

/* ==========================================================
   INPUT
========================================================== */

.chat-footer{

    display:flex;

    gap:14px;

    padding:22px;

    border-top:1px solid var(--border);

}

.input{

    flex:1;

    border:none;

    border-radius:14px;

    background:#252d39;

    color:white;

    padding:15px 18px;

    font-size:15px;

    resize:none;

    outline:none;

}

.btn{

    border:none;

    cursor:pointer;

    padding:0 24px;

    border-radius:14px;

    font-weight:600;

}

.btn-primary{

    background:var(--accent);

    color:white;

}

.btn-primary:hover{

    background:var(--accent-hover);

}

/* ==========================================================
   REQUEST PANEL
========================================================== */

.request-panel{

    padding:26px;

}

.panel-title{

    margin-bottom:18px;

}

.divider{

    height:1px;

    background:var(--border);

    margin:18px 0;

}

.info-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:16px;

    gap:15px;

}

.info-label{

    color:var(--text2);

}

.info-value{

    text-align:right;

    font-weight:600;

}

.badge{

    padding:7px 12px;

    border-radius:999px;

    font-size:13px;

}

.badge-warning{

    background:#5d4817;

    color:#ffd97a;

}

.price-card{

    margin-top:25px;

    background:#212937;

    border-radius:18px;

    padding:20px;

    text-align:center;

}

.price-title{

    color:var(--text2);

    margin-bottom:10px;

}

.price-value{

    font-size:32px;

    font-weight:700;

}

/* ==========================================================
   TYPING
========================================================== */

.typing{

    display:flex;

    gap:6px;

}

.typing span{

    width:8px;

    height:8px;

    border-radius:50%;

    background:white;

    animation:typing .8s infinite alternate;

}

.typing span:nth-child(2){

    animation-delay:.15s;

}

.typing span:nth-child(3){

    animation-delay:.3s;

}

@keyframes typing{

    from{

        opacity:.3;
        transform:translateY(0);

    }

    to{

        opacity:1;
        transform:translateY(-4px);

    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:1000px){

    .app{

        grid-template-columns:1fr;

    }

    .request-panel{

        order:-1;

    }

}