:root {
  --sidebar-width: 280px;
  --sidebar-mini-width: 84px;
  --admin-bg: #f5f7fb;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f8fafc;
  --admin-border: #dbe4ef;
  --admin-text: #1f2937;
  --admin-muted: #6b7280;
  --admin-primary: #2563eb;
  --admin-primary-dark: #1d4ed8;
  --admin-success: #0f766e;
  --admin-warning: #d97706;
  --admin-danger: #dc2626;
  --admin-sidebar: #111827;
  --admin-sidebar-soft: #1f2937;
  --admin-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --admin-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
  --admin-shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.12);
  --admin-ring: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(
    180deg,
    #f8fbff 0%,
    var(--admin-bg) 42%,
    #eef4fa 100%
  );
  color: var(--admin-text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  text-decoration: none;
}

.admin-shell {
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--admin-sidebar);
  color: #fff;
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
  transform: translateX(0);
  transition:
    width 0.2s ease,
    transform 0.2s ease;

  /* Scrollbar Hide */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Chrome, Safari, Opera */
.admin-sidebar::-webkit-scrollbar {
  display: none;
}
.sidebar-header {
  padding: 1.35rem 1.25rem 1.15rem;
  margin-inline: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #ffffff;
}

.brand-mark:hover,
.brand-mark:focus {
  color: #ffffff;
}

.brand-icon,
.profile-avatar,
.metric-icon,
.nav-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #ffffff;
}

.brand-copy,
.brand-title,
.brand-subtitle,
.nav-text,
.sidebar-footer-text {
  min-width: 0;
  transition:
    opacity 0.16s ease,
    width 0.16s ease;
}

.brand-title,
.brand-subtitle {
  display: block;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-subtitle {
  color: #9ca3af;
  font-size: 0.78rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 1rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.78rem 0.9rem;
  border-radius: 8px;
  color: #d1d5db;
  font-weight: 700;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
  white-space: nowrap;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
  background: var(--admin-sidebar-soft);
  color: #ffffff;
  border: 0.5px solid #ff00003f;
}

.sidebar-nav .nav-link.active-success {
  background: var(--admin-sidebar-soft);
  color: #000;
  border: 0.5px solid #0f766e;
}

.sidebar-nav .nav-link.active-primary {
  background: var(--admin-sidebar-soft);
  color: #000;
  border: 0.5px solid #0a58ca;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
  transform: translateX(2px);
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #bfdbfe;
  font-size: 0.76rem;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  margin-inline: 1.25rem;
  padding: 1rem 0;
  color: #d1d5db;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  white-space: nowrap;
}

.sidebar-user {
  margin: auto 1rem 1rem;
  padding: 0.85rem;
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  border: 1px solid var(--admin-sidebar-border);
  border-radius: 8px;
  background: var(--admin-sidebar-soft);
  text-align: center;
}

.sidebar-user-avatar {
  border: 3px solid #53e9b9;
}

.sidebar-user strong {
  color: var(--admin-sidebar-text-strong);
  font-size: 1rem;
  line-height: 1.1;
}

.sidebar-user small {
  color: var(--admin-sidebar-muted);
  font-size: 0.84rem;
}

.status-dot,
.notification-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-dot {
  flex: 0 0 auto;
  background: #22c55e;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1030;
  display: none;
  background: rgba(15, 23, 42, 0.5);
}

.admin-main {
  width: auto;
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.2s ease;
}

.admin-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 72px;
  border-bottom: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-sm);
}

.admin-navbar.bg-white {
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
}

.sidebar-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: var(--admin-ring);
}

.sidebar-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--admin-text);
  border-radius: 999px;
}

.search-input {
  max-width: 520px;
  border-color: var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface-soft);
  min-height: 42px;
  box-shadow: none;
}

