@font-face {
  font-family: "Inter Display";
  src: url("../../fonts/InterDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../../fonts/InterDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../../fonts/InterDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../../fonts/InterDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --primary-color: #003d80;
  --primary-dark: #002a5a;
  --light-grey: #f8f9fa;
  --text-heading: #231f20;
  --text-body: #2d2d2d;
  --font-inter: "Inter Display", sans-serif;
  --accent-color: #2d2d2d;
}

body {
  font-family: var(--font-inter);
  color: var(--text-body);
  /* font-optical-sizing: auto; Removed for static TTF files */
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

/* Button and Card Accents */
.btn-primary,
.card-header,
.btn-custom {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: #ffffff;
}

.btn-primary:hover,
.btn-custom:hover {
  background-color: #1a1a1a !important; /* Darker shade of #2D2D2D */
  border-color: #1a1a1a !important;
}

/* --- New Header & Hero Styles --- */

/* --- Sidebar Styles --- */
:root {
  --sidebar-width-expanded: 243px;
  --sidebar-width-collapsed: 128px;
  --header-height: 80px;
  --color-teal: #008b8b;
  --color-red: #ff0004;
  --color-text-dark: #2d2d2d;
  --color-text-muted: #8e8e8e;
  --color-bg-sidebar: #ffffff;
  --color-bg-active: #008b8b;
  --transition-speed: 0.3s;
}

body {
  margin: 0;
  display: flex;
  background-color: #f5f5f5;
  padding-top: var(--header-height);
}

/* Sidebar Toggle Arrow */
.sidebar-toggle-btn {
  position: absolute;
  right: -12px;
  top: 35px;
  width: 24px;
  height: 24px;
  background: white;
  border: 1px solid #eeeeee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle-btn i {
  transition: transform 0.3s ease;
  display: flex;
  color: var(--color-teal);
}

.sidebar.collapsed .sidebar-toggle-btn i {
  transform: rotate(180deg);
}

.sidebar {
  width: var(--sidebar-width-expanded);
  height: 100vh;
  background-color: var(--color-bg-sidebar);
  border-right: 1px solid #eeeeee;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  transition: width var(--transition-speed) ease;
  z-index: 1000;
}

.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.sidebar-header {
  padding: 30px 24px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  height: 34px;
  max-width: 189px;
  transition: transform var(--transition-speed);
}

.sidebar.collapsed .sidebar-logo.full-logo {
  display: none;
}

.sidebar-logo.icon-logo {
  display: none;
}

.sidebar.collapsed .sidebar-logo.icon-logo {
  display: block;
  margin: 0 auto;
}

.sidebar-content {
  flex: 1;
  padding: 0 16px;
  overflow-y: auto;
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 16px 8px 12px;
  text-transform: capitalize;
  transition: opacity var(--transition-speed);
}

.sidebar.collapsed .sidebar-section-title {
  opacity: 0;
  pointer-events: none;
}

/* Menu Items */
.sidebar-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 500;
  margin-bottom: 4px;
  transition:
    background-color var(--transition-speed),
    color var(--transition-speed);
  position: relative;
}

.sidebar-menu-item:hover {
  background-color: #f8f8f8;
}

.sidebar-menu-item.active {
  background-color: var(--color-bg-active);
  color: #ffffff;
}

.sidebar-menu-item .menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-menu-item .menu-icon img {
  /* width: 100%; */
  height: 100%;
}

.sidebar-menu-item .icon-active {
  display: none;
}

.sidebar-menu-item.active .icon-normal {
  display: none;
}

.sidebar-menu-item.active .icon-active {
  display: block;
}
.icon-active {
  height: 20px;
  width: 20px;
}

.sidebar-menu-item .menu-text {
  margin-left: 12px;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity var(--transition-speed);
}

.sidebar.collapsed .sidebar-menu-item {
  justify-content: center;
  padding: 12px 0;
}

.sidebar.collapsed .sidebar-menu-item .menu-text {
  display: none;
}

.sidebar.collapsed .sidebar-menu-item.active {
  background-color: transparent;
}

/* Collapsed Active Icon Background */
.sidebar.collapsed .sidebar-menu-item.active .menu-icon {
  background-color: var(--color-bg-active);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logout Item */
.sidebar-footer {
  padding: 24px 16px;
  border-top: 1px solid #eeeeee;
}

.sidebar-logout-form {
  width: 100%;
}

.sidebar-menu-item.logout {
  color: var(--color-red);
}

.sidebar-menu-item.logout .menu-icon img {
  filter: invert(15%) sepia(95%) saturate(7400%) hue-rotate(355deg)
    brightness(100%) contrast(110%);
}

.sidebar-menu-item.logout:hover {
  background-color: #fff0f0;
}

/* Main Content Area adjustments */
.main-content {
  background: #fff;
  flex: 1;
  min-width: 0; /* Critical flexbox fix for table scrolling */
  margin-left: var(--sidebar-width-expanded);
  transition: margin-left var(--transition-speed) ease;
  min-height: calc(100vh - var(--header-height));
  padding: 24px;
}

.main-content.sidebar-collapsed {
  margin-left: var(--sidebar-width-collapsed);
}

/* --- Header Styles --- */
.dashboard-header {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width-expanded);
  height: var(--header-height);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 999;
  border-bottom: 1px solid #eeeeee;
  transition: left var(--transition-speed) ease;
}

.sidebar.collapsed ~ .dashboard-header,
.sidebar.collapsed + .main-content .dashboard-header,
.header-standalone.sidebar-collapsed {
  left: var(--sidebar-width-collapsed);
}

/* If main content wraps header */
.main-content .dashboard-header {
  left: var(--sidebar-width-expanded);
  width: calc(100% - var(--sidebar-width-expanded));
}

.sidebar-collapsed .dashboard-header {
  left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2d2d2d;
  font-weight: 500;
}

.hamburger-btn {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
  margin-right: 8px;
  cursor: pointer;
}

.hamburger-btn img {
  width: 40px;
  height: 40px;
}

/* .header-left img {
  width: 20px;
  height: 20px;
} */

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  transition: background-color 0.2s;
  padding: 0px;
}

