/* ===========================
   MARR Collections Admin
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f4f6f9;
    color:#222;
    display:flex;
    min-height:100vh;
}

/* ===========================
   Sidebar
=========================== */

.sidebar{

    width:260px;

    background:#111;

    color:white;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    padding:30px 20px;

    position:fixed;

    top:0;

    left:0;

    height:100vh;

}

.logo{

    text-align:center;

}

.logo h2{

    color:#fff;

    font-size:34px;

}

.logo p{

    color:#c00000;

    font-weight:600;

}

.sidebar ul{

    list-style:none;

    margin-top:40px;

}

.sidebar li{

    padding:15px;

    border-radius:10px;

    margin-bottom:10px;

    cursor:pointer;

    transition:.3s;

}

.sidebar li:hover{

    background:#c00000;

}

.sidebar .active{

    background:#c00000;

}

.sidebar button{

    background:#c00000;

    color:white;

    border:none;

    padding:14px;

    border-radius:10px;

    cursor:pointer;

    font-size:16px;

    transition:.3s;

}

.sidebar button:hover{

    background:#900;

}

/* ===========================
   Main Content
=========================== */

.main-content{

    flex:1;

    margin-left:260px;

    padding:35px;

}

/* ===========================
   Topbar
=========================== */

.topbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}

.topbar h1{

    font-size:36px;

}

.topbar p{

    color:#666;

}

.topbar input{

    width:320px;

    padding:12px;

    border:1px solid #ddd;

    border-radius:10px;

    outline:none;

}

/* ===========================
   Cards
=========================== */

.dashboard-cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-bottom:35px;

}

.card{

    background:white;

    padding:25px;

    border-radius:15px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.card:hover{

    transform:translateY(-6px);

}

.card h3{

    color:#666;

    margin-bottom:12px;

}

.card h2{

    font-size:34px;

}

.revenue{

    border-left:6px solid #16a34a;

}

.orders{

    border-left:6px solid #2563eb;

}

.pending{

    border-left:6px solid #f59e0b;

}

.delivered{

    border-left:6px solid #9333ea;

}

/* ===========================
   Charts
=========================== */

.charts{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:25px;

    margin-bottom:30px;

}

.chart-card{

    background:white;

    border-radius:15px;

    padding:25px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    margin-bottom:30px;

}

.chart-card h2{

    margin-bottom:20px;

}

canvas{

    width:100%!important;

    height:350px!important;

}

/* ===========================
   Orders
=========================== */

.orders-section{

    margin-top:30px;

}

.section-header{

    margin-bottom:20px;

}

.order-card{

    background:white;

    border-radius:15px;

    padding:25px;

    margin-bottom:20px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.order-card:hover{

    transform:translateY(-3px);

}

.order-card h3{

    margin-bottom:10px;

}

.order-card p{

    margin:8px 0;

}

/* ===========================
   Buttons
=========================== */

button{

    border:none;

    border-radius:8px;

    padding:10px 16px;

    margin:6px 4px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

button:hover{

    transform:translateY(-2px);

}

.btn-delete{

    background:#dc2626;

    color:white;

}

.btn-delete:hover{

    background:#991b1b;

}

.btn-processing{

    background:#f59e0b;

    color:white;

}

.btn-processing:hover{

    background:#d97706;

}

.btn-shipped{

    background:#2563eb;

    color:white;

}

.btn-shipped:hover{

    background:#1d4ed8;

}

.btn-delivered{

    background:#16a34a;

    color:white;

}

.btn-delivered:hover{

    background:#15803d;

}

/* ===========================
   Mobile
=========================== */

@media(max-width:900px){

    .sidebar{

        display:none;

    }

    .main-content{

        margin-left:0;

        padding:20px;

    }

    .charts{

        grid-template-columns:1fr;

    }

    .topbar{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .topbar input{

        width:100%;

    }

}

.filters{

    display:flex;

    gap:15px;

    margin-bottom:30px;

    flex-wrap:wrap;

}

.filter-btn{

    background:white;

    color:#222;

    border:1px solid #ddd;

    padding:12px 22px;

    border-radius:30px;

    cursor:pointer;

    transition:.3s;

}

.filter-btn:hover{

    background:#c00000;

    color:white;

}

.filter-btn.active{

    background:#c00000;

    color:white;

}