.search-input:focus {
  border-color: #93c5fd;
  box-shadow: var(--admin-ring);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-button,
.profile-button {
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: var(--admin-text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.icon-button:hover,
.icon-button:focus,
.profile-button:hover,
.profile-button:focus {
  border-color: #bfdbfe;
  box-shadow: var(--admin-ring);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--admin-danger);
}

.notification-menu {
  width: min(320px, calc(100vw - 2rem));
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: var(--admin-shadow);
}

.notification-menu .dropdown-item {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.7rem;
}

.notification-title {
  font-weight: 700;
}

.notification-time {
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-weight: 700;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e0ecff;
  color: var(--admin-primary-dark);
  font-size: 0.76rem;
}

.avatar-img {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.avatar-md {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.avatar-xl {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.profile-button .avatar-sm {
  border: 2px solid #52e7b8;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .profile-button .avatar-sm {
  border-color: #54f0be;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.dashboard-content {
  min-height: calc(100vh - 132px);
}

.dashboard-content > .container-fluid {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}

.page-heading,
.panel-header,
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading {
  margin-bottom: 1.35rem;
}

.page-heading h1 {
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--admin-danger);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--admin-primary-dark);
  background: var(--admin-primary-dark);
}

.metric-card,
.panel {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.metric-card {
  position: relative;
  min-height: 164px;
  padding: 1.35rem;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--metric-color, var(--admin-primary));
}

.metric-card:hover {
  border-color: #c6d5e8;
  box-shadow: var(--admin-shadow-lg);
  transform: translateY(-3px);
}

.metric-primary {
  --metric-color: var(--admin-primary);
}

.metric-success {
  --metric-color: var(--admin-success);
}

.metric-warning {
  --metric-color: var(--admin-warning);
}

.metric-danger {
  --metric-color: var(--admin-danger);
}

.metric-label {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--metric-color, var(--admin-primary));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.metric-success .metric-icon {
  background: #e7f6f3;
}

.metric-warning .metric-icon {
  background: #fff4df;
}

.metric-danger .metric-icon {
  background: #ffecec;
}

.metric-value {
  margin-top: 1rem;
  color: var(--admin-text);
  font-size: 2.18rem;
  font-weight: 800;
  line-height: 1;
}

.metric-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: var(--admin-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel {
  padding: 1.35rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.panel:hover {
  border-color: #c6d5e8;
  box-shadow: var(--admin-shadow-lg);
}

.panel-header {
  margin-bottom: 1.25rem;
}

.panel-header p {
  font-size: 0.92rem;
}

.chart-bars {
  height: 292px;
  display: grid;
  grid-template-columns: repeat(6, minmax(38px, 1fr));
  align-items: end;
  gap: 1rem;
  padding: 1.2rem 0.4rem 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.chart-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 0.6rem;
  color: var(--admin-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.chart-column span {
  width: 100%;
  height: var(--bar-size);
  min-height: 28px;
  display: block;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(
    180deg,
    var(--admin-primary),
    var(--admin-success)
  );
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.bar-42 {
  --bar-size: 42%;
}

.bar-58 {
  --bar-size: 58%;
}

.bar-51 {
  --bar-size: 51%;
}

.bar-72 {
  --bar-size: 72%;
}

.bar-66 {
  --bar-size: 66%;
}

.bar-83 {
  --bar-size: 83%;
}

.activity-list {
  display: grid;
  gap: 1.1rem;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--admin-border);
}

.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-dot {
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  color: var(--admin-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--admin-border);
}

.table tbody td {
  min-width: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border: 1px solid var(--admin-border);
}

.table tbody tr {
  transition: background 0.16s ease;
}

.table tbody tr:hover {
  background: #f8fbff;
}

.badge {
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.table-search {
  width: min(260px, 100%);
  border-color: var(--admin-border);
  border-radius: 8px;
}

.table-media {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.product-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--admin-border);
}

.profile-avatar-lg {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  font-size: 1.5rem;
}

.profile-hero {
  display: grid;
  justify-items: center;
}

.profile-card {
  overflow: hidden;
}

.profile-cover {
  margin: -1.35rem -1.35rem 0.9rem;
  height: 96px;
  border-bottom: 1px solid var(--admin-border);
}

.profile-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.profile-photo {
  margin-top: -44px;
  border: 4px solid #eee;
  box-shadow: var(--admin-shadow-sm);
}

.info-list,
.settings-list,
.legend-list {
  display: grid;
  gap: 0.85rem;
}

.info-list div,
.mini-card,
.settings-row,
.legend-list div {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface-soft);
}

.info-list div,
.legend-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
}

.info-list span,
.mini-card span,
.settings-row small {
  color: var(--admin-muted);
  font-size: 0.84rem;
}

.info-list strong,
.mini-card strong {
  text-align: right;
}

.mini-card {
  display: grid;
  gap: 0.35rem;
  min-height: 104px;
  align-content: center;
  padding: 1rem;
}

.mini-card strong {
  color: var(--admin-text);
  font-size: 1.05rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
}

.settings-row span {
  display: grid;
  gap: 0.2rem;
}

.donut-chart {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--admin-primary) 0 42%,
    var(--admin-success) 42% 68%,
    var(--admin-warning) 68% 86%,
    var(--admin-danger) 86% 100%
  );
  box-shadow: var(--admin-shadow-sm);
}

.donut-chart span {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--admin-text);
  font-size: 1.65rem;
  font-weight: 800;
}

.legend-list div {
  padding: 0.75rem 0.85rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.legend-list strong {
  margin-left: auto;
}

.progress {
  height: 1.15rem;
  border-radius: 8px;
  background: #e8eef6;
}

.progress-bar {
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.progress-42 {
  width: 42%;
}

.progress-58 {
  width: 58%;
}

.progress-72 {
  width: 72%;
}

.blank-panel {
  min-height: 440px;
  display: grid;
  place-items: center;
  text-align: center;
}

.blank-state {
  max-width: 440px;
  display: grid;
  justify-items: center;
}

.blank-visual {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 0.9rem;
}

.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fbff 0%, #eaf2ff 44%, #eef8f6 100%);
}

.auth-page,
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card,
.error-card {
  width: min(100%, 460px);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--admin-shadow-lg);
}

.auth-card {
  padding: 1.5rem;
}

.auth-visual {
  margin-bottom: 1rem;
  height: 96px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.error-card {
  padding: 2rem;
  text-align: center;
}

.error-illustration {
  width: min(260px, 100%);
  max-height: 132px;
  object-fit: contain;
  margin: 0 auto 0.55rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--admin-text);
}

.auth-brand:hover,
.auth-brand:focus {
  color: var(--admin-text);
}

.auth-brand span:last-child {
  display: grid;
  line-height: 1.2;
}

.auth-brand small,
.auth-footer {
  color: var(--admin-muted);
}

.auth-footer {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.92rem;
}

.error-code {
  color: var(--admin-primary);
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 800;
  line-height: 1;
}

.admin-footer {
  padding: 1.1rem 0 1.35rem;
  color: var(--admin-muted);
  font-size: 0.9rem;
}

.admin-footer .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 992px) {
  body.sidebar-mini .admin-sidebar {
    width: var(--sidebar-mini-width);
  }

  body.sidebar-mini .admin-main {
    margin-left: var(--sidebar-mini-width);
  }

  body.sidebar-mini .brand-copy,
  body.sidebar-mini .nav-text,
  body.sidebar-mini .sidebar-footer-text {
    width: 0;
    opacity: 0;
    overflow: hidden;
  }

  body.sidebar-mini .sidebar-header,
  body.sidebar-mini .sidebar-footer {
    margin-inline: 1rem;
    padding-inline: 0;
  }

  body.sidebar-mini .sidebar-nav .nav-link {
    justify-content: center;
    padding-inline: 0.65rem;
  }

  body.sidebar-mini .sidebar-nav .nav-link:hover,
  body.sidebar-mini .sidebar-nav .nav-link:focus {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    width: min(var(--sidebar-width), calc(100vw - 48px));
    transform: translateX(-100%);
  }

  .admin-main {
    margin-left: 0;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .page-heading,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-actions {
    width: 100%;
    justify-content: stretch;
  }

  .heading-actions .btn {
    flex: 1 1 0;
  }

  .chart-bars {
    height: 220px;
    gap: 0.6rem;
    padding-inline: 0.25rem;
  }

  .metric-value {
    font-size: 1.85rem;
  }

  .metric-card,
  .panel {
    padding: 1.1rem;
  }

  .admin-footer .container-fluid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-nav .nav-link,
  .sidebar-toggle,
  .icon-button,
  .profile-button,
  .btn,
  .metric-card,
  .panel,
  .table tbody tr {
    transition: none;
  }

  .sidebar-nav .nav-link:hover,
  .sidebar-nav .nav-link:focus,
  .btn:hover,
  .btn:focus,
  .metric-card:hover {
    transform: none;
  }
}

html[data-theme="dark"] {
  --admin-bg: #0f172a;
  --admin-surface: #182235;
  --admin-surface-soft: #111827;
  --admin-border: #2f3b52;
  --admin-text: #e5edf7;
  --admin-muted: #9aa8bd;
  --admin-primary: #60a5fa;
  --admin-primary-dark: #3b82f6;
  --admin-success: #2dd4bf;
  --admin-warning: #fbbf24;
  --admin-danger: #f87171;
  --admin-sidebar: #090f1d;
  --admin-sidebar-soft: #172033;
  --admin-shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.24);
  --admin-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  --admin-shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.42);
  --admin-ring: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] body {
  background: linear-gradient(
    180deg,
    #111827 0%,
    var(--admin-bg) 48%,
    #0b1120 100%
  );
}

