/*====================================================
        OFFBEAT PARCEL HISTORY
        Part 1
        Developed by Nisite Webcraft
====================================================*/

/*==========================
        RESET
==========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins",sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{

    background:#f4f7fb;

    color:#222;

    min-height:100vh;

    padding:20px;

}

/*==========================
        CONTAINER
==========================*/

.container{

    width:100%;

    max-width:1400px;

    margin:auto;

}

/*==========================
        HEADER
==========================*/

header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

header h2{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:28px;

    font-weight:700;

    color:#1f2937;

}

header h2 i{

    color:#2563eb;

    font-size:28px;

}

/*==========================
        TOP BAR
==========================*/

.top-bar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-bottom:20px;

    flex-wrap:wrap;

}

/*==========================
        SEARCH BOX
==========================*/

.search-box{

    flex:1;

    min-width:280px;

    position:relative;

}

.search-box i{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:#6b7280;

    font-size:15px;

}

.search-box input{

    width:100%;

    height:50px;

    padding-left:50px;

    padding-right:18px;

    border:1px solid #d1d5db;

    border-radius:12px;

    outline:none;

    background:#fff;

    font-size:15px;

    transition:.3s;

}

.search-box input:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.12);

}

/*==========================
        FILTER BAR
==========================*/

.filter-bar{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:25px;

    flex-wrap:wrap;

}

/*==========================
        FILTER BUTTONS
==========================*/

.filter-btn{

    border:none;

    outline:none;

    cursor:pointer;

    background:#fff;

    color:#374151;

    padding:11px 24px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

    border:1px solid #d1d5db;

    transition:.25s;

}

.filter-btn:hover{

    background:#2563eb;

    color:#fff;

    border-color:#2563eb;

}

.filter-btn.active{

    background:#2563eb;

    color:#fff;

    border-color:#2563eb;

}

/*==========================
        SECTION TITLE
==========================*/

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.section-title h3{

    font-size:18px;

    color:#1f2937;

    font-weight:600;

}

.section-title span{

    color:#6b7280;

    font-size:14px;

}
/*====================================================
        OFFBEAT PARCEL HISTORY
        Part 2
        TABLE • QR • ACTIONS
====================================================*/

/*==========================
        TABLE WRAPPER
==========================*/

.table-wrapper{

    width:100%;

    overflow-x:auto;

    background:#fff;

    border-radius:16px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    border:1px solid #e5e7eb;

}

/*==========================
        TABLE
==========================*/

table{

    width:100%;

    min-width:1150px;

    border-collapse:collapse;

}

/*==========================
        TABLE HEADER
==========================*/

thead{

    background:#2563eb;

}

thead th{

    color:#fff;

    padding:16px 18px;

    text-align:left;

    font-size:14px;

    font-weight:600;

    letter-spacing:.4px;

    white-space:nowrap;

}

/*==========================
        TABLE BODY
==========================*/

tbody tr{

    border-bottom:1px solid #e5e7eb;

    transition:.25s;

}

tbody tr:hover{

    background:#f8fbff;

}

tbody td{

    padding:16px;

    font-size:14px;

    color:#374151;

    vertical-align:middle;

}

/*==========================
        ORDER ID
==========================*/

.order-id{

    font-weight:700;

    color:#2563eb;

}

/*==========================
        CUSTOMER NAME
==========================*/

.customer-name{

    font-weight:600;

    color:#111827;

}

/*==========================
        PRODUCT
==========================*/

.product{

    font-weight:500;

}

/*==========================
        COURIER BADGE
==========================*/

.courier{

    display:inline-block;

    padding:6px 14px;

    border-radius:30px;

    background:#eff6ff;

    color:#2563eb;

    font-size:13px;

    font-weight:600;

}

/*==========================
        DATE
==========================*/

.date{

    white-space:nowrap;

    color:#6b7280;

}

/*==========================
        QR CODE
==========================*/

.qr-box{

    width:52px;

    height:52px;

    display:flex;

    justify-content:center;

    align-items:center;

    border:1px solid #d1d5db;

    border-radius:8px;

    background:#fff;

    overflow:hidden;

}

