* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    background-color: #f8f8f8;
}
.box{
    background-color: white;
    border-radius: 20px;
    padding: 8px;
   box-shadow: 2px 2px 10px 5px #e6e5e5;
   
}
.sidebar li.active{
    background-color: #e6e5e5;
    border-left: 5px solid #27273b;
    border-radius:10px ;
}
.sidebar li.active a{
    color: #27273b !important;
    font-weight: bold;
}
.all{
    flex: 1;
    padding: 20px;
    overflow-x: hidden;
    max-width: 100%;
    min-width: 0;
}

/* ============================================================
   MOBILE / RESPONSIVE LAYOUT
   ============================================================ */

/* Overlay backdrop (existing #overlay element in Admin.html) */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

#overlay.active {
    display: block;
}

/* Sidebar overlay on mobile (xs < 576px) */
@media (max-width: 575.98px) {

    /* Content area takes full width */
    .d-flex > .all {
        width: 100% !important;
        padding: 10px !important;
    }

    /* Sidebar becomes a slide-in fixed overlay */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px !important;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        /* Override Bootstrap d-none so it is in DOM but off-screen */
        display: block !important;
    }

    /* JS adds .show → slides sidebar in */
    .sidebar.show {
        transform: translateX(0);
    }

    /* Stack stats cards full width */
    .row.g-3 .col-sm-12 {
        width: 100% !important;
    }

    /* Charts stack vertically */
    .boxs {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Top nav bar wraps on very small screens */
    .firstnav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .firstnav h2 {
        font-size: 1.1rem !important;
    }

    /* Tables scroll horizontally on mobile */
    .user-management-container .table-responsive,
    .dismisser-table {
        overflow-x: auto !important;
    }

    /* Tighten table cells */
    .user-management-container td,
    .user-management-container th {
        padding: 6px 8px !important;
        font-size: 0.8rem !important;
    }
}

/* Tablet: sm–md (576px–767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {

    .sidebar {
        width: 200px !important;
    }

    .all {
        padding: 12px !important;
    }

    .firstnav h2 {
        font-size: 1.2rem;
    }

    .boxs {
        margin-left: 0 !important;
    }
}

/* User management responsive */
@media (max-width: 575px) {
    #section-users .user-management-container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    #section-users .user-management-container .container {
        padding: 0.75rem !important;
    }
    #section-users .search-box input {
        max-width: 100% !important;
        width: 100% !important;
    }
    #section-users .action-btn {
        width: 28px;
        height: 28px;
        margin: 0 1px;
    }
    #section-users .action-btn i {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    #section-users .user-management-container .container {
        padding: 1rem !important;
    }
    #section-users .search-box input {
        max-width: 100% !important;
    }
}
#userssymbol{
    border-radius: 10px;
    width: 50px;
    height: 50px;
    margin: 5px;
    background-color: rgb(192, 230, 248);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}
#shopsymbol{
    border-radius: 10px;
    width: 50px;
    height: 50px;
    margin: 5px;
    background-color: rgb(248, 224, 192);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: rgb(121, 75, 16);
}
#cartsymbol{
    border-radius: 10px;
    width: 50px;
    height: 50px;
    margin: 5px;
    background-color: rgb(228, 192, 248);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: rgb(94, 39, 124);
}
#dollarsymbol{
     border-radius: 10px;
    width: 50px;
    height: 50px;
    margin: 5px;
    background-color: rgb(208, 250, 207);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: rgb(49, 99, 48);
}
.title{
    color: gray;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
}
.num{
    font-weight: bold;
    font-size: 24px;
}
.boxs{
    background-color: white;
    border-radius: 30px;
    height: 300px;
    box-shadow: 2px 2px 10px 5px #e6e5e5;
}

.menu-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001; 
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background-color: #27273b;
    color: white;
    padding: 20px;
}
.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background-color: #444466;
}

h4{
   
    display: inline-block;
}
#spa{
    color: #27273b;
    background-color: white;
    padding: 5px;
    border-radius: 7px;
    font-weight: bold;
}

.order-container {
    width: 80%;
    margin: 20px auto;
    background-color: #004085;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-header h2 {
    color: #333;
}

