/* ======================================================
   AstroAid Live Chat v0.2
====================================================== */

/* ===========================
Floating Button
=========================== */

#astro-chat-button{
    position:fixed;
    left:20px;
    bottom:20px;
    width:70px;
    height:70px;
    border:none;
    border-radius:50%;
    background:#c49143;
    color:#fff;
    font-size:30px;
    cursor:pointer;
    z-index:999999;
    box-shadow:0 10px 35px rgba(0,0,0,.25);
    transition:.3s;
}

#astro-chat-button:hover{
    transform:scale(1.08);
}

/* ===========================
Overlay
=========================== */

#astro-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(5px);
    z-index:999998;
}

/* ===========================
Popup
=========================== */

#astro-popup{
    display:none;
    position:fixed;
    left:25px;
    bottom:105px;
    width:400px;
    max-width:calc(100vw - 30px);
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    z-index:999999;
}

/* ===========================
Header
=========================== */

.astro-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
    background:#c49143;
    color:#fff;
}

.astro-user{
    display:flex;
    align-items:center;
    gap:14px;
}

.avatar{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
}

.astro-user strong{
    font-size:20px;
    display:block;
}

.astro-user small{
    font-size:14px;
    color:#fff;
}

#astro-close{
    border:none;
    background:none;
    color:#fff;
    font-size:34px;
    cursor:pointer;
}

/* ===========================
Form
=========================== */

#astro-form{
    padding:25px;
    box-sizing:border-box;
}

#astro-popup h2{
    margin:0 0 10px;
    font-size:30px !important;
    line-height:1.3;
    font-weight:700;
}

.astro-subtitle{
    margin-bottom:20px;
    color:#666;
    font-size:15px;
}

#astro-form input{
    width:100%;
    padding:14px 16px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-bottom:15px;
    font-size:15px;
    box-sizing:border-box;
}

#astro-form input:focus{
    outline:none;
    border-color:#c49143;
}

#astro-start{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#c49143;
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

#astro-start:hover{
    opacity:.92;
}

/* ===========================
Chat Screen
=========================== */

#astro-chat-screen{
    display:none;
    padding:20px;
}

#astro-timer{
    background:#f5f5f5;
    padding:10px;
    border-radius:10px;
    margin-bottom:15px;
    text-align:center;
    font-weight:bold;
    color:#c49143;
}

#astro-messages{
    height:260px;
    overflow-y:auto;
    background:#fafafa;
    border:1px solid #eee;
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
}

.msg{
    padding:12px 15px;
    border-radius:12px;
    margin-bottom:12px;
    max-width:85%;
    line-height:1.5;
}

.expert{
    background:#efefef;
}

.user{
    background:#c49143;
    color:#fff;
    margin-left:auto;
}

/* ===========================
Input
=========================== */

#astro-input{
    display:flex;
    align-items:center;
    gap:8px;
}

#astro-input button{
    width:42px;
    height:42px;
    border:none;
    border-radius:10px;
    background:#f3f3f3;
    cursor:pointer;
    font-size:18px;
}

#astro-input input{
    flex:1;
    height:42px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 12px;
    font-size:15px;
}

#astro-input input:focus{
    outline:none;
    border-color:#c49143;
}

/* ===========================
Responsive
=========================== */

@media(max-width:480px){

    #astro-popup{
        left:10px;
        right:10px;
        width:auto;
        bottom:90px;
    }

    #astro-chat-button{
        left:15px;
        bottom:15px;
    }

    #astro-popup h2{
        font-size:26px !important;
    }

}

.msg.user{

background:#c49143;

color:#fff;

margin-left:auto;

text-align:left;

border-bottom-right-radius:4px;

}

.msg.expert{

background:#f3f3f3;

color:#222;

border-bottom-left-radius:4px;

}