.brand-icon {
  font-size: 1.1rem;
}

.nav-icon {
  font-size: 0.95rem;
}

.theme-toggle i {
  font-size: 1rem;
}

.admin-navbar.bg-white,
.sidebar-toggle,
.icon-button,
.profile-button {
  background-color: var(--admin-surface) !important;
  color: var(--admin-text);
}

html[data-theme="dark"] .admin-navbar.bg-white {
  background-color: rgba(24, 34, 53, 0.92) !important;
}

html[data-theme="dark"] .profile-avatar {
  background: #1e3a5f;
  color: #bfdbfe;
}

.page-heading-copy {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-width: 0;
}

.page-icon,
.section-title i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--admin-danger);
}

.page-icon {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title i {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

html[data-theme="dark"] .page-icon,
html[data-theme="dark"] .section-title i {
  background: #1e3a5f;
  color: #bfdbfe;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-light {
  border-color: var(--admin-border);
  background: var(--admin-surface-soft);
  color: var(--admin-text);
}

.btn-outline-secondary {
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  border-color: var(--admin-primary);
  background: #eaf2ff;
  color: var(--admin-primary-dark);
}

html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-secondary:focus {
  background: #1e3a5f;
  color: #bfdbfe;
}

html[data-theme="dark"] .chart-bars {
  background: linear-gradient(180deg, #111827 0%, #182235 100%);
}

html[data-theme="dark"] .table tbody tr:hover {
  background: #111827;
}

html[data-theme="dark"] .progress {
  background: #243149;
}

html[data-theme="dark"] .auth-body {
  background: linear-gradient(135deg, #0b1120 0%, #111827 48%, #10201f 100%);
}

.auth-card,
.error-card {
  background: var(--admin-surface);
}

.auth-theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.dropdown-menu,
.modal-content,
.accordion-item,
.accordion-button {
  border-color: var(--admin-border);
  background-color: var(--admin-surface);
  color: var(--admin-text);
}

.dropdown-item,
.accordion-body {
  color: var(--admin-text);
}

.dropdown-item:hover,
.dropdown-item:focus,
.accordion-button:not(.collapsed) {
  background-color: var(--admin-surface-soft);
  color: var(--admin-text);
}

.form-control,
.form-select {
  border-color: var(--admin-border);
  background-color: var(--admin-surface);
  color: var(--admin-text);
}

.form-control:focus,
.form-select:focus {
  border-color: #93c5fd;
  background-color: var(--admin-surface);
  color: var(--admin-text);
  box-shadow: var(--admin-ring);
}

.form-control::placeholder {
  color: var(--admin-muted);
}

.text-muted {
  color: var(--admin-muted) !important;
}

html[data-theme="dark"] .text-body {
  color: var(--admin-text) !important;
}

html[data-theme="dark"] .text-bg-secondary {
  background-color: #334155 !important;
  color: #e5edf7 !important;
}

@media (max-width: 767.98px) {
  .navbar-actions {
    gap: 0.5rem;
  }

  .icon-button,
  .profile-button,
  .sidebar-toggle {
    width: 40px;
    height: 40px;
  }

  .profile-button {
    padding: 0.3rem;
  }

  .page-heading-copy {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .page-heading-copy {
    width: 100%;
  }

  .page-icon {
    width: 44px;
    height: 44px;
  }

  .panel-header .d-flex,
  .panel-header .form-control,
  .panel-header .form-select {
    width: 100%;
  }
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body,
.admin-navbar,
.admin-sidebar,
.admin-main,
.metric-card,
.panel,
.auth-card,
.error-card,
.dropdown-menu,
.modal-content,
.form-control,
.form-select {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.table {
  --bs-table-color: var(--admin-text);
  --bs-table-border-color: var(--admin-border);
  color: var(--admin-text);
}

.page-link {
  border-color: var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
}

.page-link:hover,
.page-link:focus {
  border-color: var(--admin-primary);
  background: var(--admin-surface-soft);
  color: var(--admin-primary);
}

.page-item.active .page-link {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: #ffffff;
}

.page-item.disabled .page-link {
  border-color: var(--admin-border);
  background: var(--admin-surface-soft);
  color: var(--admin-muted);
}

.alert {
  border-radius: 8px;
}

html[data-theme="dark"] .alert-primary {
  border-color: #1d4ed8;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}

html[data-theme="dark"] .alert-success {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.18);
  color: #99f6e4;
}

html[data-theme="dark"] .alert-warning {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.18);
  color: #fde68a;
}

html[data-theme="dark"] .alert-danger {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.16);
  color: #fecaca;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .accordion-item {
  border-color: var(--admin-border);
}

html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
}

html[data-theme="dark"] .text-bg-info {
  background-color: #0e7490 !important;
  color: #ecfeff !important;
}

html[data-theme="dark"] .text-bg-warning {
  background-color: #b45309 !important;
  color: #fff7ed !important;
}

html[data-theme="dark"] .text-bg-success {
  background-color: #0f766e !important;
  color: #ecfdf5 !important;
}

html[data-theme="dark"] .text-bg-danger {
  background-color: #b91c1c !important;
  color: #fef2f2 !important;
}

@media (max-width: 991.98px) {
  .dashboard-content > .container-fluid {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .admin-sidebar {
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 767.98px) {
  .panel-header {
    align-items: flex-start;
  }

  .panel-header > .d-flex {
    width: 100%;
  }

  .table-search {
    width: 100%;
  }

  .auth-page,
  .error-page {
    padding: 1rem;
  }

  .auth-card,
  .error-card {
    padding: 1.15rem;
  }
}

@media (max-width: 420px) {
  .heading-actions {
    width: 100%;
  }

  .heading-actions .btn {
    width: 100%;
  }

  .metric-card {
    min-height: 146px;
  }

  .profile-avatar-lg {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 575.98px) {
  .avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .avatar-xl {
    width: 70px;
    height: 70px;
  }

  .profile-cover {
    height: 82px;
    margin-bottom: 0.75rem;
  }

  .profile-photo {
    margin-top: -38px;
  }

  .auth-visual {
    height: 82px;
  }

  .product-thumb {
    width: 36px;
    height: 36px;
  }
}

html:not([data-theme="dark"]) {
  --admin-sidebar: #ffffff;
  --admin-sidebar-soft: #eef4ff;
  --admin-sidebar-border: #dbe4ef;
  --admin-sidebar-text: #475569;
  --admin-sidebar-text-strong: #0f172a;
  --admin-sidebar-muted: #64748b;
  --admin-sidebar-icon-bg: #e4e4e4b7;
  --admin-sidebar-icon: #f10f0f;
  --admin-sidebar-shadow: 18px 0 42px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  --admin-sidebar-border: rgba(255, 255, 255, 0.08);
  --admin-sidebar-text: #d1d5db;
  --admin-sidebar-text-strong: #ffffff;
  --admin-sidebar-muted: #9ca3af;
  --admin-sidebar-icon-bg: rgba(255, 255, 255, 0.08);
  --admin-sidebar-icon: #bfdbfe;
  --admin-sidebar-shadow: 18px 0 42px rgba(0, 0, 0, 0.34);
}

.admin-sidebar {
  border-right: 1px solid var(--admin-sidebar-border);
  background: var(--admin-sidebar);
  color: var(--admin-sidebar-text-strong);
  box-shadow: var(--admin-sidebar-shadow);
}

.sidebar-header {
  border-bottom-color: var(--admin-sidebar-border);
}

.brand-mark,
.brand-mark:hover,
.brand-mark:focus {
  color: var(--admin-sidebar-text-strong);
}

.brand-subtitle {
  color: var(--admin-sidebar-muted);
}

.sidebar-nav .nav-link {
  color: var(--admin-sidebar-text);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
  background: var(--admin-sidebar-soft);
  color: var(--admin-sidebar-text-strong);
}

.nav-icon {
  background: var(--admin-sidebar-icon-bg);
  color: var(--admin-sidebar-icon);
}

.sidebar-footer {
  border-top-color: var(--admin-sidebar-border);
  color: var(--admin-sidebar-text);
}

/*==================== Admin Login Page Styles ==================== */

.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eeeeee;
  overflow: hidden;
  position: relative;
  padding: 20px;
}

.admin-login-text-danger {
  color: #ff0000;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

/* Floating Circles */

.admin-login-bg-circles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(236, 66, 60, 0.15);
  animation: adminFloat 8s infinite ease-in-out;
}

@keyframes adminFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-40px);
  }

  100% {
    transform: translateY(0);
  }
}

.admin-login-circle1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.admin-login-circle2 {
  width: 180px;
  height: 180px;
  bottom: 15%;
  right: 20%;
  animation-delay: 1s;
}

.admin-login-circle3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.admin-login-circle4 {
  width: 250px;
  height: 250px;
  top: 20%;
  right: 10%;
  animation-delay: 3s;
}

/* Login Box */

.admin-login-box {
  width: 100%;
  max-width: 380px;
  padding: 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: adminFadeSlide 0.8s ease;
  position: relative;
  z-index: 10;
}

@keyframes adminFadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-login-logo {
  width: 70%;
  display: block;
  margin: 0 auto 10px;
}

.admin-login-subtitle {
  text-align: center;
  margin-bottom: 25px;
  color: #818181;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Input Fields */

.admin-login-input-box {
  position: relative;
  margin-bottom: 20px;
}

.admin-login-input-box label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #ffffff;
  padding: 0 6px;
  font-size: 13px;
  color: #555;
  z-index: 1;
}

.admin-login-input-box input {
  width: 100%;
  padding: 18px 15px;
  border: 1px solid #e6e6e6;
  outline: none;
  background: #ffffff;
  font-size: 14px;
  transition: 0.3s ease;
}

.admin-login-input-box input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(77, 69, 233, 0.15);
}

/* Login Button */

.admin-login-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #444444, #ff0000);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 10px;
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff0000, #444444);
}

.admin-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading Spinner */

.admin-login-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: adminSpin 0.8s linear infinite;
}