.order-header .filter {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th,
.order-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.order-table th {
    background-color: #004085;
}

.order-table tr:nth-child(even) {
    background-color: #004085;
}

.order-table tr:hover {
    background-color: #f1f1f1;
}

.order-table .status {
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
}

.status.pending {
    background-color: #ff9800;
}

.status.shipped {
    background-color: #ff9800;
}

.status.cancelled {
    background-color: #f44336;
}

.view-details-link {
    color: #2196f3 !important;
    text-decoration: none;
}

/* Badge status styles */
.badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-processing {
    background-color: #cce5ff;
    color: #004085;
}

.badge-completed {
    background-color: #004085;
    color: white;
}

.badge-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-user-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Order detail modal items */
.order-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-detail-item:last-child {
    border-bottom: none;
}

.order-detail-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}


.user-management-container table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
}

.user-management-container table td {
    font-size: 0.9rem;
    color: #333;
    padding: 1rem 0.5rem;
    vertical-align: middle;
}

.user-td-name {
    font-weight: 500;
}

.user-td-id {
    font-weight: 600;
}

.user-status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background-color: #e6f6ec;
    color: #00b207;
}

.status-inactive {
    background-color: #fff3cd;
    color: #856404;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: all 0.2s ease;
    margin: 0 2px;
    cursor: pointer;
}

.action-btn i {
    font-size: 0.85rem;
}

/* Specific button styles matching mockup colors */
.btn-view {
    color: #0d6efd;
    border-color: #b6d4fe;
}

.btn-view:hover {
    background-color: #cfe2ff;
}

.btn-toggle {
    color: #ffc107;
    border-color: #ffecb5;
}

.btn-toggle:hover {
    background-color: #fff3cd;
}

.btn-delete {
    color: #dc3545;
    border-color: #f5c2c7;
}

.btn-delete:hover {
    background-color: #f8d7da;
}

.search-box input:focus {
    box-shadow: none;
    border-color: #00b207;
}

tr {
    border-bottom: 1px solid #f1f1f1;
}

tr:last-child {
    border-bottom: none;
}


/* Container */
.dismisser-table {
    width: 100%;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header */
.dismisser-table-header {
    display: flex;
    align-items: center;
    background: #2c3e50;
    color: #fff;
    font-weight: bold;
    padding: 12px 10px;
}

.dismisser-table-header>div {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

/* Rows */
.dismisser-row {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    transition: 0.2s ease;
}

.dismisser-row:hover {
    background: #f9f9f9;
}

/* Columns */
.dismisser-row>div {
    flex: 1;
    text-align: center;
}

/* Image */
.dismisser-col-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

/* Text */
.dismisser-row p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Price styling */
.dismisser-col-price p {
    color: #27ae60;
    font-weight: bold;
    text-align: center;
}

/* Stock */
.dismisser-col-stock p {
    font-weight: bold;
    text-align: center;
}

/* Rating */
.dismisser-col-rate p {
    color: #f39c12;
    text-align: center;
}

/* Actions button */
.btn-dismiss {
    background: #e74c3c;
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-dismiss:hover {
    background: #c0392b;
}

.row>*{
        padding: 5px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dismisser-table-header {
        display: none;
    }

    .dismisser-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .dismisser-row>div {
        width: 100%;
        text-align: left;
        margin-bottom: 8px;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .dismisser-row>div::before {
        font-weight: bold;
        color: #555;
        text-transform: capitalize;
        text-align: center;
    }

    .dismisser-col-img img {
        width: 70px;
        height: 70px;
    }
}
/***/
.dismisser-table-header,
.dismisser-row {
    display: flex !important;
    align-items: center;
}

.col-id { width: 50px; }
.col-image { width: 80px; }
.col-name { max-width: 180px; }
.col-category { max-width: 180px; }
.col-price { width: 80px; }
.col-stock { width: 80px; }
.col-seller { width: 100px; }
.col-rating { width: 80px; }
.col-actions { width: 80px; }


/***/


/* Header Bar */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Left title */
.header-bar>p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #111827;
    white-space: nowrap;
}

/* Products count container */
.header-bar>div:first-of-type {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

#number {
    font-weight: 600;
    color: #111827;
}

/* Search group */
.search-group {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    flex: 1;
    max-width: 400px;
}

.search-group label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 2px;
}

#search {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

#search:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Dropdown */
.dropdown {
    min-width: 160px;
}

#cat_but {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    text-align: left;
}

/* Dropdown menu */
#cat_menu {
    border-radius: 6px;
    padding: 4px 0;
}