.header-icon-btn:hover {
  background-color: #f8f8f8;
}

.profile-img-container {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  padding: 0px;
}
.headerIconsclass {
  width: 44px;
  height: 44px;
}

/* Notification Modal */
.notification-modal .custom-modal {
  max-width: 520px;
  padding: 24px;
}

.notification-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.notification-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 139, 139, 0.07);
}

.notification-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e5f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #2563eb;
  flex-shrink: 0;
}

.notification-text-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.notification-text-subtitle {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.notification-meta i {
  font-size: 14px;
}

.notification-delete-btn {
  border: none;
  background: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-delete-btn i {
  font-size: 18px;
}

/* --- Overview Section --- */
.overview-header {
  margin-bottom: 24px;
}

.overview-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: #2d2d2d;
}

.overview-container {
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 12px;
  background-color: white;
  display: flex;
  flex-wrap: wrap;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  gap: 12px;
}

.stat-card {
  max-width: 219px;
  width: 100%;
  padding: 6px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 90px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon img {
  width: 35px;
  height: 35px;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  color: #8e8e8e;
  margin-bottom: 2px;
  white-space: nowrap;
}
.gshdagefsad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #2d2d2d;
}

.stat-trend {
  font-size: 11px;
  margin-top: 2px;
}

.trend-pos {
  color: #379d7e;
}

.trend-neg {
  color: #fa3a5c;
}

/* Specific Card Backgrounds */
.card-revenue {
  background-color: #e6f7f1;
}
.card-orders {
  background-color: #eaf2ff;
}
.card-processing {
  background-color: #fff6e5;
}
.card-shipped {
  background-color: #faffca;
}
.card-delivered {
  background-color: #d5ffe4;
}
.card-cancelled {
  background-color: #fdecef;
}
.card-returned {
  background-color: #f3e8ff;
}

/* Overview Header with Actions */
.overview-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn-order-cancel {
  border: 1px solid #8b42da;
  color: #2d2d2d;
  background: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-order-cancel:hover {
  background: #f3e8ff;
}

.btn-order-create {
  background-color: #008b8b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-order-create:hover {
  background-color: #007272;
}

/* Hide scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
  width: 0px;
}
.sidebar-content {
  scrollbar-width: none;
}

/* --- Responsiveness for Small Screens --- */
/* --- Analytics Section --- */
.analytics-section {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.analytics-card {
  background-color: white;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 18px; */
  padding: 12px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #ebebeb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d2d2d;
}

.analytics-card h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  color: #2d2d2d;
}
.sdukbwjehmhnsa {
  margin: 0px !important;
}
.card-controls {
  display: flex;
  gap: 8px;
}

.dropdown-filter,
.date-range-filter {
  padding: 8px 12px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  font-size: 13px;
  color: #2d2d2d;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* --- Bar Chart --- */
.chart-container-bar {
  display: flex;
  height: 250px;
  position: relative;
  margin-left: 40px;
  margin-bottom: 20px;
}

.y-axis {
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: #8e8e8e;
  padding-bottom: 25px; /* Alignment with labels */
}

.bar-chart-area {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 5px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  width: 100%;
  justify-content: center;
}

.bar {
  width: 16px; /* User specified */
  border-radius: 4px 4px 0 0;
}

.bar.gross-margin {
  background-color: #8cacf7;
}
.bar.revenue {
  background-color: #d1defc;
}

.day-label {
  font-size: 11px;
  color: #8e8e8e;
  margin-top: 10px;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #2d2d2d;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.dot.gross-margin {
  background-color: #8cacf7;
}
.dot.revenue {
  background-color: #d1defc;
}

/* --- Donut Chart --- */
.chart-container-donut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
}

.donut-chart-box {
  width: 180px;
  height: 180px;
  position: relative;
}

.donut-svg {
  transform: rotate(-90deg);
}

.donut-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-text .percentage {
  font-size: 24px;
  font-weight: 700;
  color: #2d2d2d;
}

.chart-legend-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.square {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.square.regular {
  background-color: #7d8bb7;
  border: 1px solid #6776a7;
}
.square.new {
  background-color: #54db9c;
  border: 1px solid #2aa169;
}

/* --- Recent Orders Section --- */
.recent-orders-section {
  background-color: white;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  /* padding: 12px; */
  margin-top: 24px;
}

.view-all-btn {
  padding: 8px 16px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #2d2d2d;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.table-responsive {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recent-orders-table {
  width: 100%;
  min-width: 1000px; /* Enforced minimum width to guarantee scrolling */
  border-collapse: collapse;
  margin-top: 10px;
}

.recent-orders-table td,
.recent-orders-table th {
  white-space: nowrap; /* Prevent contents from wrapping and shrinking columns */
}

.recent-orders-table thead tr {
  background-color: #008b8b;
}

.recent-orders-table th {
  color: white;
  font-weight: 500;
  font-size: 13px;
  padding: 12px 15px;
  text-align: left;
  white-space: nowrap;
}

.recent-orders-table td {
  padding: 12px 15px;
  font-size: 13px;
  color: #2d2d2d;
  border-bottom: 1px solid #f5f5f5;
}

.recent-orders-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.processing {
  border: 1px solid #ffc130;
  color: #ffc130;
}

.status-badge.shipped {
  border: 1px solid #0ea5e9;
  color: #0ea5e9;
}

.status-badge.delivered {
  border: 1px solid #22c55e;
  color: #22c55e;
}

.action-cell {
  text-align: center;
}

.recent-orders-table .action-cell {
  position: relative;
  z-index: 5;
}

.recent-orders-table .action-cell a.dashboard-order-view-link {
  display: inline-block;
  padding: 6px 12px;
  min-width: 44px;
  min-height: 32px;
  cursor: pointer;
  position: relative;
  z-index: 10;
  line-height: 1.2;
  font-size: 13px;
  font-weight: 500;
  color: #008b8b;
  text-decoration: none;
  border: 1px solid #008b8b;
  border-radius: 6px;
  background: #fff;
  pointer-events: auto;
}
.recent-orders-table .action-cell a.dashboard-order-view-link:hover {
  background: #008b8b;
  color: #fff;
}

.btn-view-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid #008b8b;
  border-radius: 6px;
  color: #2d2d2d;
  font-size: 13px;
  text-decoration: none;
  background: white;
  transition: all 0.2s;
}

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

.btn-view-action img {
  width: 14px;
  height: 14px;
}

/* --- Pagination --- */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding-bottom: 20px;
}

.pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  align-items: center;
}

