/* CSS Custom Properties for theming */
:root {
  --primary-color: 210 100% 50%; /* #0080FF */
  --primary-dark: 210 100% 40%; /* #0066CC */
  --secondary-color: 45 100% 50%; /* #FFB300 */
  --success-color: 120 100% 40%; /* #00CC00 */
  --danger-color: 0 100% 50%; /* #FF0000 */
  --warning-color: 35 100% 50%; /* #FF8800 */
  --info-color: 195 100% 50%; /* #00BFFF */
  
  --background: 210 11% 98%; /* #F5F7FA */
  --surface: 0 0% 100%; /* #FFFFFF */
  --surface-variant: 210 11% 96%; /* #F0F2F5 */
  --text-primary: 210 11% 15%; /* #1E2329 */
  --text-secondary: 210 8% 40%; /* #6C757D */
  --text-muted: 210 8% 60%; /* #9CA3AF */
  --border: 210 8% 85%; /* #D1D5DB */
  
  --shadow-sm: 0 1px 2px 0 hsl(210 8% 40% / 0.05);
  --shadow: 0 1px 3px 0 hsl(210 8% 40% / 0.1), 0 1px 2px 0 hsl(210 8% 40% / 0.06);
  --shadow-md: 0 4px 6px -1px hsl(210 8% 40% / 0.1), 0 2px 4px -1px hsl(210 8% 40% / 0.06);
  --shadow-lg: 0 10px 15px -3px hsl(210 8% 40% / 0.1), 0 4px 6px -2px hsl(210 8% 40% / 0.05);
  --shadow-xl: 0 20px 25px -5px hsl(210 8% 40% / 0.1), 0 10px 10px -5px hsl(210 8% 40% / 0.04);
  
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --transition: all 0.2s ease;
}

/* Dark theme variables */
[data-theme="dark"] {
  --background: 210 11% 8%; /* #1A1D23 */
  --surface: 210 11% 12%; /* #2A2D33 */
  --surface-variant: 210 11% 16%; /* #3A3D43 */
  --text-primary: 210 11% 95%; /* #F1F3F5 */
  --text-secondary: 210 8% 75%; /* #C1C7CD */
  --text-muted: 210 8% 55%; /* #8B92A6 */
  --border: 210 8% 25%; /* #4A4D55 */
}

/* Dark theme overrides */
[data-theme="dark"] .text-muted {
  color: hsl(210 8% 65%) !important;
}

[data-theme="dark"] .card-text {
  color: hsl(210 8% 75%) !important;
}

[data-theme="dark"] .small,
[data-theme="dark"] small {
  color: hsl(210 8% 70%) !important;
}

[data-theme="dark"] .breadcrumb-item a {
  color: hsl(210 8% 75%) !important;
}

[data-theme="dark"] .nav-link {
  color: hsl(210 8% 75%) !important;
}

[data-theme="dark"] .dropdown-item {
  color: hsl(210 11% 95%) !important;
  background-color: transparent !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: hsl(210 11% 20%) !important;
  color: hsl(210 11% 95%) !important;
}

[data-theme="dark"] .dropdown-menu {
  background-color: hsl(210 11% 16%) !important;
  border-color: hsl(210 8% 25%) !important;
}

/* Global Bootstrap overrides for dark theme */
[data-theme="dark"] .bg-white {
  background-color: hsl(var(--surface)) !important;
}