@keyframes adminSpin {
  100% {
    transform: rotate(360deg);
  }
}

/* Footer */

.admin-login-footer {
  text-align: center;
  margin-top: 15px;
  color: #777;
  font-size: 14px;
}

/* Responsive */

@media (max-width: 576px) {
  .admin-login-wrapper {
    padding: 15px;
  }

  .admin-login-box {
    padding: 25px;
  }

  .admin-login-alert {
    min-width: auto;
    width: calc(100% - 30px);
  }

  .admin-login-circle1,
  .admin-login-circle2,
  .admin-login-circle3,
  .admin-login-circle4 {
    opacity: 0.4;
  }
}

/*==================== Customer Login Page Styles ==================== */

.admin-login-wrapper-success {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eeeeee;
  overflow: hidden;
  position: relative;
  padding: 20px;
}

.admin-login-text-success {
  color: #0f766e;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

/* Floating Circles */

.admin-login-bg-circles-success span {
  position: absolute;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.15);
  animation: adminFloat 8s infinite ease-in-out;
}

@keyframes adminFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-40px);
  }

  100% {
    transform: translateY(0);
  }
}

.admin-login-circle1-success {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.admin-login-circle2-success {
  width: 180px;
  height: 180px;
  bottom: 15%;
  right: 20%;
  animation-delay: 1s;
}

.admin-login-circle3-success {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.admin-login-circle4-success {
  width: 250px;
  height: 250px;
  top: 20%;
  right: 10%;
  animation-delay: 3s;
}

/* Login Box */

.admin-login-box-success {
  width: 100%;
  max-width: 380px;
  padding: 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: adminFadeSlide 0.8s ease;
  position: relative;
  z-index: 10;
}

@keyframes adminFadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-login-logo-success {
  width: 70%;
  display: block;
  margin: 0 auto 10px;
}

.admin-login-subtitle-success {
  text-align: center;
  margin-bottom: 25px;
  color: #818181;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Input Fields */

.admin-login-input-box-success {
  position: relative;
  margin-bottom: 20px;
}

.admin-login-input-box-success label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #ffffff;
  padding: 0 6px;
  font-size: 13px;
  color: #555;
  z-index: 1;
}

.admin-login-input-box-success input {
  width: 100%;
  padding: 18px 15px;
  border: 1px solid #e6e6e6;
  outline: none;
  background: #ffffff;
  font-size: 14px;
  transition: 0.3s ease;
}

.admin-login-input-box-success input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(233, 69, 69, 0.15);
}

/* Login Button */

.admin-login-btn-success {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #444444, #0f766e);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 10px;
}

.admin-login-btn-success:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0f766e, #444444);
}