.page-item {
  display: flex;
}

.page-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  color: #2d2d2d;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.page-link:hover:not(.active) {
  background-color: #f8f8f8;
}

.page-link.active {
  background-color: #008b8b;
  color: white;
  border-color: #008b8b;
}

.page-link.ellipsis {
  border: none;
  cursor: default;
}

.page-nav {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  color: #2d2d2d;
  text-decoration: none;
}

/* --- Filter Row --- */
.filter-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.search-wrapper {
  position: relative;
  width: 320px;
}

.search-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #8e8e8e;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  font-size: 14px;
}

.date-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #2d2d2d;
}

/* Sort Dropdown & Export */
.btn-export-csv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #2d2d2d;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.title-icon-circle {
  width: 32px;
  height: 32px;
  border: 1px solid #ebebeb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.title-icon-circle img {
  /* width: 18px; */
  /* height: 18px; */
}

.sort-dropdown {
  padding: 8px 12px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  font-size: 14px;
  color: #8e8e8e;
  background: white;
}
@media (max-width: 1024px) {
  .analytics-section {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --sidebar-width-collapsed: 70px;
  }
  .filter-row-right {
    flex-direction: column;
    gap: 12px;
  }
  body {
    padding-top: var(--header-height);
  }

  .headerIconsclass {
    width: 30px;
    height: 30px;
  }

  .dashboard-header {
    left: 0 !important;
    padding: 0 15px;
    width: 100% !important;
    transition: none;
  }

  .header-left span {
    font-size: 13px;
  }

  /* .header-left img {
    width: 16px;
    height: 16px;
  } */

  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-icon-btn {
    width: 30px;
    height: 30px;
    padding: 0;
  }

  /* .header-icon-btn img {
    width: 16px;
    height: 16px;
  } */

  .profile-img-container {
    width: 32px;
    height: 32px;
  }
  .filter-row {
    flex-direction: column;
  }

  .sidebar {
    height: 100vh;
    z-index: 2000; /* Higher than header to overlay correctly */
    transition:
      transform var(--transition-speed) ease,
      width var(--transition-speed) ease;
  }

  /* When expanded on mobile, sidebar overlays content */
  .sidebar:not(.collapsed) {
    position: fixed !important;
    transform: translateX(0);
    width: var(--sidebar-width-expanded);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  }

  /* When collapsed on mobile, hide sidebar completely */
  .sidebar.collapsed {
    position: fixed;
    width: var(--sidebar-width-expanded);
    transform: translateX(-100%);
    background-color: white;
  }

  /* Hide toggle button when sidebar is closed on mobile */
  .sidebar.collapsed .sidebar-toggle-btn {
    display: none;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 15px;
    transition: margin-left var(--transition-speed) ease;
  }

  /* Content always full width on mobile */
  .sidebar:not(.collapsed) ~ .main-content {
    margin-left: 0 !important;
  }

  .sidebar-toggle-btn {
    top: 20px;
    right: -12px;
  }

  /* Refine charts on mobile */
  .chart-container-bar {
    margin-left: 30px;
    height: 200px;
  }

  .y-axis {
    left: -30px;
    font-size: 10px;
  }

  .chart-container-donut {
    flex-direction: column;
    gap: 20px;
  }

  .donut-chart-box {
    width: 150px;
    height: 150px;
  }
  .card-header-flex {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .donut-text .percentage {
    font-size: 20px;
  }
}

/* --- Create Order Page --- */
.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8e8e8e;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
}

