* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f0f5fc;
  display: flex;
  min-height: 100vh;
}

.brand img {
    filter: brightness(149.5);
}
/* ===== SIDEBAR ===== */
.admin-sidebar {
  width: 270px;
  background: #0b1f35;
  color: #c8d8ec;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1050;
  transition: 0.3s;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
}
.admin-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}
.admin-sidebar .brand img {
  max-height: 42px;
}
.admin-sidebar .brand span {
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.02em;
}
.admin-sidebar .brand small {
  font-weight: 400;
  font-size: 0.6rem;
  opacity: 0.5;
  display: block;
  color: #9bb5d4;
}
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.sidebar-nav li {
  margin-bottom: 4px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #a8bedb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: 0.2s;
}
.sidebar-nav a i {
  width: 22px;
  font-size: 1.1rem;
  color: #6b8bb0;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,0.07);
  color: white;
}
.sidebar-nav a.active {
  background: rgba(70, 130, 200, 0.2);
  color: white;
  box-shadow: inset 3px 0 0 #4a8fd8;
}
.sidebar-nav a.active i {
  color: #6aa9e8;
}
.sidebar-nav .nav-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.3;
  padding: 16px 14px 6px 14px;
  font-weight: 600;
}
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  margin-top: 8px;
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #a8bedb;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.2s;
}
.sidebar-footer a:hover {
  background: rgba(255,255,255,0.07);
  color: white;
}
.sidebar-footer a i {
  width: 22px;
  color: #6b8bb0;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #2a4a6e; border-radius: 10px; }

/* ===== MAIN CONTENT ===== */
.admin-main {
  margin-left: 270px;
  flex: 1;
  padding: 24px 32px 40px 32px;
  min-height: 100vh;
}

/* ===== TOP BAR ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  background: white;
  padding: 14px 24px;
  border-radius: 40px;
  box-shadow: 0 4px 16px rgba(12, 40, 80, 0.04);
  border: 1px solid #eaf0f8;
}
.topbar .page-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #102b47;
}
.topbar .page-title small {
  font-weight: 400;
  font-size: 0.75rem;
  color: #6a8bb0;
  margin-left: 10px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-right .notif-btn {
  background: #f3f8fe;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f4970;
  font-size: 1.1rem;
  position: relative;
  border: 1px solid #dce6f2;
  transition: 0.2s;
}
.topbar-right .notif-btn:hover {
  background: #e8f0fa;
}
.topbar-right .notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #d9534f;
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-right .admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 16px;
  background: #f3f8fe;
  border-radius: 40px;
  border: 1px solid #dce6f2;
  cursor: pointer;
}
.topbar-right .admin-profile .avatar {
  width: 32px;
  height: 32px;
  border-radius: 40px;
  background: #d0e0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f4970;
  font-weight: 600;
}

/* ===== SUMMARY CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(12, 40, 80, 0.04);
  border: 1px solid #eaf0f8;
  transition: 0.2s;
}
.stat-card:hover {
  box-shadow: 0 8px 28px rgba(12, 40, 80, 0.08);
}
.stat-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a8bb0;
  font-weight: 600;
}
.stat-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0b223d;
  margin: 6px 0 2px 0;
}
.stat-card .change {
  font-size: 0.7rem;
  font-weight: 600;
}
.stat-card .change.up { color: #2a7d5c; }
.stat-card .change.down { color: #b05a4a; }
.stat-card .icon-wrap {
  float: right;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}
.stat-card .icon-wrap.blue { background: #2f6b9e; }
.stat-card .icon-wrap.green { background: #2d8f6a; }
.stat-card .icon-wrap.gold { background: #c49b3f; }
.stat-card .icon-wrap.purple { background: #7a5c9e; }

/* ===== CHARTS ROW ===== */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.chart-card {
  background: white;
  border-radius: 24px;
  padding: 20px 22px;
  border: 1px solid #eaf0f8;
  box-shadow: 0 4px 16px rgba(12, 40, 80, 0.04);
}
.chart-card .card-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1a3a5a;
  margin-bottom: 16px;
}
.chart-card canvas {
  max-height: 220px;
  width: 100% !important;
}