[data-theme="dark"] .bg-light {
  background-color: hsl(var(--surface-variant)) !important;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-black {
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .card {
  background-color: hsl(var(--surface)) !important;
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
  background-color: hsl(var(--surface-variant)) !important;
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .table {
  color: hsl(var(--text-primary)) !important;
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
  border-color: hsl(var(--border)) !important;
  background-color: transparent !important;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background-color: hsla(0, 0%, 100%, 0.03) !important;
}

[data-theme="dark"] .table-hover tbody tr:hover {
  background-color: hsla(0, 0%, 100%, 0.05) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .table-light {
  background-color: hsl(var(--surface-variant)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: hsl(var(--surface-variant)) !important;
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: hsl(var(--surface-variant)) !important;
  border-color: hsl(var(--primary-color)) !important;
  color: hsl(var(--text-primary)) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 128, 255, 0.25) !important;
}

[data-theme="dark"] .form-control::placeholder {
  color: hsl(var(--text-muted)) !important;
  opacity: 0.8;
}

[data-theme="dark"] .input-group-text {
  background-color: hsl(var(--surface-variant)) !important;
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--text-secondary)) !important;
}

[data-theme="dark"] .form-check-input {
  background-color: hsl(var(--surface-variant)) !important;
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .form-check-input:checked {
  background-color: hsl(var(--primary-color)) !important;
  border-color: hsl(var(--primary-color)) !important;
}

[data-theme="dark"] .modal-content {
  background-color: hsl(var(--surface)) !important;
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: hsl(var(--border)) !important;
}

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

[data-theme="dark"] .list-group-item {
  background-color: hsl(var(--surface)) !important;
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .list-group-item-action:hover {
  background-color: hsl(var(--surface-variant)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-right,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-left,
[data-theme="dark"] .border-end,
[data-theme="dark"] .border-start {
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .alert-light {
  background-color: hsl(var(--surface-variant)) !important;
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .alert-info {
  background-color: hsla(195, 100%, 50%, 0.15) !important;
  border-color: hsla(195, 100%, 50%, 0.3) !important;
  color: hsl(195, 100%, 75%) !important;
}

[data-theme="dark"] .alert-success {
  background-color: hsla(120, 100%, 40%, 0.15) !important;
  border-color: hsla(120, 100%, 40%, 0.3) !important;
  color: hsl(120, 100%, 75%) !important;
}

[data-theme="dark"] .alert-warning {
  background-color: hsla(35, 100%, 50%, 0.15) !important;
  border-color: hsla(35, 100%, 50%, 0.3) !important;
  color: hsl(35, 100%, 75%) !important;
}

[data-theme="dark"] .alert-danger {
  background-color: hsla(0, 100%, 50%, 0.15) !important;
  border-color: hsla(0, 100%, 50%, 0.3) !important;
  color: hsl(0, 100%, 75%) !important;
}

[data-theme="dark"] .accordion-item {
  background-color: hsl(var(--surface)) !important;
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .accordion-button {
  background-color: hsl(var(--surface)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: hsl(var(--surface-variant)) !important;
  color: hsl(var(--primary-color)) !important;
}

[data-theme="dark"] .accordion-button::after {
  filter: invert(1);
}

[data-theme="dark"] .nav-tabs {
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .nav-tabs .nav-link {
  color: hsl(var(--text-secondary)) !important;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
  background-color: hsl(var(--surface)) !important;
  border-color: hsl(var(--border)) hsl(var(--border)) transparent !important;
  color: hsl(var(--primary-color)) !important;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
  border-color: transparent transparent hsl(var(--border)) !important;
}

[data-theme="dark"] .navbar-light,
[data-theme="dark"] .bg-light {
  background-color: hsl(var(--surface)) !important;
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .navbar-light .navbar-brand,
[data-theme="dark"] .navbar-light .navbar-nav .nav-link {
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link:hover {
  color: hsl(var(--primary-color)) !important;
}

[data-theme="dark"] .breadcrumb {
  background-color: hsl(var(--surface-variant)) !important;
}

[data-theme="dark"] .breadcrumb-item.active {
  color: hsl(var(--text-muted)) !important;
}

[data-theme="dark"] .timeline::before {
  background-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .timeline-badge {
  background-color: hsl(var(--surface-variant)) !important;
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .badge.bg-light {
  background-color: hsl(var(--surface-variant)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .list-group-item-light {
  background-color: hsl(var(--surface-variant)) !important;
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .list-group-item h5,
[data-theme="dark"] .list-group-item h6 {
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .hover-bg-light:hover {
  background-color: hsl(var(--surface-variant)) !important;
}

[data-theme="dark"] .hover-bg-light {
  background-color: transparent !important;
}

[data-theme="dark"] .border-light {
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .bg-light.bg-opacity-50 {
  background-color: hsla(210, 11%, 16%, 0.5) !important;
}

[data-theme="dark"] .border-light-subtle {
  border-color: hsl(var(--border)) !important;
}

[data-theme="dark"] .bg-warning-subtle {
  background-color: hsla(45, 100%, 50%, 0.1) !important;
}

[data-theme="dark"] .text-warning-emphasis {
  color: hsl(45, 100%, 75%) !important;
}

[data-theme="dark"] .bg-danger-subtle {
  background-color: hsla(0, 100%, 50%, 0.1) !important;
}

[data-theme="dark"] .text-danger-emphasis {
  color: hsl(0, 100%, 75%) !important;
}

[data-theme="dark"] .bg-success-subtle {
  background-color: hsla(120, 100%, 40%, 0.1) !important;
}

[data-theme="dark"] .text-success-emphasis {
  color: hsl(120, 100%, 75%) !important;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--text-primary));
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: var(--transition);
}

/* Navigation */
.navbar {
  background-color: hsl(var(--surface)) !important;
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 700;
  color: hsl(var(--primary-color)) !important;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: hsl(var(--text-secondary)) !important;
  font-weight: 500;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: hsl(var(--primary-color)) !important;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius);
  color: hsl(var(--text-secondary));
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: hsl(var(--surface-variant));
  color: hsl(var(--text-primary));
}

/* Cards */
.card {
  background-color: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  background-color: hsl(var(--surface-variant));
  border-bottom: 1px solid hsl(var(--border));
  font-weight: 600;
  color: hsl(var(--text-primary));
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: hsl(var(--primary-dark));
  border-color: hsl(var(--primary-dark));
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: hsl(var(--primary-color));
  color: hsl(var(--primary-color));
}

.btn-outline-primary:hover {
  background-color: hsl(var(--primary-color));
  border-color: hsl(var(--primary-color));
  color: white;
}

.btn-success {
  background-color: hsl(var(--success-color));
  border-color: hsl(var(--success-color));
}

.btn-danger {
  background-color: hsl(var(--danger-color));
  border-color: hsl(var(--danger-color));
}

.btn-warning {
  background-color: hsl(var(--warning-color));
  border-color: hsl(var(--warning-color));
}

/* Forms */
.form-control {
  background-color: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius);
  color: hsl(var(--text-primary));
  transition: var(--transition);
}

.form-control:focus {
  border-color: hsl(var(--primary-color));
  box-shadow: 0 0 0 0.2rem hsl(var(--primary-color) / 0.25);
  background-color: hsl(var(--surface));
  color: hsl(var(--text-primary));
}

.form-label {
  color: hsl(var(--text-secondary));
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
  border-radius: var(--border-radius);
  border: none;
}

.alert-success {
  background-color: hsl(var(--success-color) / 0.1);
  color: hsl(120 100% 25%);
  border-left: 4px solid hsl(var(--success-color));
}

.alert-danger {
  background-color: hsl(var(--danger-color) / 0.1);
  color: hsl(0 100% 35%);
  border-left: 4px solid hsl(var(--danger-color));
}

.alert-info {
  background-color: hsl(var(--info-color) / 0.1);
  color: hsl(195 100% 35%);
  border-left: 4px solid hsl(var(--info-color));
}

/* Dashboard styles */
.dashboard-header {
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-radius: var(--border-radius-lg);
}

.stat-card {
  background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--surface-variant)));
  border: none;
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary-color));
  margin-bottom: 0.5rem;
}

.stat-label {
  color: hsl(var(--text-secondary));
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

/* Order status badges */
.order-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.order-status.pending {
  background-color: hsl(var(--warning-color) / 0.1);
  color: hsl(35 100% 35%);
}

.order-status.confirmed {
  background-color: hsl(var(--info-color) / 0.1);
  color: hsl(195 100% 35%);
}

.order-status.in_transit {
  background-color: hsl(var(--primary-color) / 0.1);
  color: hsl(210 100% 35%);
}

.order-status.delivered {
  background-color: hsl(var(--success-color) / 0.1);
  color: hsl(120 100% 25%);
}

.order-status.cancelled {
  background-color: hsl(var(--danger-color) / 0.1);
  color: hsl(0 100% 35%);
}

/* Drone status indicators */
.drone-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.drone-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.drone-status.available .drone-status-dot,
.drone-status.idle .drone-status-dot {
  background-color: hsl(var(--success-color));
}

.drone-status.busy .drone-status-dot,
.drone-status.assigned .drone-status-dot,
.drone-status.picking_up .drone-status-dot,
.drone-status.delivering .drone-status-dot {
  background-color: hsl(var(--warning-color));
  animation: statusPulse 1.2s ease-in-out infinite;
}

.drone-status.docked .drone-status-dot {
  background-color: #fd7e14;
  animation: statusPulse 2s ease-in-out infinite;
}

.drone-status.low_battery .drone-status-dot,
.drone-status.maintenance .drone-status-dot {
  background-color: hsl(var(--danger-color));
  animation: statusPulse 0.7s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Map container */
.map-container {
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--surface-variant));
}

.map-container.large {
  height: 600px;
}

/* Custom map markers */
.custom-marker {
  background: transparent !important;
  border: none !important;
}

.drone-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.drone-marker .marker-icon {
  font-size: 16px;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(25, 135, 84, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.marker-pulse.warning {
  background: rgba(255, 193, 7, 0.3);
}

.marker-pulse.danger {
  background: rgba(220, 53, 69, 0.3);
}

/* Delivery pin specific styling */
.delivery-pin .marker-icon {
  font-size: 20px;
}

.delivery-pin .marker-pulse {
  background: rgba(13, 110, 253, 0.3);
  animation: deliveryPulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes deliveryPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* Algorithm visualization styles */
.algorithm-section {
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius);
  padding: 1rem;
  background: hsl(var(--surface));
}

.algorithm-viz {
  min-height: 200px;
  background: hsl(var(--surface-variant));
  border-radius: var(--border-radius);
  padding: 1rem;
  font-size: 0.875rem;
}

.drone-candidate {
  display: flex;
  align-items: center;
  justify-content: between;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: var(--border-radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  transition: all 0.3s ease;
}

.drone-candidate.selected {
  border-color: hsl(var(--primary-color));
  background: hsl(var(--primary-color) / 0.1);
  transform: scale(1.02);
}

.drone-candidate.rejected {
  opacity: 0.5;
  background: hsl(var(--danger-color) / 0.1);
}

.route-step {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: var(--border-radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  transition: all 0.3s ease;
}

.route-step.current {
  border-color: hsl(var(--success-color));
  background: hsl(var(--success-color) / 0.1);
  transform: scale(1.02);
}

.route-step.completed {
  opacity: 0.7;
  background: hsl(var(--success-color) / 0.05);
}

.algorithm-step {
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-left: 3px solid hsl(var(--border));
  background: hsl(var(--surface));
  transition: all 0.3s ease;
}

.algorithm-step.active {
  border-left-color: hsl(var(--primary-color));
  background: hsl(var(--primary-color) / 0.05);
}

.algorithm-step.completed {
  border-left-color: hsl(var(--success-color));
  background: hsl(var(--success-color) / 0.05);
}

/* Progress bar */
.progress {
  height: 0.75rem;
  border-radius: var(--border-radius);
  background-color: hsl(var(--surface-variant));
}

.progress-bar {
  background: linear-gradient(90deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
  border-radius: var(--border-radius);
  transition: width 0.6s ease;
}

/* Loading spinner */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 0.25rem solid hsl(var(--border));
  border-top: 0.25rem solid hsl(var(--primary-color));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Hero section */
.hero {
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Feature cards */
.feature-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  border: none;
  background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--surface-variant)));
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

/* Product selection */
.product-item {
  background-color: hsl(var(--surface));
  border: 2px solid hsl(var(--border));
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.product-item:hover {
  border-color: hsl(var(--primary-color));
  box-shadow: var(--shadow-md);
}

.product-item.selected {
  border-color: hsl(var(--primary-color));
  background-color: hsl(var(--primary-color) / 0.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .map-container {
    height: 300px;
  }
  
  .map-container.large {
    height: 400px;
  }
}

/* Utility classes */
.text-primary {
  color: hsl(var(--primary-color)) !important;
}

.text-secondary {
  color: hsl(var(--text-secondary)) !important;
}

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

.bg-primary {
  background-color: hsl(var(--primary-color)) !important;
}

.bg-surface {
  background-color: hsl(var(--surface)) !important;
}

.border-primary {
  border-color: hsl(var(--primary-color)) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.transition {
  transition: var(--transition);
}

/* Ultimate overrides for Dark Mode Text, Table & Badge Visibility */
[data-theme="dark"] .table th,
[data-theme="dark"] .table td,
[data-theme="dark"] .table > :not(caption) > * > *,
[data-theme="dark"] .table span:not(.badge):not(.order-status),
[data-theme="dark"] .table small:not(.text-muted),
[data-theme="dark"] .table div:not(.text-muted) {
  color: hsl(var(--text-primary)) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .table .text-muted,
[data-theme="dark"] .table .text-muted * {
  color: hsl(210 8% 75%) !important;
}

[data-theme="dark"] .order-status.pending {
  background-color: hsl(var(--warning-color) / 0.15) !important;
  color: hsl(35 100% 75%) !important;
}

[data-theme="dark"] .order-status.confirmed {
  background-color: hsl(var(--info-color) / 0.15) !important;
  color: hsl(195 100% 75%) !important;
}

[data-theme="dark"] .order-status.in_transit {
  background-color: hsl(var(--primary-color) / 0.15) !important;
  color: hsl(210 100% 75%) !important;
}

[data-theme="dark"] .order-status.delivered {
  background-color: hsl(var(--success-color) / 0.15) !important;
  color: hsl(120 100% 70%) !important;
}

[data-theme="dark"] .order-status.cancelled {
  background-color: hsl(var(--danger-color) / 0.15) !important;
  color: hsl(0 100% 75%) !important;
}