.page-title {
  font-size: 24px;
  color: #2d2d2d;
  margin-bottom: 24px;
  font-weight: 700;
}

.create-order-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  /* border: 1px solid #ebebeb; */
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #2d2d2d;
}

.text-danger {
  color: #fa3a5c;
}

.custom-input {
  background-color: #f8f8f8;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #2d2d2d;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.custom-input:focus {
  border-color: #008b8b;
}

/* Selection Cards (Radio) */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 16px;
  margin-top: 24px;
}

.selection-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.selection-card {
  flex: 1;
  min-width: 200px;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.selection-card.selected {
  border-color: #008b8b;
  background-color: #f0faf9;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selection-card.selected .radio-circle {
  border-color: #008b8b;
}

.radio-dot {
  width: 10px;
  height: 10px;
  background-color: #008b8b;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

.selection-card.selected .radio-dot {
  opacity: 1;
  transform: scale(1);
}

.selection-info {
  display: flex;
  flex-direction: column;
}

.selection-title {
  font-size: 14px;
  font-weight: 500;
  color: #2d2d2d;
  white-space: nowrap;
}

.selection-subtitle {
  font-size: 12px;
  color: #666;
}
.payment-logo {
  height: 14px;
  vertical-align: middle;
}
.icon-payment {
  color: #008b8b;
  font-size: 18px;
}

/* Variant Section */
.variant-toggle-wrapper {
  display: flex;
  gap: 2px;
  background: white;
  margin-bottom: 16px;
}

.variant-btn {
  padding: 8px 32px;
  font-size: 13px;
  border: 1px solid #ebebeb;
  background: white;
  color: #2d2d2d;
  cursor: pointer;
}
.variant-btn:first-child {
  border-radius: 8px 0 0 8px;
}
.variant-btn:last-child {
  border-radius: 0 8px 8px 0;
}

.variant-btn.active {
  background-color: #008b8b;
  color: white;
  border-color: #008b8b;
}

.tags-container {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.tag-add-btn {
  color: #008b8b;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.variant-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  font-size: 12px;
  color: #2d2d2d;
  background: white;
}

.variant-tag i {
  color: #fa3a5c;
  cursor: pointer;
}

/* Stock Table */
.stock-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  border: 1px solid #ebebeb;
  border-radius: 8px; /* Note: requires separate handling in CSS for tables */
  overflow: hidden;
}

.stock-table th {
  background-color: #008b8b;
  color: white;
  font-weight: 500;
  font-size: 12px;
  padding: 10px;
  text-align: center;
}

.stock-table td {
  padding: 10px;
  border-bottom: 1px solid #ebebeb;
  text-align: left;
  vertical-align: middle;
}
.stock-table td:first-child {
  font-weight: 500;
  font-size: 13px;
  color: #2d2d2d;
  border-right: 1px solid #ebebeb;
}
.stock-input {
  background-color: #f8f8f8;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  width: 100%;
  max-width: 60px;
  font-size: 13px;
}

/* Footer Buttons */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 40px;
}

/* Switch Toggle */
.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #22c55e;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.switch-label {
  font-size: 14px;
  color: #22c55e;
  font-weight: 500;
}

