/* =========================
   REQUEST PAGE
========================= */

.request-page{
    height:100vh;
}

/* SIDEBAR */

.request-sidebar{

    background:white;

    height:100vh;

    border-right:1px solid #eee;

    overflow-y:auto;
}

/* TOP */

.sidebar-top{

    padding:25px;

    border-bottom:1px solid #eee;
}

.sidebar-title{

    font-size:28px;
    font-weight:800;

    color:#111;
}

/* SEARCH */

.sidebar-search{

    margin-top:18px;

    position:relative;
}

.sidebar-search input{

    width:100%;
    height:50px;

    border:none;

    background:#f5f7fb;

    border-radius:16px;

    padding-left:45px;
}

.sidebar-search i{

    position:absolute;

    top:17px;
    left:16px;

    color:#888;
}

/* CHAT LIST */

.chat-list{
    padding:15px;
}

.chat-user{

    display:flex;

    gap:15px;

    padding:16px;

    border-radius:20px;

    cursor:pointer;

    transition:0.3s;

    margin-bottom:10px;
}

.chat-user:hover{

    background:#f7f8fd;
}

.active-chat{

    background:#f0efff;
}

/* AVATAR */

.chat-avatar{

    width:60px;
    height:60px;

    border-radius:50%;

    object-fit:cover;
}

/* INFO */

.chat-info{
    flex:1;
}

.chat-top-row{

    display:flex;
    justify-content:space-between;
}

.chat-name{

    font-weight:800;
}

.chat-time{

    color:#888;

    font-size:13px;
}

.chat-message{

    margin-top:8px;

    color:#666;
    
    font-size:14px;
}

/* CHAT AREA */

.chat-area{

    height:100vh;

    display:flex;
    flex-direction:column;

    background:#f5f7fb;
}

/* HEADER */

.chat-header{

    background:white;

    padding:18px 25px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    border-bottom:1px solid #eee;
}

.chat-header-left{

    display:flex;
    align-items:center;

    gap:15px;
}

.chat-header-avatar{

    width:55px;
    height:55px;

    border-radius:50%;
}

.chat-header-name{

    font-size:20px;
    font-weight:800;
}

.chat-status{

    margin-top:5px;

    color:#22c55e;

    font-size:14px;

    display:flex;
    align-items:center;

    gap:6px;
}

.online-dot{

    width:10px;
    height:10px;

    background:#22c55e;

    border-radius:50%;
}

/* HEADER BTN */

.chat-header-actions{
    display:flex;
    gap:12px;
}

.header-btn{

    width:45px;
    height:45px;

    border:none;

    border-radius:14px;

    background:#f1f3f8;
}

/* REQUEST BOX */

.request-preview-box{

    margin:20px;

    background:white;

    border-radius:24px;

    padding:18px;

    display:flex;
    align-items:center;

    gap:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,0.06);
}

.request-preview-image{

    width:110px;
    height:110px;

    border-radius:18px;

    object-fit:cover;
}

.request-preview-content{
    flex:1;
}

.request-preview-title{

    color:#6c63ff;

    font-weight:700;
}

.request-preview-text{

    margin-top:8px;

    font-size:22px;
    font-weight:800;
}

.request-preview-days{

    margin-top:10px;

    color:#666;
}

/* BUTTONS */

.request-preview-buttons{

    display:flex;
    gap:12px;
}

.accept-btn,
.reject-btn{

    border:none;

    padding:12px 20px;

    border-radius:14px;

    font-weight:700;
}

.accept-btn{

    background:#6c63ff;

    color:white;
}

.reject-btn{

    background:#fee2e2;

    color:#dc2626;
}

/* CHAT BODY */

.chat-body{

    flex:1;

    overflow-y:auto;

    padding:25px;
}

/* MESSAGES */

.message-row{

    display:flex;

    margin-bottom:18px;
}

.left-msg{
    justify-content:flex-start;
}

.right-msg{
    justify-content:flex-end;
}

.msg-avatar{

    width:42px;
    height:42px;

    border-radius:50%;

    margin-right:12px;
}

/* MESSAGE */

.message{

    max-width:380px;

    padding:16px 20px;

    border-radius:22px;

    line-height:1.7;
}

.received-message{

    background:white;

    color:#111;
}

.sent-message{

    background:#6c63ff;

    color:white;
}

/* INPUT */

.chat-input-area{

    background:white;

    padding:18px 25px;

    display:flex;
    align-items:center;

    gap:15px;

    border-top:1px solid #eee;
}

.attach-btn,
.send-btn{

    width:50px;
    height:50px;

    border:none;

    border-radius:16px;
}

.attach-btn{

    background:#f1f3f8;
}

.send-btn{

    background:#6c63ff;

    color:white;
}

.chat-input-area input{

    flex:1;

    height:52px;

    border:none;

    background:#f5f7fb;

    border-radius:16px;

    padding:0 18px;
}

/* MOBILE */

@media(max-width:991px){

    .request-sidebar{

        height:auto;
    }

    .chat-area{

        height:auto;
    }

    .request-preview-box{

        flex-direction:column;
        align-items:flex-start;
    }

    .request-preview-buttons{

        width:100%;
    }

    .accept-btn,
    .reject-btn{

        flex:1;
    }

}
.online-dot{
    width:10px;
    height:10px;
    background:#22c55e;
    border-radius:50%;
    display:inline-block;
    margin-right:5px;
}

.offline-dot{
    width:10px;
    height:10px;
    background:#9ca3af;
    border-radius:50%;
    display:inline-block;
    margin-right:5px;
}
