/* ==================================================
   SELLEWA PREMIUM DISPATCHER DASHBOARD
================================================== */

.dispatcher-dashboard-wrap{

    padding:40px 30px;

    background:#f4f7fb;

    min-height:100vh;
}
 

/* HEADER */

.dispatcher-header{

    background:
        linear-gradient(
            135deg,
            #0E66EA,
            #063b91
        );

    color:white;

    border-radius:28px;

    padding:35px;

    margin-bottom:30px;

    box-shadow:
        0 15px 40px rgba(14,102,234,.25);
}


.dispatcher-header h1{

    margin:0;

    font-size:36px;

    font-weight:800;
}


.dispatcher-header p{

    margin-top:8px;

    opacity:.9;
}



/* STATS */

.dispatcher-stats{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(240px,1fr));

    gap:22px;

    margin-bottom:35px;
}



.dispatcher-stat-card{

    background:#ffffff;

    border-radius:24px;

    padding:26px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.06);

    transition:.25s ease;
}



.dispatcher-stat-card:hover{

    transform:translateY(-4px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.10);
}



.dispatcher-stat-card small{

    display:block;

    color:#64748b;

    font-size:14px;

    margin-bottom:12px;
}



.dispatcher-stat-card strong{

    color:#0f172a;

    font-size:32px;

    font-weight:800;
}




/* DELIVERY CARDS */

.dispatcher-delivery-card{

    background:#ffffff;

    border-radius:26px;

    padding:25px;

    margin-bottom:22px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    box-shadow:
        0 12px 35px rgba(15,23,42,.08);

    transition:.25s ease;
}


.dispatcher-delivery-card:hover{

    transform:translateY(-3px);
}



.dispatcher-delivery-card h3{

    margin:0 0 12px;

    font-size:22px;

    font-weight:800;

    color:#0f172a;
}



.dispatcher-delivery-card p{

    color:#64748b;

    font-weight:600;
}




/* STATUS BADGES */


.delivery-status{

    display:inline-flex;

    align-items:center;

    padding:8px 16px;

    border-radius:999px;

    background:#eef6ff;

    color:#0E66EA;

    font-size:13px;

    font-weight:800;

    text-transform:capitalize;
}



.delivery-status::before{

    content:"";

    width:8px;

    height:8px;

    background:#22c55e;

    border-radius:50%;

    margin-right:8px;

    animation:pulseOnline 1.4s infinite;
}



@keyframes pulseOnline{

    50%{
        opacity:.4;
    }

}




/* BUTTONS */


.dispatcher-delivery-card button,
.dispatcher-action-btn{

    border:none;

    background:#0E66EA;

    color:white;

    padding:13px 20px;

    border-radius:16px;

    font-weight:800;

    cursor:pointer;

    margin:5px;

    transition:.25s ease;

    box-shadow:
        0 8px 20px rgba(14,102,234,.22);
}



.dispatcher-delivery-card button:hover,
.dispatcher-action-btn:hover{

    transform:translateY(-2px);

    background:#0954c5;
}




/* GPS BUTTON SPECIAL */

.dispatcher-delivery-card button:last-child{

    background:#16a34a;

    box-shadow:
        0 8px 20px rgba(22,163,74,.25);
}




/* EMPTY STATE */


.dispatcher-empty{

    background:white;

    padding:50px;

    text-align:center;

    border-radius:24px;

    color:#64748b;

    font-weight:700;
}




/* MOBILE */

@media(max-width:768px){


    .dispatcher-dashboard-wrap{

        padding:20px;
    }


    .dispatcher-header h1{

        font-size:28px;
    }


    .dispatcher-delivery-card{

        flex-direction:column;

        align-items:flex-start;
    }


    .dispatcher-delivery-card button{

        width:100%;
    }

}







/* ===================================
   DISPATCHER PAGE CONTAINER WIDTH
=================================== */

.dispatcher-dashboard-wrap,
#dispatcher-orders-container,
#dispatcher-delivery-container{

    max-width:1250px;

    margin-left:auto;

    margin-right:auto;

    padding:35px 25px;

    box-sizing:border-box;
}


#dispatcher-orders-container,
#dispatcher-delivery-container{

    background:#f4f7fb;

    min-height:80vh;
}


/* better spacing */

.dispatcher-delivery-card{

    margin-bottom:24px;
}







.dispatcher-actions{

    display:flex;

    flex-wrap:wrap;

    gap:14px;

    margin-top:10px;
}


.dispatcher-actions a{

    text-decoration:none;
}






.dispatcher-delivery-card{
    background:#fff;
    padding:25px;
    margin-bottom:20px;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}


.dispatcher-delivery-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
}


.dispatcher-info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:25px;
}


.dispatcher-info-box{
    background:#f8fafc;
    padding:18px;
    border-radius:14px;
}


.dispatcher-info-box h4{
    margin-bottom:15px;
}


.dispatcher-info-box p{
    margin:8px 0;
}


.dispatcher-info-box a{
    color:#0E66EA;
    font-weight:700;
}


.dispatcher-action-row{
    display:flex;
    gap:15px;
    margin-top:25px;
}


.dispatcher-action-row button{
    background:#0E66EA;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
}


.delivery-status{
    background:#eaf2ff;
    color:#0E66EA;
    padding:8px 18px;
    border-radius:20px;
    font-weight:bold;
}



@media(max-width:800px){

    .dispatcher-info-grid{
        grid-template-columns:1fr;
    }

}





.seller-pickup-warning,
.seller-pickup-success {
    margin: 14px 0;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.seller-pickup-warning {
    background: #fff8e5;
    border: 1px solid #ffd66b;
}

.seller-pickup-success {
    background: #e8fff1;
    border: 1px solid #38c172;
}




/* ==================================================
   DISPATCHER ITEM EVIDENCE STATUS
================================================== */

.dispatcher-evidence-status {
    margin: 18px 0;
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}


/* Waiting buyer approval */
.dispatcher-evidence-status.pending {
    background: #fff8e5;
    border: 1px solid #ffd66b;
}


/* Buyer approved */
.dispatcher-evidence-status.approved {
    background: #e8fff1;
    border: 1px solid #38c172;
}


/* Buyer requested recheck */
.dispatcher-evidence-status.recheck {
    background: #fff0f0;
    border: 1px solid #ff6b6b;
}


.dispatcher-evidence-status b {
    font-weight: 700;
}