/* Input with icon wrapper */
.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon-wrapper .custom-input {
  padding-right: 40px;
}

.input-icon-wrapper i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8e8e8e;
  pointer-events: none;
}

/* Multi-select Dropdown */
.multi-select-container {
  position: relative;
  width: 100%;
  overflow: visible;
}

.multi-select-trigger {
  background-color: #f8f8f8;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #2d2d2d;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
}

.multi-select-trigger span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.multi-select-trigger i {
  color: #8e8e8e;
  transition: transform 0.3s;
}

.multi-select-container.open .multi-select-trigger i {
  transform: rotate(180deg);
}

.multi-select-menu {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 8px 0;
  display: none;
  max-height: 250px;
  overflow-y: auto;
}

.multi-select-container.open .multi-select-menu {
  display: block;
}

.multi-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.multi-select-item:hover {
  background-color: #f8f8f8;
}

.multi-select-item-all {
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 4px;
  padding-bottom: 10px;
}

/* Custom Teal Checkbox */
.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #e9e9e9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.multi-select-item input {
  display: none;
}

.multi-select-item input:checked + .custom-checkbox {
  background-color: #008b8b;
  border-color: #008b8b;
}

.custom-checkbox i {
  color: white;
  font-size: 12px;
  display: none;
}

.multi-select-item input:checked + .custom-checkbox i {
  display: block;
}

.multi-select-item-text {
  font-size: 14px;
  color: #2d2d2d;
}

/* Tabs Navigation */
.tabs-container {
  display: flex;
  background: white;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  padding: 4px;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #8e8e8e;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-item.active {
  background: #008b8b;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Digital Marketing Overview Cards */
.marketing-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.marketing-stat-icon.blue {
  background: #eff6ff;
  color: #3b82f6;
}

/* Courier Management Overview Cards */
.courier-overview-container {
  background: white;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  /* display: grid; */
  /* grid-template-columns: repeat(5, 1fr); */
  gap: 16px;
  margin-bottom: 24px;
}

.courier-stat-active {
  background-color: #eff6ff;
  border: none;
}
.courier-stat-rate {
  background-color: #fffbeb;
  border: none;
}
.courier-stat-tracking {
  background-color: #eff6ff;
  border: none;
}
.courier-stat-failed {
  background-color: #f5f3ff;
  border: none;
}
.courier-stat-due {
  background-color: #f0fdf4;
  border: none;
}

.white-bg {
  background: white !important;
  border-radius: 8px;
  padding: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2d2d2d;
  margin: 4px 0;
}

.stat-change.growth {
  color: #22c55e;
  font-size: 10px;
  font-weight: 500;
}

.filter-row-right {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  font-size: 14px;
}

.search-input-wrapper .search-icon-inside {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8e8e8e;
}

.add-btn {
  background: #008b8b;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.add-btn:hover {
  background: #007676;
}
.marketing-stat-icon.green {
  background: #f0fdf4;
  color: #22c55e;
}
.marketing-stat-icon.orange {
  background: #fff7ed;
  color: #f97316;
}

.btn-form-cancel {
  padding: 10px 24px;
  border: 1px solid #2d2d2d;
  background: white;
  color: #2d2d2d;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-form-save {
  padding: 10px 24px;
  border: none;
  background: #008b8b;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-width: 120px;
}
.btn-form-save:hover {
  background-color: #007272;
}

/* Responsiveness */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .selection-grid {
    flex-direction: column;
  }
}

/* --- Order Detail Page --- */
.order-detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.order-id-title {
  font-size: 24px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 4px;
}

