

/* =====================================================
   Messages Premium
===================================================== */

body{
    background:#f5f7fb !important;
    font-family:Inter,system-ui,sans-serif;
    color:#1f2937;
}

.messages-page{
    min-height:100vh;
}

/* =====================================================
   Hero
===================================================== */

.messages-hero{
    background:#fff;
    border-radius:22px;
    padding:28px;
    margin-bottom:25px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;

    border:1px solid #e8edf5;

    box-shadow:
    0 10px 35px rgba(15,23,42,.05);
}

.messages-hero h1{
    margin:0;
    font-size:2rem;
    font-weight:700;
}

.messages-hero p{
    margin-top:8px;
    margin-bottom:0;
    color:#6b7280;
}

.messages-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.hero-btn{

    text-decoration:none;

    display:flex;
    align-items:center;
    gap:8px;

    padding:10px 18px;

    border-radius:14px;

    background:white;

    color:#374151;

    border:1px solid #e8edf5;

    font-weight:600;

    transition:.25s;
}

.hero-btn:hover{

    transform:translateY(-2px);

    background:#4f7cff;

    color:white;

    text-decoration:none;

}

.hero-online{
    background:#e8fff2;
}

.hero-dot{

    width:10px;
    height:10px;

    border-radius:50%;

    background:#2ecc71;

    display:inline-block;
}

/* =====================================================
   Search
===================================================== */

.messages-search-card{

    background:#fff;

    border-radius:20px;

    padding:18px;

    margin-bottom:25px;

    border:1px solid #e8edf5;

    box-shadow:
    0 10px 25px rgba(15,23,42,.04);
}

.search-box{

    display:flex;

    align-items:center;

    gap:15px;

    background:#f8fafc;

    border:1px solid #e4e8ef;

    border-radius:16px;

    padding:14px 18px;
}

.search-box i{

    font-size:20px;

    color:#94a3b8;
}

.search-box input{

    flex:1;

    border:none;

    background:transparent;

    outline:none;

    font-size:15px;
}

.reset-search{

    text-decoration:none;

    background:#eef2ff;

    color:#4f46e5;

    padding:7px 14px;

    border-radius:10px;

    font-weight:600;
}

/* =====================================================
   Conversation List
===================================================== */

.conversation-list{

    display:flex;

    flex-direction:column;

    gap:14px;
}

/* =====================================================
   Conversation Card
===================================================== */

.conversation-card{

    background:white;

    border-radius:18px;

    border:1px solid #e8edf5;

    padding:16px 20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:18px;

    transition:.25s;

    box-shadow:
    0 8px 22px rgba(15,23,42,.04);
}

.conversation-card:hover{

    transform:translateY(-3px);

    background:#fbfcff;

    box-shadow:
    0 18px 40px rgba(15,23,42,.08);
}

.conversation-main{

    display:flex;

    align-items:center;

    gap:16px;

    flex:1;

    cursor:pointer;
}

/* =====================================================
   Avatar
===================================================== */

.conversation-avatar img{

    width:58px;

    height:58px;

    border-radius:50%;

    object-fit:cover;

    border:3px solid white;

    box-shadow:
    0 5px 15px rgba(0,0,0,.08);
}

/* =====================================================
   Content
===================================================== */

.conversation-content{

    flex:1;

    min-width:0;
}

.conversation-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:5px;

    gap:20px;
}

.conversation-user{

    font-size:16px;

    font-weight:700;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

.country-flag{

    width:22px;

    margin-right:4px;

    border-radius:3px;

    vertical-align:middle;
}

.pin-icon{

    margin-left:8px;

    font-size:13px;
}

.conversation-date{

    color:#94a3b8;

    font-size:13px;

    white-space:nowrap;
}

.conversation-preview{

    color:#6b7280;

    font-size:14px;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

/* =====================================================
   Right
===================================================== */

.conversation-right{

    display:flex;

    align-items:center;

    gap:12px;
}

.conversation-badge{

    min-width:28px;

    height:28px;

    border-radius:50%;

    background:#ef4444;

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:13px;

    font-weight:700;
}

/* =====================================================
   Menu
===================================================== */

.conversation-menu{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#f8fafc;

    transition:.25s;

    font-size:18px;
}

.conversation-menu:hover{

    background:#4f7cff;

    color:white;
}

.dropdown-menu{

    border:none;

    border-radius:16px;

    padding:10px;

    box-shadow:
    0 15px 40px rgba(0,0,0,.12);
}

.dropdown-item{

    border-radius:10px;

    padding:10px 14px;

    transition:.2s;
}

.dropdown-item:hover{

    background:#eef4ff;
}

/* =====================================================
   Scrollbar
===================================================== */

::-webkit-scrollbar{
    width:9px;
}

::-webkit-scrollbar-thumb{
    background:#cfd8e3;
    border-radius:30px;
}

::-webkit-scrollbar-thumb:hover{
    background:#aebdce;
}

/* =====================================================
   Responsive
===================================================== */

@media(max-width:992px){

.messages-hero{

    flex-direction:column;

    align-items:flex-start;
}

.messages-actions{

    width:100%;
}

.hero-btn{

    flex:1;

    justify-content:center;
}

}

@media(max-width:768px){

.messages-hero{

    padding:22px;
}

.messages-hero h1{

    font-size:1.6rem;
}

.conversation-card{

    padding:14px;
}

.conversation-avatar img{

    width:50px;
    height:50px;
}

.conversation-user{

    font-size:15px;
}

.conversation-preview{

    font-size:13px;
}

.conversation-menu{

    width:38px;
    height:38px;
}

}

@media(max-width:576px){

.messages-actions{

    flex-direction:column;
}

.hero-btn{

    width:100%;
}

.search-box{

    padding:12px;
}

.reset-search{

    display:none;
}

.conversation-card{

    align-items:flex-start;
}

.conversation-top{

    flex-direction:column;

    align-items:flex-start;

    gap:3px;
}

.conversation-right{

    align-self:flex-start;
}

}


/*CARD TEXT CONTAINER*/
.conversation-main{
    display:flex;
    align-items:center;
    gap:16px;
    flex:1;
    min-width:0;
    overflow:hidden;
    cursor:pointer;
}

.conversation-content{
    flex:1;
    min-width:0;
    overflow:hidden;
}


.conversation-user{
    flex:1;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