.qr-box img{

    width:100%;

    height:100%;

    object-fit:contain;

}

/*==========================
        ACTION BUTTONS
==========================*/

.actions{

    display:flex;

    align-items:center;

    gap:10px;

}

.actions button{

    width:38px;

    height:38px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    transition:.25s;

    color:#fff;

    font-size:15px;

}

/*==========================
        VIEW
==========================*/

.view-btn{

    background:#2563eb;

}

.view-btn:hover{

    background:#1d4ed8;

}

/*==========================
        PRINT
==========================*/

.print-btn{

    background:#10b981;

}

.print-btn:hover{

    background:#059669;

}

/*==========================
        DELETE
==========================*/

.delete-btn{

    background:#ef4444;

}

.delete-btn:hover{

    background:#dc2626;

}

/*==========================
        EMPTY STATE
==========================*/

.empty-state{

    display:none;

    text-align:center;

    padding:70px 20px;

    background:#fff;

    border-radius:16px;

    margin-top:20px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.empty-state i{

    font-size:60px;

    color:#9ca3af;

    margin-bottom:18px;

}

.empty-state h3{

    font-size:22px;

    color:#374151;

    margin-bottom:10px;

}

.empty-state p{

    color:#6b7280;

    font-size:15px;

}
/*====================================================
        OFFBEAT PARCEL HISTORY
        Part 3
        RESPONSIVE • SCROLLBAR • EFFECTS
====================================================*/

/*==========================
        CUSTOM SCROLLBAR
==========================*/

.table-wrapper::-webkit-scrollbar{

    height:10px;

}

.table-wrapper::-webkit-scrollbar-track{

    background:#eef2f7;

    border-radius:20px;

}

.table-wrapper::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:20px;

}

.table-wrapper::-webkit-scrollbar-thumb:hover{

    background:#1d4ed8;

}

/*==========================
        TABLE ANIMATION
==========================*/

tbody tr{

    animation:fadeIn .35s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==========================
        BUTTON EFFECTS
==========================*/

.actions button:active{

    transform:scale(.92);

}

.actions button i{

    pointer-events:none;

}

/*==========================
        INPUT PLACEHOLDER
==========================*/

.search-box input::placeholder{

    color:#9ca3af;

}

/*==========================
        TABLE CELL ALIGNMENT
==========================*/

tbody td{

    white-space:nowrap;

}

tbody td:last-child{

    text-align:center;

}

/*==========================
        RESPONSIVE
==========================*/

@media(max-width:992px){

    body{

        padding:15px;

    }

    header{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

    .top-bar{

        flex-direction:column;

        align-items:stretch;

    }

    .search-box{

        width:100%;

    }

    .filter-bar{

        justify-content:flex-start;

    }

    .filter-btn{

        flex:1;

        min-width:90px;

    }

}

@media(max-width:768px){

    table{

        min-width:1000px;

    }

    header h2{

        font-size:24px;

    }

    .actions{

        gap:8px;

    }

    .actions button{

        width:34px;

        height:34px;

        font-size:14px;

    }

    .qr-box{

        width:46px;

        height:46px;

    }

}

@media(max-width:480px){

    body{

        padding:10px;

    }

    header h2{

        font-size:22px;

    }

    .search-box input{

        height:46px;

        font-size:14px;

    }

    .filter-btn{

        padding:10px 18px;

        font-size:13px;

    }

    thead th{

        padding:14px;

        font-size:13px;

    }

    tbody td{

        padding:14px;

        font-size:13px;

    }

    .actions button{

        width:32px;

        height:32px;

        font-size:13px;

    }

    .qr-box{

        width:42px;

        height:42px;

    }

}

/*==========================
        UTILITIES
==========================*/

.hidden{

    display:none !important;

}

.text-center{

    text-align:center;

}

.text-right{

    text-align:right;

}

.text-left{

    text-align:left;

}

/*==========================
        FOCUS STATES
==========================*/

button:focus,
input:focus{

    outline:none;

}

/*==========================
        SELECTION
==========================*/

::selection{

    background:#2563eb;

    color:#fff;

}

/*==========================
        END
==========================*/