.order-meta {
  font-size: 14px;
  color: #8e8e8e;
}

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: white;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn-block-customer {
  padding: 8px 16px;
  border: 1px solid #fa3a5c;
  border-radius: 8px;
  background: white;
  color: #fa3a5c;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-block-customer:hover {
  background-color: #fef2f2;
}

.card-common {
  background: white;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

/* Status Section */
.status-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.status-left {
  flex: 1;
}

.status-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 12px;
}

.status-badge-lg {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}
.status-badge-lg.processing {
  border: 1px solid #ffc130;
  color: #ffc130;
  background: #fffdf5;
}

.status-desc {
  font-size: 13px;
  color: #8e8e8e;
}

.status-actions {
  display: flex;
  gap: 12px;
}

.status-dropdown {
  padding: 8px 12px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: white;
  color: #8e8e8e;
  font-size: 14px;
  min-width: 140px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-update-status {
  padding: 8px 24px;
  border: 1px solid #008b8b;
  border-radius: 8px;
  background: white;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-update-status:hover {
  background-color: #f0faf9;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.info-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  margin-bottom: 10px;
  font-size: 14px;
}

.info-label {
  width: 130px;
  font-weight: 600;
  color: #2d2d2d;
  flex-shrink: 0;
}

.info-value {
  color: #2d2d2d;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.text-teal {
  color: #008b8b !important;
}

.text-green {
  color: #5bbb7b !important;
}

.text-processing {
  color: #ffc130 !important;
}

/* Summary Row specific */
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #2d2d2d;
}

.summary-row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #008b8b;
  font-weight: 700;
  font-size: 16px;
}

/* Items List */
.items-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 16px;
}

.item-row {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #008b8b;
}
.item-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ebebeb;
}

.item-details {
  flex: 1;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 4px;
  line-height: 1.4;
}

.item-meta {
  font-size: 13px;
  color: #8e8e8e;
}

.item-price {
  font-size: 16px;
  font-weight: 700;
  color: #2d2d2d;
}

/* --- Category Cards (Product Management) --- */
.card-men {
  background-color: #e3f2fd;
}
.card-women {
  background-color: #fce4ec;
}
.card-kid {
  background-color: #fff8e1;
}
.card-family {
  background-color: #e8f5e9;
}
.card-eid {
  background-color: #f3e5f5;
}
.card-sports {
  background-color: #e0f2f1;
}
.card-festival {
  background-color: #fff3e0;
}
.card-lingerie {
  background-color: #f3e5f5; /* Similar to Eid but can be adjusted */
}
.card-hometextile {
  background-color: #efebe9;
}
.card-wedding {
  background-color: #fce4ec; /* Similar to Women */
}
.card-others {
  background-color: #eceff1;
}

/* Most Selling Product Button Card */
.card-most-selling {
  background-color: #449ec1; /* Specific teal-blue from design */
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  height: 90px; /* Ensure same height */
}

.card-most-selling:hover {
  opacity: 0.9;
}