/* Hover */
.dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
    .header-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-group {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .dropdown {
        order: 2;
    }
}

.pg_con,
.button,
.links,
.link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg_con {
    padding: 20px;
    border-radius: 8px;
    column-gap: 12px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.button {
    border: none;
}

.button i {
    pointer-events: none;
}

.button:disabled {
    color: #b3b3b3;
    pointer-events: none;
}

.button,
.link {
    height: 45px;
    width: 45px;
    font-size: 20px;
    color: #666666;
    background-color: #f2f2f2;
    border-radius: 6px;
    cursor: pointer;
}

.links {
    column-gap: 12px;
}

.link {
    font-weight: 500;
    text-decoration: none;
}

.button:hover,
.link:hover {
    color: #fff;
    background: green;
}

.link.Active {
    color: #fff;
    background: green;
}

:root {
    --eco-green:       #2e9e45;
    --eco-green-dark:  #1f7a32;
    --eco-green-light: #f0faf0;
}

body { background: #f4f6f9; }

/* navbar */
.eco-navbar { border-bottom: 2px solid var(--eco-green); }
.eco-navbar .navbar-brand i { color: var(--eco-green); }

/* page header */
.page-header {
    background: linear-gradient(135deg, #165a25 0%, #2e9e45 60%, #5cb85c 100%);
    padding: 1.75rem 0 1.5rem;
}
.page-header h4   { color: #fff; }
.page-header .lead { color: rgba(255,255,255,.75); font-size: .95rem; }

/* kpi card */
.kpi-card { border-left: 4px solid var(--eco-green); }
.kpi-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--eco-green-light); color: var(--eco-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

/* table header */
.table thead th {
    background: var(--eco-green-light);
    color: var(--eco-green-dark);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 2px solid var(--eco-green);
    white-space: nowrap;
}
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f0faf0; }

/* stars */
.stars { color: #f5a623; letter-spacing: 1px; font-size: .82rem; }

/* ── Avatar initials ── */
.seller-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--eco-green-light); color: var(--eco-green-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .75rem; flex-shrink: 0;
}

/* ── Badge pill ── */
.action-badge {
    font-size: .7rem; padding: .25rem .6rem;
    border-radius: 20px; white-space: nowrap;
}

/* ── Sellers section full width ── */
#section-sellers .container-fluid { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }

/* ── Action buttons: compact row ── */
.action-col { min-width: 90px; white-space: nowrap; }
.action-btns { display: flex; flex-direction: row; gap: .35rem; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.action-btns .btn {
    font-size: .68rem;
    padding: .2rem .5rem;
    line-height: 1.3;
    border-radius: 6px;
}
.action-btns .btn i { font-size: .65rem; margin-right: 2px; }

/* Hide button text on small screens, show icon only */
@media (max-width: 991px) {
    .action-btns .btn span.btn-label { display: none; }
    .action-btns .btn i { margin-right: 0; }
    .action-btns .btn { padding: .25rem .4rem; }
}

/* ── Seller table: tighter rows ── */
#section-sellers .table td { font-size: .82rem; padding: .45rem .5rem; vertical-align: middle; }
#section-sellers .table th { font-size: .7rem; padding: .5rem .5rem; }

/* ── KPI cards: compact ── */
#section-sellers .kpi-card .card-body { padding: .6rem .8rem; }
#section-sellers .kpi-card .fs-5 { font-size: 1.05rem !important; }

/* ── Toolbar: search fills full width on xs ── */
.toolbar-search { width: 220px; }
@media (max-width: 575px) {
    .toolbar-search { width: 100%; }
}
@media (max-width: 768px) {
    .sidebar {
        position: fixed;     
        left: -250px;      
        top: 0;
        width: 240px;
        height: 100vh;
        z-index: 1050;       
        transition: 0.3s;
    }
    .sidebar.show {
        left: 0;    
    }
    #overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }

    #overlay.active {
        display: block;
    }
}
#menuBtn{
    border: none;
    background-color: transparent;

}