/* ===== TABLE CARD ===== */
.table-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #eaf0f8;
  box-shadow: 0 4px 16px rgba(12, 40, 80, 0.04);
  overflow: hidden;
}
.table-card .card-header {
  padding: 18px 24px;
  background: #fafdff;
  border-bottom: 1px solid #eaf0f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.table-card .card-header .title {
  font-weight: 600;
  color: #1a3a5a;
  font-size: 0.9rem;
}
.table-card .card-header .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.table-card .card-header .actions .btn-sm {
  border-radius: 40px;
  padding: 5px 16px;
  font-size: 0.7rem;
  font-weight: 600;
}
.table-card .table {
  font-size: 0.8rem;
  margin: 0;
}
.table-card .table thead th {
  background: #f6faff;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2b4b70;
  border: none;
  padding: 12px 16px;
  border-bottom: 2px solid #dce6f2;
}
.table-card .table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-top: 1px solid #edf3fa;
}
.table-card .table tbody tr:hover {
  background: #f9fcff;
}
.badge-status {
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-status.active { background: #d4edda; color: #0b3b2b; }
.badge-status.pending { background: #fff3cd; color: #7a6300; }
.badge-status.inactive { background: #f8d7da; color: #7a2e2e; }
.badge-status.shipped { background: #cce5ff; color: #004085; }
.table-card .card-footer {
  padding: 14px 24px;
  background: #fafdff;
  border-top: 1px solid #eaf0f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: #4c6e93;
}

/* ===== TOGGLE BUTTON ===== */
.sidebar-toggle {
  display: none;
  background: white;
  border: 1px solid #dce6f2;
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 1.2rem;
  color: #1f4970;
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1040;
}
.overlay.show {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
    padding: 16px;
  }
  .charts-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar .page-title small {
    display: block;
    margin-left: 0;
  }
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .sidebar-toggle span {
    font-size: 0.7rem;
    font-weight: 600;
  }
}
@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-right {
    justify-content: space-between;
  }
}

/* ===== AUTH PAGES COMMON ===== */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: #f0f5fc;
  margin: 0;
  width: 100%;
}
.auth-card {
  background: white;
  border-radius: 40px;
  padding: 40px 36px 44px;
  box-shadow: 0 20px 48px rgba(12, 40, 80, 0.12);
  border: 1px solid #eaf0f8;
  transition: 0.25s;
  width: 100%;
  max-width: 440px;
}
.auth-card:hover {
  box-shadow: 0 28px 64px rgba(12, 40, 80, 0.16);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.auth-brand img {
  max-height: 48px;
}
.auth-brand .brand-text {
  font-weight: 700;
  font-size: 1.6rem;
  color: #0b1f35;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.auth-brand .brand-text small {
  font-weight: 400;
  font-size: 0.65rem;
  opacity: 0.5;
  display: block;
  color: #2b4b70;
  letter-spacing: 0.02em;
}
.auth-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #102b47;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 0.85rem;
  color: #5f7d9e;
  margin-bottom: 28px;
}
.auth-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6a8bb0;
  border-top: 1px solid #eaf0f8;
  padding-top: 20px;
}
.auth-footer a {
  color: #1d4e7c;
  text-decoration: none;
  font-weight: 500;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.auth-error {
  background: #fff6f5;
  border-radius: 40px;
  padding: 10px 18px;
  border: 1px solid #f5d6d4;
  color: #b05a4a;
  font-size: 0.8rem;
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.auth-error.show {
  display: flex;
}
.demo-hint {
  background: #f3f8fe;
  border-radius: 60px;
  padding: 8px 20px;
  font-size: 0.7rem;
  color: #2b5a7a;
  border: 1px dashed #b8d0e8;
  text-align: center;
  margin-bottom: 20px;
  display: inline-block;
  width: auto;
}
.form-floating {
  margin-bottom: 18px;
}
.form-floating > .form-control {
  border-radius: 18px;
  border: 1px solid #dce6f2;
  background: #fafdff;
  padding: 1.2rem 0.75rem 0.4rem 1rem;
  font-size: 0.9rem;
  transition: 0.2s;
}
.form-floating > .form-control:focus {
  border-color: #4a8fd8;
  box-shadow: 0 0 0 4px rgba(74, 143, 216, 0.12);
  background: white;
}
.form-floating > label {
  font-weight: 500;
  color: #4f7193;
  font-size: 0.8rem;
  padding-left: 1rem;
}
.form-floating > .form-control:focus ~ label {
  color: #1d4e7c;
}
.input-group-icon {
  position: relative;
}
.input-group-icon .form-control {
  padding-left: 2.8rem;
}
.input-group-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b99bb;
  font-size: 1.1rem;
  z-index: 5;
  pointer-events: none;
}
.form-check {
  margin: 8px 0 22px 0;
}
.form-check-label {
  font-size: 0.8rem;
  color: #2b4b70;
  font-weight: 500;
}
.form-check-input {
  border-radius: 6px;
  border: 1px solid #bccde0;
}
.form-check-input:checked {
  background-color: #1d4e7c;
  border-color: #1d4e7c;
}
.btn-login {
  width: 100%;
  padding: 14px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #0b1f35;
  border: none;
  color: white;
  transition: 0.2s;
  box-shadow: 0 6px 16px rgba(11, 31, 53, 0.2);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-login:hover {
  background: #1a3a5a;
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(11, 31, 53, 0.25);
}
.btn-login:active {
  transform: scale(0.97);
}
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px 32px;
  }
  .auth-brand .brand-text {
    font-size: 1.3rem;
  }
}

/* ===== FILTER BAR (shared) ===== */
.filter-bar {
  background: white;
  border-radius: 24px;
  padding: 20px 24px;
  border: 1px solid #eaf0f8;
  box-shadow: 0 4px 16px rgba(12, 40, 80, 0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.filter-group {
  flex: 1;
  min-width: 160px;
}
.filter-group label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #6a8bb0;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: block;
}
.filter-group .form-control,
.filter-group .form-select {
  border-radius: 40px;
  border: 1px solid #dce6f2;
  font-size: 0.8rem;
  padding: 8px 16px;
  background: #fafdff;
  transition: 0.2s;
}
.filter-group .form-control:focus,
.filter-group .form-select:focus {
  border-color: #4a8fd8;
  box-shadow: 0 0 0 4px rgba(74, 143, 216, 0.08);
}
.action-btns {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.action-btns .btn {
  border-radius: 40px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.8rem;
}
.btn-primary-custom {
  background: #0b1f35;
  border: none;
  color: white;
  transition: 0.2s;
}
.btn-primary-custom:hover {
  background: #1a3a5a;
  color: white;
  transform: scale(1.01);
}
.btn-primary-custom:active {
  transform: scale(0.97);
}

/* ===== PRODUCT & CATEGORY SPECIFIC ===== */
.product-img, .category-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eaf0f8;
  background: #fafdff;
}
.part-badge, .category-badge {
  background: #eaf1fb;
  padding: 4px 12px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.7rem;
  color: #1d4e7c;
}
.count-badge {
  background: #eaf1fb;
  color: #1d4e7c;
  padding: 2px 10px;
  border-radius: 40px;
  font-size: 0.65rem;
  font-weight: 600;
}
code {
  background: #f0f4fc;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #1d4e7c;
  font-family: 'Inter', monospace;
}
.category-img-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f3f8fe;
  border: 1px dashed #dce6f2;
  color: #b8cfe0;
  font-size: 1.2rem;
}
textarea.form-control {
  border-radius: 16px;
  border: 1px solid #dce6f2;
  background: #fafdff;
  transition: 0.2s;
  font-size: 0.9rem;
  padding: 10px 14px;
}
textarea.form-control:focus {
  border-color: #4a8fd8;
  box-shadow: 0 0 0 4px rgba(74, 143, 216, 0.08);
  background: white;
}

/* ===== IMAGE UPLOAD ===== */
.image-upload-wrapper {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  background: #fafdff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #eaf0f8;
}
.image-preview-container {
  width: 140px;
  height: 140px;
  border: 2px dashed #dbe4ef;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: white;
  transition: 0.2s;
  flex-shrink: 0;
}
.image-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview-container .placeholder-icon {
  font-size: 2.8rem;
  color: #b8cfe0;
}
.image-preview-container .overlay-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  padding: 6px;
  display: none;
  justify-content: center;
  gap: 6px;
}
.image-preview-container:hover .overlay-actions {
  display: flex;
}
.image-preview-container .btn-remove {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #b05a4a;
}
.image-preview-container .btn-remove:hover {
  background: white;
}
.image-upload-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.upload-btn-wrapper .btn-upload {
  background: #f0f5fc;
  border: 1px solid #dce6f2;
  border-radius: 40px;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 0.8rem;
  color: #1f4970;
  transition: 0.2s;
}
.upload-btn-wrapper .btn-upload:hover {
  background: #e8f0fa;
}
.upload-btn-wrapper input[type=file] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.file-name {
  font-size: 0.75rem;
  color: #4c6e93;
  font-weight: 500;
}
.url-input-group {
  display: flex;
  gap: 6px;
}
.url-input-group input {
  flex: 1;
  border-radius: 40px;
  border: 1px solid #dce6f2;
  padding: 6px 16px;
  font-size: 0.8rem;
  background: white;
}
.url-input-group input:focus {
  border-color: #4a8fd8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 143, 216, 0.1);
}
.url-input-group .btn-apply-url {
  border-radius: 40px;
  border: none;
  background: #0b1f35;
  color: white;
  padding: 6px 16px;
  font-weight: 600;
  transition: 0.2s;
}
.url-input-group .btn-apply-url:hover {
  background: #1a3a5a;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}
.toast-custom {
  background: white;
  border-radius: 40px;
  padding: 14px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #eaf0f8;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: 0.3s;
  color: #0b1f35;
}
.toast-custom.error {
  border-left: 4px solid #d9534f;
}
.toast-custom.success {
  border-left: 4px solid #2a7d5c;
}

/* ===== MODAL ===== */
.modal-content {
  border-radius: 28px;
  border: none;
  box-shadow: 0 24px 56px rgba(0,0,0,0.15);
}
.modal-header {
  border-bottom: 1px solid #eaf0f8;
  padding: 20px 28px;
}
.modal-header .modal-title {
  font-weight: 700;
  color: #0b1f35;
  font-size: 1.1rem;
}
.modal-body {
  padding: 28px;
}
.modal-footer {
  border-top: 1px solid #eaf0f8;
  padding: 16px 28px;
}
.modal-footer .btn {
  border-radius: 40px;
  padding: 8px 24px;
  font-weight: 600;
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 992px) {
  .image-upload-wrapper {
    grid-template-columns: 1fr;
  }
  .image-preview-container {
    width: 100%;
    height: 160px;
  }
}
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    min-width: auto;
  }
  .action-btns {
    justify-content: flex-end;
  }
  .table-card .table thead {
    display: none;
  }
  .table-card .table tbody td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #edf3fa;
  }
  .table-card .table tbody td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #2b4b70;
    font-size: 0.6rem;
    text-transform: uppercase;
    width: 40%;
  }
  .table-card .table tbody td:last-child {
    border-bottom: 2px solid #eaf0f8;
  }
}



 /* ===== RECENT ORDERS SECTION SPECIFIC ===== */
    .order-id-badge {
      background: #eaf1fb;
      padding: 6px 14px;
      border-radius: 40px;
      font-weight: 600;
      font-size: 0.75rem;
      color: #1d4e7c;
      letter-spacing: 0.02em;
      display: inline-block;
      white-space: nowrap;
      min-width: 90px;
      text-align: center;
    }
    .order-customer {
      font-weight: 500;
      color: #0b1f35;
    }
    .order-total {
      font-weight: 600;
      color: #0b1f35;
    }
    .order-actions .btn-outline-primary {
      border-radius: 40px;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 4px 16px;
      border-color: #dce6f2;
      color: #1f4970;
      transition: 0.2s;
    }
    .order-actions .btn-outline-primary:hover {
      background: #eaf1fb;
      border-color: #4a8fd8;
      color: #0b1f35;
    }
    /* status badge */
    .badge-status.delivered { background: #d4edda; color: #0b3b2b; }
    .badge-status.pending { background: #fff3cd; color: #7a6300; }
    /* order count badge in header */
    .order-count-badge {
      background: #eaf1fb;
      color: #1d4e7c;
      padding: 2px 12px;
      border-radius: 40px;
      font-size: 0.7rem;
      font-weight: 600;
      margin-left: 8px;
    }
    /* Table column widths for better display */
    #recentOrdersTable thead th:first-child { min-width: 120px; }
    #recentOrdersTable thead th:nth-child(2) { min-width: 160px; }
    #recentOrdersTable thead th:nth-child(3) { min-width: 110px; }
    #recentOrdersTable thead th:nth-child(4) { min-width: 100px; }
    #recentOrdersTable thead th:nth-child(5) { min-width: 110px; }
    #recentOrdersTable thead th:last-child { min-width: 130px; }
    /* Ensure table cells don't wrap unnecessarily */
    #recentOrdersTable tbody td {
      white-space: nowrap;
    }
    /* Responsive adjustments */
    @media (max-width: 768px) {
      #recentOrdersTable tbody td {
        white-space: normal;
      }
      .order-id-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        min-width: 70px;
      }
    }
    @media (max-width: 576px) {
      .table-card .table thead {
        display: none;
      }
      .table-card .table tbody td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 8px 12px;
        border-top: 1px solid #edf3fa;
        white-space: normal;
      }
      .table-card .table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2b4b70;
        font-size: 0.6rem;
        text-transform: uppercase;
        width: 40%;
      }
      .table-card .table tbody td:last-child {
        border-bottom: 2px solid #eaf0f8;
      }
      .table-card .table tbody td .order-id-badge {
        min-width: auto;
      }
      .order-actions .btn-outline-primary {
        padding: 2px 12px;
        font-size: 0.65rem;
      }
    }

        
 /* ===== ORDER DETAILS PAGE SPECIFIC ===== */
        .order-detail-card {
            background: white;
            border-radius: 24px;
            border: 1px solid #eaf0f8;
            box-shadow: 0 4px 16px rgba(12, 40, 80, 0.04);
            padding: 28px 32px;
            margin-bottom: 24px;
        }
        .order-detail-card .card-title {
            font-weight: 600;
            color: #1a3a5a;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eaf0f8;
        }
        .detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .detail-item .label {
            font-size: 0.65rem;
            text-transform: uppercase;
            font-weight: 600;
            color: #6a8bb0;
            letter-spacing: 0.04em;
        }
        .detail-item .value {
            font-size: 0.9rem;
            color: #0b1f35;
            font-weight: 500;
        }
        .detail-item .value .badge-status {
            font-size: 0.7rem;
        }
        .order-id-large {
            font-size: 1.1rem;
            font-weight: 700;
            color: #0b1f35;
        }
        .info-grid-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;
        }
        .address-block {
            font-size: 0.85rem;
            color: #0b1f35;
            line-height: 1.6;
        }
        .address-block .label {
            font-size: 0.65rem;
            text-transform: uppercase;
            font-weight: 600;
            color: #6a8bb0;
            letter-spacing: 0.04em;
            display: block;
            margin-bottom: 4px;
        }
        .address-block .business-name {
            font-weight: 600;
            color: #0b1f35;
        }
        /* Order items table */
        .order-items-table {
            margin-top: 8px;
        }
        .order-items-table thead th {
            background: #f6faff;
            font-weight: 600;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #2b4b70;
            border: none;
            padding: 10px 12px;
            border-bottom: 2px solid #dce6f2;
        }
        .order-items-table tbody td {
            padding: 10px 12px;
            vertical-align: middle;
            border-top: 1px solid #edf3fa;
            font-size: 0.8rem;
        }
        .order-items-table tbody tr:hover {
            background: #f9fcff;
        }
        .order-items-table .item-part {
            font-weight: 600;
            color: #1d4e7c;
        }
        .order-items-table .item-desc {
            color: #0b1f35;
        }
        .order-items-table .item-price {
            font-weight: 500;
            color: #0b1f35;
        }
        .order-summary {
            background: #fafdff;
            border-radius: 16px;
            padding: 16px 20px;
            margin-top: 16px;
        }
        .order-summary .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 4px 0;
            font-size: 0.85rem;
        }
        .order-summary .summary-row .label {
            color: #6a8bb0;
        }
        .order-summary .summary-row .value {
            font-weight: 500;
            color: #0b1f35;
        }
        .order-summary .summary-row.total {
            border-top: 2px solid #dce6f2;
            padding-top: 10px;
            margin-top: 6px;
            font-weight: 700;
            font-size: 1rem;
        }
        .order-summary .summary-row.total .value {
            color: #0b1f35;
        }
        .order-summary .coupon-discount {
            color: #b05a4a;
        }
        /* Action buttons */
        .action-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        .action-buttons .btn {
            border-radius: 40px;
            padding: 8px 24px;
            font-weight: 600;
            font-size: 0.8rem;
        }
        .btn-back {
            background: #f0f4fc;
            border: 1px solid #dce6f2;
            color: #1f4970;
        }
        .btn-back:hover {
            background: #e8f0fa;
        }
        /* Responsive */
        @media (max-width: 992px) {
            .detail-grid {
                grid-template-columns: 1fr;
            }
            .info-grid-3 {
                grid-template-columns: 1fr 1fr;
            }
            .order-detail-card {
                padding: 20px;
            }
        }
        @media (max-width: 768px) {
            .info-grid-3 {
                grid-template-columns: 1fr;
            }
            .order-items-table thead {
                display: none;
            }
            .order-items-table tbody td {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                padding: 6px 12px;
                border-top: 1px solid #edf3fa;
            }
            .order-items-table tbody td:before {
                content: attr(data-label);
                font-weight: 600;
                color: #2b4b70;
                font-size: 0.6rem;
                text-transform: uppercase;
                width: 40%;
            }
            .order-items-table tbody td:last-child {
                border-bottom: 2px solid #eaf0f8;
            }
            .order-summary .summary-row {
                font-size: 0.8rem;
            }
            .action-buttons {
                flex-direction: column;
                align-items: stretch;
            }
        }
        @media (max-width: 576px) {
            .order-detail-card {
                padding: 16px;
            }
            .order-id-large {
                font-size: 0.95rem;
            }
        }


        /* Notification Panel Styles - Only notification-related CSS */