.most-selling-text {
  color: white;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

/* Ensure grid/flex layout wraps nicely */
.categories-grid {
  justify-content: flex-start; /* Align grid items to start */
  align-items: stretch;
}

.categories-grid .stat-card {
  flex: 0 0 auto; /* Don't grow/shrink unexpectedly */
  width: 196px; /* Fixed width to match design */
}

/* Reuse existing Modal Styles below */
.modal-overlay {
  position: absolute;
  top: 40px;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Centered CRUD Modal Overlay (full-page backdrop + centered content) */
.modal-overlay.crud-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
}

.modal-overlay.crud-modal .custom-modal {
  animation: modalSlideIn 0.3s ease;
}

/* Fix close button inside CRUD modals: use flex instead of absolute */
.modal-overlay.crud-modal .notification-modal-header {
  position: relative;
}

.modal-overlay.crud-modal .modal-close-btn {
  position: static;
  transform: none;
  flex-shrink: 0;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-modal {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.custom-modal::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.modal-header {
  display: flex;
  justify-content: center; /* Center title */
  align-items: center;
  margin-bottom: 24px;
  position: relative; /* For absolute positioning of close btn if needed, or flex */
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0;
}

.modal-close-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ebebeb;
  color: #fa3a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: white;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

/* Create Product Page Layout */
.product-layout-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

.left-column {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.right-column {
  flex: 1;
  background: white;
  /* padding: 32px; */
  /* border-radius: 12px; */
  /* border: 1px solid #ebebeb; */
  /* box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05); */
}

/* Image Gallery Styles */
.image-gallery-container {
  display: flex;
  gap: 12px;
  height: 380px;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90px;
}

.thumbnail-box {
  flex: 1;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 11px;
  text-align: center;
  transition: all 0.2s;
}

.thumbnail-box:hover,
.main-image-box:hover {
  border-color: #008b8b;
  color: #008b8b;
  background-color: #f0fdfd;
}

.thumbnail-box i {
  font-size: 20px;
  margin-bottom: 4px;
}

.main-image-box {
  flex: 1;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

/* Variants Section in Left Column */
.left-column .section-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.left-column .section-title {
  font-size: 16px;
  margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .product-layout-wrapper {
    flex-direction: column;
  }
  .left-column {
    width: 100%;
    flex: none;
  }
  .image-gallery-container {
    height: auto;
    flex-direction: column-reverse;
  }
  .gallery-thumbnails {
    flex-direction: row;
    width: 100%;
    height: 90px;
  }
  .main-image-box {
    height: 300px;
  }
}

/* Add Category Modal Styles */
.input-with-action-wrapper {
  position: relative;
}

.input-action-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #008b8b;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.btn-modal-primary {
  width: 100%;
  background-color: #008b8b;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 24px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-modal-primary:hover {
  opacity: 0.9;
}

.btn-modal-save {
  background-color: #008b8b;
  color: white;
  border: none;
  padding: 12px 100px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 32px auto 0 auto;
  transition: opacity 0.2s;
}

.btn-modal-save:hover {
  opacity: 0.9;
}

/* Courier Info Modal Grid */
.courier-info-box {
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 500;
  min-width: 180px;
  color: #2d2d2d;
  font-size: 14px;
}

.info-label-small {
  font-weight: 500;
  min-width: 140px;
  color: #2d2d2d;
  font-size: 14px;
}

.info-value {
  color: #2d2d2d;
  font-weight: 400;
  font-size: 14px;
}
/* Custom Dropdown Component */
.custom-dropdown-container {
  position: relative;
  width: 100%;
  max-width: 156px; /* User specified max width for menu/container */
}

.custom-dropdown-trigger {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: border-color 0.2s;
  min-height: 44px;
}

.custom-dropdown-trigger:hover {
  border-color: #008b8b;
}

.custom-dropdown-trigger span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-trigger i {
  color: #9ca3af;
  font-size: 14px;
  transition: transform 0.2s;
}

.custom-dropdown-container.open .custom-dropdown-trigger i {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 156px; /* Enforce user's max width */
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}

.custom-dropdown-container.open .custom-dropdown-menu {
  display: block;
}

.custom-dropdown-item {
  padding: 8px 16px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-item:hover {
  background-color: #f3f4f6;
  color: #008b8b;
}

.custom-dropdown-item.selected {
  background-color: #f0faf9;
  color: #008b8b;
  font-weight: 500;
}

/* Product Detail Modal Styles */
.product-detail-modal .custom-modal {
  max-width: 900px !important;
  padding: 40px;
}

.product-detail-modal .modal-header {
  margin-bottom: 30px;
}

.product-detail-modal .modal-header h3 {
  font-size: 24px;
  color: #2d2d2d;
  font-weight: 600;
}

.variant-table-container {
  border: 1px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

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

.variant-detail-table thead th {
  background-color: #008b8b;
  color: white !important;
  padding: 14px 20px;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
}

.variant-detail-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid #f5f5f5;
  color: #555;
  font-size: 14px;
}

.variant-detail-table tbody tr:last-child td {
  border-bottom: none;
}

.modal-summary-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 10px;
  color: #2d2d2d;
  font-weight: 500;
  font-size: 15px;
}

.modal-summary-item span {
  font-weight: 700;
}

.product-detail-modal .modal-close-btn {
  border-color: #fef2f2;
}

.product-detail-modal .modal-close-btn i {
  color: #fa3a5c;
}
/* Inline Status Badges for Tables */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  min-width: 80px;
}

.status-badge.processing {
  background: #fffdf5;
  color: #ffc130;
  border: 1px solid #ffc130;
}

.status-badge.delivered {
  background: #f0faf9;
  color: #22c55e;
  border: 1px solid #22c55e;
}

.status-badge.cancelled {
  background: #fef2f2;
  color: #fa3a5c;
  border: 1px solid #fa3a5c;
}

/* Reports & Analytics Page */
.reports-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #ebebeb;
}

.report-tabs {
  display: flex;
  gap: 12px;
}

.report-tab {
  padding: 8px 16px;
  border-radius: 8px;
  color: #8e8e8e;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.report-tab:hover {
  color: #2d2d2d;
}

.report-tab.active {
  background-color: #008b8b;
  color: white;
}

.report-date-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.report-date-picker {
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 8px 12px 8px 36px;
  font-size: 14px;
  color: #2d2d2d;
  outline: none;
  min-width: 200px;
}

.report-date-picker-icon {
  position: absolute;
  left: 12px;
  color: #8e8e8e;
  font-size: 16px;
}

.reports-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.report-section-container {
  background: white;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 24px;
  height: 100%;
}

.report-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.report-section-header h4 {
  margin: 0;
  font-size: 18px;
  color: #2d2d2d;
  font-weight: 600;
}

.report-section-icon-outer {
  width: 36px;
  height: 36px;
  border: 1px solid #ebebeb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.report-stat-block {
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 80px;
}

.report-stat-icon-wrapper {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.report-stat-icon-wrapper img {
  /* width: 18px;
  height: 18px; */
}

.report-stat-info {
  display: flex;
  flex-direction: column;
}

.report-stat-label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
  font-weight: 500;
}

.report-stat-value {
  font-size: 18px;
  color: #2d2d2d;
  font-weight: 700;
}

/* Pastel Backgrounds */
.bg-pastel-blue {
  background-color: #eff6ff;
}
.bg-pastel-yellow {
  background-color: #fffbeb;
}
.bg-pastel-teal {
  background-color: #ecfdf5;
}
.bg-pastel-green {
  background-color: #f0fdf4;
}
.bg-pastel-purple {
  background-color: #f5f3ff;
}
.bg-pastel-red {
  background-color: #fef2f2;
}
.bg-pastel-orange {
  background-color: #fff7ed;
}
.bg-pastel-grey {
  background-color: #f3f4f6;
}

@media (max-width: 992px) {
  .reports-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .reports-filter-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .report-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    max-width: 100%;
  }
  .categories-grid .stat-card {
    max-width: 100%;
    width: 100%;
  }
  
}

/* CMS Management Page Styles */
.cms-stat-wrapper {
  cursor: pointer;
  flex: 1;
  min-width: 250px;
  transition: all 0.2s;
}

.cms-stat-wrapper .stat-card {
  
  border: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 12px;
  height: 100%;
}

/* Active State Styles for CMS Stat Tabs */
.cms-stat-wrapper.active[data-tab="active-pages"] .state-card {
  border: 1px solid #3b82f6;
  background-color: #eff6ff !important;
}

.cms-stat-wrapper.active[data-tab="blog-pages"] .state-card {
  border: 1px solid #8674e8;
  background-color: #f5f3ff !important;
}

.cms-stat-wrapper.active[data-tab="other-pages"] .state-card {
  border: 1px solid #22c55e;
  background-color: #f0fdf4 !important;
}

.cms-stat-info {
  display: flex;
  flex-direction: column;
}
.state-card {
  width: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}
.cms-tab-content {
  display: none;
}
.cms-tab-content.active {
  display: block;
}
.cms-table {
  width: 100%;
  border-collapse: collapse;
}
.cms-table thead th {
  padding: 14px 20px;
  font-weight: 500;
  font-size: 14px;
}

.cms-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
  color: #2d2d2d;
  font-size: 13px;
}