.admin-login-btn-success:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading Spinner */

.admin-login-spinner-success {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: adminSpin 0.8s linear infinite;
}

@keyframes adminSpin {
  100% {
    transform: rotate(360deg);
  }
}

/* Footer */

.admin-login-footer-success {
  text-align: center;
  margin-top: 15px;
  color: #777;
  font-size: 14px;
}

/* Responsive */

@media (max-width: 576px) {
  .admin-login-wrapper-success {
    padding: 15px;
  }

  .admin-login-box-success {
    padding: 25px;
  }

  .admin-login-circle1-success,
  .admin-login-circle2-success,
  .admin-login-circle3-success,
  .admin-login-circle4-success {
    opacity: 0.4;
  }
}

/*==================== Supplier Login Page Styles ==================== */

.admin-login-wrapper-blue {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eeeeee;
  overflow: hidden;
  position: relative;
  padding: 20px;
}

.admin-login-text-blue {
  color: #0a58ca;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

/* Floating Circles */

.admin-login-bg-circles-blue span {
  position: absolute;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.15);
  animation: adminFloat 8s infinite ease-in-out;
}

@keyframes adminFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-40px);
  }

  100% {
    transform: translateY(0);
  }
}

.admin-login-circle1-blue {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.admin-login-circle2-blue {
  width: 180px;
  height: 180px;
  bottom: 15%;
  right: 20%;
  animation-delay: 1s;
}

.admin-login-circle3-blue {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.admin-login-circle4-blue {
  width: 250px;
  height: 250px;
  top: 20%;
  right: 10%;
  animation-delay: 3s;
}

/* Login Box */

.admin-login-box-blue {
  width: 100%;
  max-width: 380px;
  padding: 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: adminFadeSlide 0.8s ease;
  position: relative;
  z-index: 10;
}

@keyframes adminFadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-login-logo-blue {
  width: 70%;
  display: block;
  margin: 0 auto 10px;
}

.admin-login-subtitle-blue {
  text-align: center;
  margin-bottom: 25px;
  color: #818181;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Input Fields */

.admin-login-input-box-blue {
  position: relative;
  margin-bottom: 20px;
}

.admin-login-input-box-blue label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #ffffff;
  padding: 0 6px;
  font-size: 13px;
  color: #555;
  z-index: 1;
}

.admin-login-input-box-blue input {
  width: 100%;
  padding: 18px 15px;
  border: 1px solid #e6e6e6;
  outline: none;
  background: #ffffff;
  font-size: 14px;
  transition: 0.3s ease;
}

.admin-login-input-box-blue input:focus {
  border-color: #0a58ca;
  box-shadow: 0 0 0 3px rgba(77, 69, 233, 0.15);
}

/* Login Button */

.admin-login-btn-blue {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #444444, #0a58ca);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 10px;
}

.admin-login-btn-blue:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0a58ca, #444444);
}

.admin-login-btn-blue:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading Spinner */

.admin-login-spinner-blue {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: adminSpin 0.8s linear infinite;
}

@keyframes adminSpin {
  100% {
    transform: rotate(360deg);
  }
}

/* Footer */

.admin-login-footer-blue {
  text-align: center;
  margin-top: 15px;
  color: #777;
  font-size: 14px;
}

/* Responsive */

@media (max-width: 576px) {
  .admin-login-wrapper-blue {
    padding: 15px;
  }

  .admin-login-box-blue {
    padding: 25px;
  }

  .admin-login-circle1-blue,
  .admin-login-circle2-blue,
  .admin-login-circle3-blue,
  .admin-login-circle4-blue {
    opacity: 0.4;
  }
}

/* FULL SCREEN BACKDROP */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.popup-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* TOP POSITION + DROP EFFECT */
.popup-container {
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translateY(-200px); /* start above screen */
  opacity: 0;
  margin-top: 15px;
  transition: all 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.popup-container.drop {
  transform: translateY(0px);
  opacity: 1;
}

/* CARD DESIGN */
.popup-card {
  width: 420px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0px 10px 28px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: #000;
}

/* TEXT */
.popup-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.popup-text {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 18px;
}

/* BUTTON GROUP */
.popup-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.popup-btn-cancel {
  padding: 8px 22px;
  background: #6c757d;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.popup-btn-cancel:hover {
  background: #5a6268;
}

.popup-btn-delete {
  padding: 8px 22px;
  background: #e63946;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.popup-btn-delete:hover {
  background: #c62835;
}

.admin-footer {
  text-align: center;
}

.admin-footer .container-fluid {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Model Look */
.model-add-edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.274);
  backdrop-filter: blur(0.1px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.model-add-edit-modal-dialog {
  width: 100%;
  max-width: 700px;
}

.model-add-edit-modal-content {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  animation: staffModalShow 0.3s ease;
}

@keyframes staffModalShow {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.model-add-edit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 25px;
  background: linear-gradient(135deg, #e00404, #661a1a);
}

.model-add-edit-modal-header-success {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 25px;
  background: linear-gradient(135deg, #0f766e, #05312ed8);
}

.model-add-edit-modal-header-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 25px;
  background: linear-gradient(135deg, #1d4ed8, #051331d8);
}

.model-add-edit-modal-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.model-add-edit-modal-close {
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.model-add-edit-modal-close:hover {
  background: #ef4444;
  transform: rotate(90deg);
}

.model-add-edit-modal-body {
  padding: 25px;
}

.model-add-edit-label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.model-add-edit-input,
.model-add-edit-select {
  width: 100%;
  height: 48px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 0 15px;
  font-size: 14px;
  transition: 0.3s;
  background: #fff;
}

.model-add-edit-textarea {
  width: 100%;
  height: auto;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 0 15px;
  font-size: 14px;
  transition: 0.3s;
  background: #fff;
}

.model-add-edit-multi-select {
  height: 120px;
  padding: 10px;
}

.model-add-edit-input:focus,
.model-add-edit-select:focus,
.model-add-edit-textarea:focus {
  outline: none;
  border-color: none;
  box-shadow: 0 0 0 1px rgba(235, 60, 37, 0.12);
}

.model-add-edit-modal-footer {
  padding: 10px 25px;
  border-top: 1px solid #edf2f7;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.model-add-edit-btn {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.model-add-edit-btn-cancel {
  background: #f1f5f9;
  color: #334155;
}

.model-add-edit-btn-cancel:hover {
  background: #e2e8f0;
}

.model-add-edit-btn-save {
  color: #d12020;
  background: none;
  border: 1px solid #d12020;
}

.model-add-edit-btn-save-success {
  color: #0f766e;
  background: none;
  border: 1px solid #0f766e;
}

.model-add-edit-btn-save-primary {
  color: #1d4ed8;
  background: none;
  border: 1px solid #1d4ed8;
}

.model-add-edit-btn-save:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #d12020, #aa0404);
}

.model-add-edit-btn-save-success:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #0f766e, #0f766e);
}

.model-add-edit-btn-save-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #1d4ed8, #1d4ed8);
}

.invalid-feedback {
  display: block;
  color: #ef4444;
  font-size: 12px;
  margin-top: 5px;
}

.model-add-edit-modal-content {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  animation: staffModalShow 0.3s ease;

  max-height: 90vh; /* important */
  display: flex;
  flex-direction: column;
}

.model-add-edit-modal-body {
  padding: 25px;
  overflow-y: auto; /* scroll */
  flex: 1;
}

.model-add-edit-modal-dialog {
  width: 100%;
}

.model-size-sm {
  max-width: 400px;
}

.model-size-md {
  max-width: 650px;
}

.model-size-lg {
  max-width: 1000px;
}

.model-size-full {
  max-width: 1300px;
}

.model-add-edit-modal-body::-webkit-scrollbar {
  width: 6px;
}

.model-add-edit-modal-body::-webkit-scrollbar-thumb {
  background: #d12020;
  border-radius: 10px;
}

.model-add-edit-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.order-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #3f3f46;
}

.order-file-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  transition: 0.3s;
}

.order-file-input:focus {
  border-color: #dc3545;
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.order-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  transition: 0.3s;
  background: #fff;
}

.order-textarea:focus {
  border-color: #dc3545;
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.order-textarea::placeholder {
  color: #999;
}

.upload-progress-box {
  width: 100%;
}

.upload-progress-bar {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 20px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: #dc3545;
  transition: width 0.2s linear;
}

/* Supplier Model Selete */
.supplier-tag {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 140px;
  margin: 10px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px;
}

.supplier-tag strong {
  font-size: 13px;
  margin: 0;
}

.supplier-tag small {
  font-size: 11px;
  color: #6c757d;
  display: block;
  line-height: 1.2;
}

.supplier-tag:hover {
  border-color: #198754;
}

.supplier-tag.active {
  background: #e8f8ee;
  border-color: #198754;
}

.supplier-tag.active i {
  font-size: 14px;
}

/* Profile Uploading */
.profile-upload-progress {
  width: 100%;
  margin-top: 10px;
}

.profile-upload-progress-bar {
  width: 100%;
  height: 8px;
  background: #ececec;
  border-radius: 20px;
  overflow: hidden;
}

.profile-upload-progress-fill {
  height: 100%;
  width: 0%;
  background: #dc3545;
  transition: width 0.2s linear;
}

.profile-upload-progress small {
  display: block;
  margin-top: 6px;
  color: #dc3545;
}

/* Loader In Dashboard */

.metric-card.skeleton {
  pointer-events: none;
}

.metric-card.skeleton .skeleton-line,
.metric-card.skeleton .skeleton-circle,
.metric-card.skeleton .skeleton-number {
  background: linear-gradient(90deg, #f1f1f1 25%, #e5e5e5 50%, #f1f1f1 75%);
  background-size: 300% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}

.skeleton-line {
  width: 120px;
  height: 16px;
}

.skeleton-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.skeleton-number {
  width: 70px;
  height: 38px;
  margin-top: 20px;
}

@keyframes shimmer {
  0% {
    background-position: 300% 0;
  }

  100% {
    background-position: -300% 0;
  }
}

/* Loader in Sidebar */
.sidebar-skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 12px;
}

.sidebar-skeleton-icon,
.sidebar-skeleton-text {
  background: linear-gradient(90deg, #f2f2f2 25%, #e5e5e5 50%, #f2f2f2 75%);
  background-size: 300% 100%;
  animation: sidebarShimmer 1.2s infinite;
}

.sidebar-skeleton-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-skeleton-text {
  height: 14px;
  width: 120px;
  border-radius: 6px;
}

@keyframes sidebarShimmer {
  0% {
    background-position: 300% 0;
  }

  100% {
    background-position: -300% 0;
  }
}

/* Loader in Profile */

.profile-skeleton {
  background: linear-gradient(90deg, #f3f3f3 25%, #e6e6e6 50%, #f3f3f3 75%);
  background-size: 300% 100%;
  animation: profileShimmer 1.2s infinite;
  border-radius: 8px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: auto;
}

.profile-title {
  width: 180px;
  height: 22px;
  margin: 20px auto 10px;
}

.profile-text {
  width: 100%;
  height: 46px;
  margin-bottom: 15px;
}

.profile-input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
}

.profile-input-file {
  width: 70%;
  height: 46px;
  border-radius: 40px;
}

.profile-input-button {
  width: 50%;
  height: 46px;
  border-radius: 10px;
}

.profile-button {
  width: 180px;
  height: 45px;
  margin: auto;
  border-radius: 25px;
}

@keyframes profileShimmer {
  from {
    background-position: 300% 0;
  }
  to {
    background-position: -300% 0;
  }
}

/* query modal */
.chat-container {
  height: 420px;
  overflow-y: auto;
  padding: 20px;
  background: #ece5dd;
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* Hide Scrollbar */
  -ms-overflow-style: none; /* IE & Edge */
  scrollbar-width: none; /* Firefox */
}

.chat-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.chat-message {
  display: flex;
  width: 100%;
}

.chat-message.left {
  justify-content: flex-start;
}

.chat-message.right {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 20px;
  border-radius: 14px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble.received {
  background: #ffffff;
  color: #333;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-bubble.sent {
  background: #d9fdd3;
  color: #333;
  border-top-right-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-time {
  display: block;
  text-align: right;
  margin-top: 5px;
  font-size: 11px;
  color: #777;
}

.chat-footer {
  border-top: 1px solid #ddd;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f7f7;
}

.chat-input {
  flex: 1;
  height: 45px;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 0 18px;
  outline: none;
  font-size: 14px;
}

.chat-input:focus {
  border-color: #198754;
}

.chat-send-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  font-size: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.chat-send-btn:hover {
  background: #157347;
}

.chat-bubble {
    position: relative;
}

/* Three Dot Button */
.chat-menu {
    position: absolute;
    top: 1px;
    right: -1px;
    opacity: 0;
    transition: .2s;
}

.chat-bubble:hover .chat-menu {
    opacity: 1;
}

.chat-menu-btn {
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 5px;
}

.chat-menu-btn:hover {
    background: rgba(255, 253, 253, 0.08);
}

/* Dropdown */
.chat-menu-dropdown {
    position: absolute;
    top: 28px;
    right: 0;
    width: 150px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.chat-menu:hover .chat-menu-dropdown {
    display: block;
}

.chat-menu-dropdown button {
    width: 100%;
    border: none;
    background: #fff;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.chat-menu-dropdown button:hover {
    background: #f5f5f5;
}