/* Notification button and badge */
.notif-btn {
  background: transparent;
  border: none;
  position: relative;
  font-size: 1.3rem;
  color: #1a3a5a;
  padding: 6px 8px;
  border-radius: 30px;
  transition: 0.1s;
  cursor: pointer;
}

.notif-btn:hover {
  background: #eef4fc;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #d1442b;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notification panel container */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: 360px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 20, 40, 0.15);
  border: 1px solid #eaf0f8;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1060;
}

.notif-panel.open {
  display: flex;
}

/* Notification panel header */
.notif-panel-header {
  padding: 14px 20px 8px 20px;
  font-weight: 600;
  color: #0a2a42;
  border-bottom: 1px solid #eef3f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.notif-panel-header small {
  font-weight: 400;
  color: #6f8fa8;
  font-size: 0.7rem;
}

/* Scrollable notification list */
.notif-list {
  padding: 6px 0;
  overflow-y: auto;
  flex: 1;
  max-height: 280px;
}

/* Individual notification item */
.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid #f2f7fd;
  transition: 0.05s;
}

.notif-item:hover {
  background: #f8fcff;
}

.notif-item .notif-icon {
  width: 32px;
  height: 32px;
  background: #e9f2fa;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4e7c;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.notif-item .notif-content {
  flex: 1;
  font-size: 0.85rem;
  color: #1d2c3a;
}