.action-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.action-icons a {
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.action-icons img {
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: opacity 0.2s;
  pointer-events: none;
  vertical-align: middle;
}

.action-icons img:hover {
  opacity: 0.7;
}

.cms-filter-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cms-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-checkbox-group input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-add-blog:hover {
  opacity: 0.9;
}

.export-btn:hover {
  color: #008b8b !important;
}

@media (max-width: 768px) {
  .cms-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cms-search-wrapper {
    max-width: 100% !important;
    width: 100%;
  }
  .btn-add-blog {
    width: 100%;
    justify-content: center;
  }
}
/* --- Create Blog Page --- */
.blog-image-upload-box {
  width: 100%;
  height: 250px;
  border: 1px solid #0000001a;
  border-radius: 12px;
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-image-upload-box:hover {
  border-color: #008b8b;
  background-color: #f0fdfd;
}

.blog-image-upload-box span {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

.create-blog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.btn-cancel {
  padding: 10px 48px;
  border: 1px solid #008b8b;
  border-radius: 8px;
  background: white;
  color: #2d2d2d;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background-color: #f0faf9;
}

.btn-blog-save {
  padding: 10px 64px;
  border: none;
  border-radius: 8px;
  background: #008b8b;
  color: white;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-blog-save:hover {
  opacity: 0.9;
}
