/* 
 * Grocery Store Admin Dashboard Stylesheet
 * Consolidated styling for Login, Registration, and Dashboard panels.
 * Premium Light-Green Theme Design Tokens.
 */

:root {
  --primary: #10b981; /* Premium Emerald/Light Green */
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --dark-green: #064e3b;
  --neutral-bg: #f8fafc;
  --neutral-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. Core Resets & Common Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--neutral-bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Spinner helper */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Alert Boxes */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
  line-height: 1.5;
  animation: slideIn 0.3s ease;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #16a34a;
}

/* ==========================================================================
   2. Auth Pages (Login & Registration) Styles
   ========================================================================== */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* Ambient background decoration */
body.auth-page::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  top: -100px;
  right: -100px;
  z-index: 0;
}

body.auth-page::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.08) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  bottom: -150px;
  left: -150px;
  z-index: 0;
}

.login-container,
.register-container {
  width: 100%;
  z-index: 10;
}

.login-container {
  max-width: 450px;
}

.register-container {
  max-width: 520px;
}

.login-card,
.register-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.register-card {
  padding: 35px 40px;
}

.logo-section {
  text-align: center;
  margin-bottom: 32px;
}

.register-card .logo-section {
  margin-bottom: 24px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.register-card .logo-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.logo-text {
  font-family: "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-green);
  letter-spacing: -0.5px;
}

.register-card .logo-text {
  font-size: 22px;
}

.logo-text span {
  color: var(--primary);
}

.login-header,
.register-header {
  margin-bottom: 24px;
  text-align: center;
}

.login-header h1,
.register-header h1 {
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.register-header h1 {
  font-size: 20px;
  margin-bottom: 6px;
}

.login-header p,
.register-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.register-card .form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.register-card .form-label {
  font-size: 13.5px;
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.register-card .form-input {
  padding: 11px 14px;
  font-size: 14.5px;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
  color: #a0aec0;
}

.verify-method-wrapper {
  background-color: var(--neutral-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.verify-method-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  gap: 8px;
}

.radio-input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.btn-primary {
  width: auto;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.login-card .btn-primary,
.register-card .btn-primary {
  width: 100%;
}

.register-card .btn-primary {
  padding: 12px 20px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background-color: var(--border-color);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* Base button and secondary */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-secondary {
  background-color: var(--neutral-bg);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: #e2e8f0;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fff;
  transition: var(--transition);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-toggle {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.register-card .auth-toggle {
  margin-top: 20px;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.otp-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.otp-digit {
  width: 50px;
  height: 54px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.otp-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.resend-section {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.resend-timer-text {
  color: var(--text-muted);
}

.resend-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.resend-link:hover {
  text-decoration: underline;
}

.resend-link.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: none;
}

.step-container {
  display: none;
}

.step-active {
  display: block;
  animation: slideIn 0.4s ease;
}

/* ==========================================================================
   3. Dashboard Layout Styles
   ========================================================================== */
body.dashboard-page {
  display: flex;
}

/* Sidebar structure */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--neutral-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition);
}

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

.sidebar-brand {
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.brand-name {
  font-family: "Outfit", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--dark-green);
  letter-spacing: -0.5px;
  opacity: 1;
  transition: var(--transition);
}

.brand-name span {
  color: var(--primary);
}

.sidebar.collapsed .brand-name {
  opacity: 0;
  width: 0;
  pointer-events: none;
}

.sidebar.collapsed .brand-icon {
  width: 36px;
  height: 36px;
}

/* Nav Menu */
.nav-list {
  list-style: none;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 555;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.nav-link-text {
  transition: opacity 0.2s ease;
}

.sidebar.collapsed .nav-link-text {
  opacity: 0;
  display: none;
}

.nav-link:hover {
  background-color: var(--neutral-bg);
  color: var(--primary);
}

.nav-item.active .nav-link {
  background-color: var(--primary-light);
  color: var(--primary);
}

.nav-item.active .nav-link svg {
  color: var(--primary);
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px;
}

/* Sidebar Profile Footer (With Centering & Stack transitions) */
.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid var(--border-color);
  background-color: var(--neutral-card);
  margin-top: auto;
  transition: var(--transition);
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background-color: var(--neutral-bg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: var(--transition);
}

.profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  transition:
    opacity 0.2s ease,
    max-width 0.3s ease;
  max-width: 140px;
  opacity: 1;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-overflow: ellipsis;
  overflow: hidden;
}

.profile-role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Logout button */
.logout-btn {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
}

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

/* Collapsed Sidebar Profile & Logout Overrides */
.sidebar.collapsed .sidebar-footer {
  padding: 16px 8px;
}

.sidebar.collapsed .profile-container {
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 4px;
  background-color: transparent;
}

.sidebar.collapsed .profile-info {
  max-width: 0;
  opacity: 0;
}

.sidebar.collapsed .avatar {
  margin: 0 auto;
}

.sidebar.collapsed .logout-btn {
  margin-top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--neutral-bg);
  color: #dc2626;
  box-shadow: var(--shadow-sm);
}

.sidebar.collapsed .logout-btn:hover {
  background-color: #fef2f2;
}

/* Sidebar transition override to prevent scrollbar flicker */
.sidebar.transitioning,
.sidebar.transitioning * {
  overflow: hidden !important;
}

/* Custom scrollbar for nav list to handle it smoothly */
.nav-list::-webkit-scrollbar {
  width: 5px;
}
.nav-list::-webkit-scrollbar-track {
  background: transparent;
}
.nav-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.nav-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Main Content Wrapper */
.main-wrapper {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.sidebar.collapsed ~ .main-wrapper {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}

/* Dashboard Header */
.dashboard-header {
  height: 70px;
  background-color: var(--neutral-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: var(--neutral-bg);
  color: var(--primary);
}

.header-title {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

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

.date-badge {
  font-size: 13.5px;
  color: var(--text-muted);
  background-color: var(--neutral-bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.notif-btn:hover {
  background-color: var(--neutral-bg);
  color: var(--primary);
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--neutral-card);
}

/* Dashboard Content body */
.dashboard-content {
  padding: 30px;
  flex-grow: 1;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: var(--neutral-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.3);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-family: "Outfit", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.stat-change.up {
  color: var(--primary);
}

.stat-change.down {
  color: #dc2626;
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.stat-icon-wrapper.green {
  background-color: var(--primary-light);
  color: var(--primary);
}

.stat-icon-wrapper.blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.stat-icon-wrapper.purple {
  background-color: #faf5ff;
  color: #9333ea;
}

.stat-icon-wrapper.orange {
  background-color: #fff7ed;
  color: #ea580c;
}

/* Two-column layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

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

.content-card {
  background-color: var(--neutral-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-family: "Outfit", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-main);
}

.card-action-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.card-action-btn:hover {
  color: var(--primary-hover);
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 14px 24px;
  background-color: var(--neutral-bg);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14.5px;
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-success {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-warning {
  background-color: #fffbeb;
  color: #d97706;
}

.badge-info {
  background-color: #eff6ff;
  color: #2563eb;
}

/* Status panel card widget */
.status-widget {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

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

.status-label-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-bg);
  color: var(--text-muted);
}

.status-item-title {
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-main);
}

.status-item-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.status-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

/* Chart mockup */
.chart-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  background-color: var(--primary);
  opacity: 0.8;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.chart-bar:hover {
  background-color: var(--primary-hover);
  opacity: 1;
}

.chart-bar.peak {
  background-color: var(--dark-green);
  opacity: 0.95;
}

.chart-bar.peak:hover {
  background-color: #022c22;
  opacity: 1;
}

.chart-bar::before {
  content: attr(data-value);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-green);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  white-space: nowrap;
}

.chart-bar:hover::before {
  opacity: 1;
}

/* Mobile drawer overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(2px);
  z-index: 95;
  animation: fadeIn 0.2s ease;
}

/* Mobile responsive drawer styles */
@media (max-width: 768px) {
  .sidebar {
    left: calc(-1 * var(--sidebar-width));
  }

  .sidebar.active {
    left: 0;
  }

  .main-wrapper,
  .sidebar.collapsed ~ .main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .dashboard-header {
    padding: 0 20px;
  }

  .dashboard-content {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .overlay.active {
    display: block;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--neutral-card);
}

.pagination-info {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Custom Modal Dialog System */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease-out;
}

.custom-modal-card {
  background-color: var(--neutral-card);
  width: 90%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: modalSlideUp 0.2s ease-out;
}

.custom-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.custom-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--transition);
}

.custom-modal-close:hover {
  color: var(--text-main);
}

.custom-modal-body {
  padding: 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.custom-modal-footer {
  padding: 12px 20px;
  background-color: var(--neutral-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   4. Skeleton Loading Styles (Premium Green Shimmer Theme)
   ========================================================================== */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  display: inline-block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f0fdf4 25%, #dcfce7 50%, #f0fdf4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm, 8px);
}

.skeleton-text {
  height: 16px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0fdf4 25%, #dcfce7 50%, #f0fdf4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  display: inline-block;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-val {
  height: 32px;
  width: 80%;
  margin: 6px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0fdf4 25%, #dcfce7 50%, #f0fdf4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  display: inline-block;
}

.skeleton-badge {
  height: 22px;
  width: 70px;
  border-radius: 50px;
  background: linear-gradient(90deg, #f0fdf4 25%, #dcfce7 50%, #f0fdf4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  display: inline-block;
}

.skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0fdf4 25%, #dcfce7 50%, #f0fdf4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  display: inline-block;
}

/* ==========================================================================
   5. Unified Tabs & Toggle Switches
   ========================================================================== */
.tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-family: "Outfit", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.tab-btn:hover {
  color: var(--primary);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(24px);
}

/* Scoped Form Groups to prevent collisions */
.form-grid .form-group,
.form-grid-vertical .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}
.form-grid .form-group label,
.form-grid-vertical .form-group label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.notifications-container .form-group {
  margin-bottom: 15px;
}
.notifications-container .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

/* ==========================================================================
   6. Orders Management Styles
   ========================================================================== */
.badge-danger {
  background-color: #fef2f2;
  color: #ef4444;
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  background: #ffffff;
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 300px;
}
@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast-success {
  border-left-color: var(--primary);
}
.toast-error {
  border-left-color: #ef4444;
}
.toast-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-message {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.info-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -2px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
}
.info-card-title {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-card-title svg {
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 6px;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #f1f5f9;
}
.info-item:last-child {
  border-bottom: none;
}
.info-label {
  color: var(--text-muted);
  font-weight: 500;
}
.info-value {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.grand-total-highlight {
  background: var(--primary-light) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(16, 185, 129, 0.15) !important;
}

.address-box {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-main);
  font-style: normal;
}

.product-img-mini {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.product-img-mini:hover {
  transform: scale(1.08);
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}
.data-table tbody tr:hover {
  background-color: #fafbfc;
}

.filter-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-control {
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
  background-color: #ffffff !important;
  color: var(--text-main) !important;
  padding: 10px 14px !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  height: 42px !important;
}
.filter-control:hover {
  border-color: var(--primary) !important;
}
.filter-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}
select.filter-control {
  cursor: pointer;
  padding-right: 28px !important;
}
.clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.clear-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

/* ==========================================================================
   7. Offers & Settings Styles
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.form-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
}
.settings-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 24px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
}
.settings-section-title:first-of-type {
  margin-top: 0;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.banner-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.banner-image-preview {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.banner-details {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}
.banner-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.banner-meta {
  font-size: 12px;
  color: var(--text-muted);
  background: #fafbfc;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ==========================================================================
   8. Notifications Settings Styles
   ========================================================================== */
.notifications-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.settings-card {
  background: #fff;
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.settings-card h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-card h3 svg {
  color: var(--primary);
}
.toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.toggle-item:last-child {
  border-bottom: none;
}
.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toggle-title {
  font-weight: 500;
  font-size: 15px;
}
.toggle-desc {
  font-size: 13px;
  color: var(--text-muted);
}
.btn-send {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-send:hover{
  background: var(--primary) !important;
}
.btn-send:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
#specificUsersGroup {
  display: none;
}
select[multiple] {
  height: 120px;
}
@media (max-width: 900px) {
  .notifications-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. FAQs Management Styles
   ========================================================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px;
}
.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.faq-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-content input, .faq-content textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.faq-content input:focus, .faq-content textarea:focus {
  border-color: var(--primary);
}
.faq-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-remove-faq {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-remove-faq:hover {
  background: #fee2e2;
}
.empty-state {
  text-align: center;
  padding: 40px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

/* ==========================================================================
   10. Deliveries Management Styles
   ========================================================================== */
.tab-filters button {
  background: #fff;
  color: var(--text-muted);
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.tab-filters button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.action-links { display: flex; gap: 8px; flex-wrap: wrap; }
.action-links button { padding: 6px 12px; font-size: 12px; border-radius: 4px; border: none; cursor: pointer; font-weight: 500; }
.btn-track { background: #e0f2fe; color: #0369a1; }
.btn-assign { background: #f0fdf4; color: #166534; }
.btn-eta { background: #fff; color: var(--text-main); border: 1px solid #cbd5e1 !important; }

/* ==========================================================================
   11. Customers Management Styles
   ========================================================================== */
.customer-profile-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; }
.customer-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.customer-avatar { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; text-transform: uppercase; }
.customer-info h3 { margin: 0; font-size: 20px; color: var(--text-main); }
.customer-info p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }

.customer-profile-card .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-box { background: #f8fafc; padding: 15px; border-radius: 6px; border: 1px solid #e2e8f0; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-bottom: 5px; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--text-main); }

.address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 20px; }
.address-card { background: #f8fafc; padding: 15px; border-radius: 6px; border: 1px solid #e2e8f0; }
.address-card h4 { margin: 0 0 10px; font-size: 14px; color: var(--primary); text-transform: uppercase; }
.address-card p { margin: 0 0 5px; font-size: 14px; color: var(--text-main); line-height: 1.4; }

.order-history-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.order-history-table th, .order-history-table td { padding: 10px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.order-history-table th { background: #f1f5f9; font-weight: 600; color: var(--text-muted); }

.search-box { display: flex; gap: 10px; margin: 20px; align-items: center; }
.search-box input { flex: 1; padding: 13px 20px; border: 1px solid #cbd5e1; border-radius: var(--radius-md, 12px); font-size: 15px; outline: none; transition: all 0.3s ease; font-family: inherit; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid #e2e8f0; }
.pagination-controls button { padding: 6px 12px; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; cursor: pointer; color: var(--text-main); }
.pagination-controls button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   12. Coupons Management Styles
   ========================================================================== */
.coupon-tabs-container {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.coupon-tabs-nav {
  width: 200px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.coupon-tab-btn {
  padding: 15px 20px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}
.coupon-tab-btn:hover {
  background: #f1f5f9;
  color: var(--primary);
}
.coupon-tab-btn.active {
  background: #fff;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  margin-left: -1px;
}
.coupon-tab-content {
  flex: 1;
  padding: 24px;
  display: none;
}
.coupon-tab-content.active {
  display: block;
}
.field-row {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}
.field-label {
  width: 200px;
  font-weight: 500;
  color: #334155;
  padding-top: 8px;
}
.field-input {
  flex: 1;
  max-width: 500px;
}
.help-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  display: block;
}
.multi-select-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
}
.multi-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.multi-select-item label {
  font-size: 14px;
  cursor: pointer;
}

/* ==========================================================================
   13. Audit Logs Styles
   ========================================================================== */
.badge-method-get { background-color: #f0fdf4; color: #16a34a; }
.badge-method-post { background-color: #eff6ff; color: #2563eb; }
.badge-method-put { background-color: #fffbeb; color: #d97706; }
.badge-method-delete { background-color: #fef2f2; color: #dc2626; }
.badge-method-other { background-color: #f8fafc; color: #64748b; }

.badge-status-2xx { background-color: #f0fdf4; color: #16a34a; }
.badge-status-3xx { background-color: #fef3c7; color: #d97706; }
.badge-status-4xx { background-color: #fef2f2; color: #dc2626; }
.badge-status-5xx { background-color: #fff1f2; color: #e11d48; font-weight: bold; }

.json-block {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 15px;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 250px;
}
.stat-card.red .stat-icon-wrapper {
  background-color: #fef2f2;
  color: #dc2626;
}
.stat-card.blue .stat-icon-wrapper {
  background-color: #eff6ff;
  color: #2563eb;
}