.notif-item .notif-content strong {
  font-weight: 600;
  color: #0a2a42;
}

.notif-item .notif-time {
  font-size: 0.65rem;
  color: #7a9bb8;
  white-space: nowrap;
}

/* Empty state */
.notif-empty {
  padding: 28px 20px;
  text-align: center;
  color: #7a9bb8;
  font-size: 0.85rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 500px) {
  .notif-panel {
    width: 280px;
    right: -10px;
  }
}

/* Optional: Custom scrollbar for notification list */
.notif-list::-webkit-scrollbar {
  width: 4px;
}

.notif-list::-webkit-scrollbar-track {
  background: #f0f4fc;
  border-radius: 10px;
}

.notif-list::-webkit-scrollbar-thumb {
  background: #c5d6e8;
  border-radius: 10px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
  background: #a8bfd8;
}


/* ===== CUSTOMERS-PAGE SPECIFIC ===== */
        .customer-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #eaf1fb;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1d4e7c;
            font-weight: 600;
            font-size: 0.9rem;
            flex-shrink: 0;
        }
        .customer-business {
            font-weight: 600;
            color: #0b1f35;
        }
        .customer-contact {
            color: #4c6e93;
            font-size: 0.85rem;
        }
        .customer-email {
            color: #1d4e7c;
            font-size: 0.85rem;
        }
        .customer-phone {
            color: #4c6e93;
            font-size: 0.85rem;
            font-weight: 500;
        }
        /* Status badge styles */
        .status-badge {
            display: inline-block;
            padding: 4px 14px;
            border-radius: 40px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: capitalize;
            letter-spacing: 0.02em;
        }
        .status-badge.verified {
            background: #dff0e6;
            color: #1a6b4a;
        }
        .status-badge.unverified {
            background: #fde8e8;
            color: #b13e3e;
        }
        .status-select {
            border: none;
            background: transparent;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 30px;
            outline: none;
            cursor: pointer;
            transition: 0.15s;
            width: auto;
            min-width: 90px;
        }
        .status-select.verified {
            background: #dff0e6;
            color: #1a6b4a;
        }
        .status-select.unverified {
            background: #fde8e8;
            color: #b13e3e;
        }
        .status-select:hover {
            opacity: 0.8;
        }
        .status-select:focus {
            box-shadow: 0 0 0 2px rgba(29,78,124,0.2);
        }
        .customer-actions .btn-outline-primary {
            border-radius: 40px;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 4px 16px;
            border-color: #dce6f2;
            color: #1f4970;
            transition: 0.2s;
        }
        .customer-actions .btn-outline-primary:hover {
            background: #eaf1fb;
            border-color: #4a8fd8;
            color: #0b1f35;
        }
        /* customer count badge in header */
        .customer-count-badge {
            background: #eaf1fb;
            color: #1d4e7c;
            padding: 2px 12px;
            border-radius: 40px;
            font-size: 0.7rem;
            font-weight: 600;
            margin-left: 8px;
        }
        /* filter bar refinements */
        .filter-bar .filter-group .form-select {
            min-width: 140px;
        }
        /* Table column widths for better display */
        #customerTable thead th:first-child { min-width: 60px; }
        #customerTable thead th:nth-child(2) { min-width: 180px; }
        #customerTable thead th:nth-child(3) { min-width: 150px; }
        #customerTable thead th:nth-child(4) { min-width: 200px; }
        #customerTable thead th:nth-child(5) { min-width: 150px; }
        #customerTable thead th:nth-child(6) { min-width: 120px; }
        #customerTable thead th:last-child { min-width: 160px; }
        /* Ensure table cells don't wrap unnecessarily */
        #customerTable tbody td {
            white-space: nowrap;
        }
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .filter-bar {
                flex-direction: column;
                align-items: stretch;
            }
            .filter-group {
                min-width: auto;
            }
            .action-btns {
                justify-content: flex-end;
            }
            #customerTable tbody td {
                white-space: normal;
            }
        }
        @media (max-width: 576px) {
            .table-card .table thead {
                display: none;
            }
            .table-card .table tbody td {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                padding: 8px 12px;
                border-top: 1px solid #edf3fa;
                white-space: normal;
            }
            .table-card .table tbody td:before {
                content: attr(data-label);
                font-weight: 600;
                color: #2b4b70;
                font-size: 0.6rem;
                text-transform: uppercase;
                width: 40%;
            }
            .table-card .table tbody td:last-child {
                border-bottom: 2px solid #eaf0f8;
            }
            .customer-avatar {
                width: 36px;
                height: 36px;
                font-size: 0.7rem;
            }
            .status-select {
                font-size: 0.65rem;
                padding: 2px 6px;
                min-width: 70px;
            }
        }
        /* ===== CUSTOMER DETAIL MODAL ===== */
        .detail-section {
            margin-bottom: 20px;
        }
        .detail-section:last-child {
            margin-bottom: 0;
        }
        .detail-section .section-title {
            font-weight: 600;
            color: #1a3a5a;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eaf0f8;
        }
        .detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px 24px;
        }
        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .detail-item .label {
            font-size: 0.65rem;
            text-transform: uppercase;
            font-weight: 600;
            color: #6a8bb0;
            letter-spacing: 0.04em;
        }
        .detail-item .value {
            font-size: 0.9rem;
            color: #0b1f35;
            font-weight: 500;
        }
        .detail-avatar-large {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: #eaf1fb;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1d4e7c;
            font-weight: 700;
            font-size: 1.4rem;
            flex-shrink: 0;
        }
        .detail-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 24px;
        }
        .detail-header .name {
            font-size: 1.1rem;
            font-weight: 700;
            color: #0b1f35;
        }
        .detail-header .business {
            font-size: 0.85rem;
            color: #4c6e93;
        }
        .detail-status-badge {
            display: inline-block;
            padding: 6px 18px;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-top: 6px;
        }
        .detail-status-badge.verified {
            background: #dff0e6;
            color: #1a6b4a;
        }
        .detail-status-badge.unverified {
            background: #fde8e8;
            color: #b13e3e;
        }
        @media (max-width: 768px) {
            .detail-grid {
                grid-template-columns: 1fr;
            }
            .detail-header {
                flex-direction: column;
                text-align: center;
            }
        }
        /* Toast styles */
        .toast-container {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 380px;
        }
        .toast-custom {
            background: #fff;
            padding: 14px 20px;
            border-radius: 16px;
            box-shadow: 0 8px 30px rgba(0,20,40,0.12);
            border-left: 4px solid #2a7d5c;
            font-size: 0.9rem;
            font-weight: 500;
            color: #1a2d44;
            display: flex;
            align-items: center;
            transition: all 0.25s ease;
            transform: translateX(0);
            opacity: 1;
        }
        .toast-custom.error {
            border-left-color: #d9534f;
        }