
/* General Header Styling */
.dashboard{
    padding: 10px;
}
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  font-family: "Poppins", sans-serif;
}

/* Hamburger Menu Styling */
.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
}

/* Hamburger Animation */
.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar Navigation - Slides down from under header */
.sidebar-nav {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: white;
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 400px;
    padding: 10px;
    /* transform: translateY(-100%); */
}   

.sidebar-nav.active {
    top: 60px; 
    /* transform: translateY(0); */
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);

}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    text-decoration: none;
    font-size: 16px;
    color: black;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    /* padding-left: 35px; */
}

.sidebar-nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #fff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-nav ul li a:hover::before {
    transform: scaleY(1);
}

.sidebar-nav ul li:last-child {
    border-bottom: none;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Store Dropdown */
.store-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.store-dropdown .arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #333;
}

.store-dropdown:hover .arrow {
  border-top-color: #FF9800;
}


.page_title {
    font-size: 22px;
    color: #FF9800;
    margin-bottom: 15px;
    margin-top: 15px;
}

.box_item {
    background: linear-gradient(to right, #F81521, #FF9800);
    border-radius: 15px;
    padding: 35px;
    color: white;
}

.vendor_holdings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.vendor_holdings h3 {
    font-size: 35px;
}

.vendor_holdings h4 {
    margin: 0;
}

.holding_section_title {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #FF9800;
}

.small_box_holdings {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.small_box_item {
    background: linear-gradient(to right, #F81521, #FF9800);
    border-radius: 8px;
    padding: 5px 19px 5px 19px;
    min-width: 42%;
    color: white;
    margin-bottom: 20px;
}

.small_box_item span {
    font-size: 10px;
}

.small_holdings h3 {
    font-size: 24px;
}

.sales_figure_title {
    font-size: 16px;
    color: #FF9800;
    margin-top: 15px;
    margin-bottom: 10px;
    /*margin-left: 15px;*/
}

.percent_icon_items {
  display: flex;
  justify-content: space-between;
  /*align-items: center;*/
  padding-top: 30px;
  padding-bottom: 30px;
  height: 40px;
  margin-top: 30px;
}

.percent-icon {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 5px 10px;
}

.percent_icon_anim {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.progress-ring__background {
  fill: none;
  stroke: #ddd;
  stroke-width: 3.5;
}

.progress-ring__progress {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.icon-content svg {
  width: 20px;
  height: 20px;
}

.percent-icon .percent_text {
  margin-left: 5px;
  display: flex;
  flex-direction: column;
}

.percent-icon .percent_text span:first-child {
  font-size: 14px;
  font-weight: bold;
  color: black;
}

.percent-icon .percent_text span {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.7);
}

.visitor_graph {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visitor_figure {
    display: flex;
    align-items: center;
}

.visitor_graph_item span {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    /* margin-top: 10px; */
}

.visitor_figure span {
    font-size: 14px;
    color: #FC5A5A;
    margin-left: 8px;
}

.best_selling_product {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: linear-gradient(to right, #F81521, #FF9800);
    border-radius: 10px;
}

.best_selling_product_item p {
    font-size: 13px;
    color: white;
    margin-bottom: 3px;
    font-weight: bold;
}

.best_selling_product_info {
    display: flex;
    flex-direction: column;
}

.best_selling_product_info span {
    font-size: 11px;
    color: white;
}

.best_selling_product_img {
    border-radius: 50%;
    background-color: #ddd;
    width: 71px;
    height: 71px;
}

.recent-orders {
  width: 100%;
  /*max-width: 500px;*/
  margin: 20px auto;
  font-family: "Poppins", sans-serif;
}

.recent-orders h3 {
  color: #FF9800;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.recent-orders table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.recent-orders th,
.recent-orders td {
  text-align: left;
  padding: 8px 12px;
}

.recent-orders thead {
  border-bottom: 1px solid #ddd;
}

.recent-orders th {
  color: #FF9800;
  font-weight: 500;
  font-size: 12px;
}

.recent-orders td {
  color: #333;
  border-bottom: 1px solid #f2f2f2;
  font-size: 10px;
}

.status {
  font-weight: 500;
}

.status.completed {
  color: #4CAF50; /* green */
}

.status.pending {
  color: #FF9800; /* orange */
}

/* Desktop Responsive Layout */
@media (min-width: 769px) {
    .dashboard {
        padding: 30px;
        max-width: 1400px;
    }

    .page_title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    /* Wallet Balance - Full width at top */
    .box_item {
        margin-bottom: 30px;
    }

    /* Summary Section - 4 cards in a row */
    .holding_section_title {
        margin-bottom: 20px;
    }

    .summary-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }

    .small_box_holdings {
        display: contents;
    }

    /* Sales Chart and Stats Side by Side */
    .sales-stats-wrapper {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .sales-chart-section {
        order: 1;
    }

    .stats-sidebar {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Bottom section - Best Selling, Percent Icons, Visitor in a row */
    .bottom-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .percent_icon_items {
        display: flex;
        /*flex-direction: column;*/
        gap: 20px;
    }

}

/* Mobile */
@media (max-width: 768px) {
    .summary-grid,
    .sales-stats-wrapper,
    .bottom-row,
    .stats-sidebar {
        display: block;
    }

    .summary-grid > *,
    .sales-stats-wrapper > *,
    .bottom-row > *,
    .stats-sidebar > * {
        margin-bottom: 20px;
    }
}