:root {
  --primary-color: #4e73df;
  --secondary-color: #858796;
  --success-color: #1cc88a;
  --info-color: #36b9cc;
  --warning-color: #f6c23e;
  --danger-color: #e74a3b;
  --light-color: #f8f9fc;
  --dark-color: #5a5c69;
  --sidebar-width: 250px;
  --sidebar-bg: #4e73df;
  --sidebar-text: rgba(255, 255, 255, 0.8);
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* Sidebar */
#wrapper {
  display: flex;
}

#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -15rem;
  transition: margin 0.25s ease-out;
  background-color: var(--sidebar-bg);
  background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  color: white;
}

#sidebar-wrapper .sidebar-heading {
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#sidebar-wrapper .list-group {
  width: 15rem;
}

.list-group-item-action {
  background-color: transparent;
  color: var(--sidebar-text);
  border: none;
  padding: 1rem 1.25rem;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.list-group-item-action.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

#page-content-wrapper {
  min-width: 100vw;
}

body.sb-sidenav-toggled #sidebar-wrapper {
  margin-left: 0;
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

  body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: -15rem;
  }
}

/* Navbar */
.navbar {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
  border-radius: 0.35rem;
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
  font-weight: bold;
  color: var(--primary-color);
}

/* Helpers */
.text-gray-800 {
  color: #5a5c69 !important;
}
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem 0 rgba(58, 59, 69, 0.2) !important;
}

/* ============================================
   CAR WASH THEME STYLES
   ============================================ */

/* Car Wash Color Variables */
:root {
  --carwash-blue: #0d6efd;
  --carwash-cyan: #17a2b8;
  --carwash-light-blue: #e7f3ff;
  --carwash-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --carwash-gradient-blue: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  --carwash-gradient-cyan: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

/* Dashboard Cards */
.dashboard-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(58, 59, 69, 0.25) !important;
  border-left-color: var(--carwash-blue);
}

.dashboard-card .card-body {
  padding: 1.5rem;
}

/* Stat Icons */
.stat-icon {
  font-size: 2.5rem;
  opacity: 0.3;
}

.stat-icon i {
  display: block;
}

/* Text Utilities */
.text-xs {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

/* Car Wash Header Gradient */
.carwash-header {
  background: var(--carwash-gradient-blue);
  border: none;
  color: white !important;
}

.carwash-header h5,
.carwash-header h6 {
  color: white !important;
}

/* Order Card Mobile */
.order-card-mobile {
  border-left: 4px solid var(--carwash-blue);
  transition: all 0.2s ease;
}

.order-card-mobile:hover {
  box-shadow: 0 0.25rem 1rem rgba(58, 59, 69, 0.2) !important;
  transform: translateX(5px);
}

/* Table Enhancements */
.table-hover tbody tr {
  transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(78, 115, 223, 0.05);
  transform: scale(1.01);
  box-shadow: 0 0.125rem 0.5rem rgba(58, 59, 69, 0.1);
}

/* Detail Items (Edit Page) */
.detail-item {
  padding: 1rem;
  background: #f8f9fc;
  border-radius: 0.5rem;
  border-left: 3px solid var(--carwash-blue);
  transition: all 0.2s ease;
}

.detail-item:hover {
  background: #e7f3ff;
  border-left-color: var(--carwash-cyan);
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.detail-subvalue {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Button Enhancements */
.btn {
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--carwash-gradient-blue);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #224abe 0%, #4e73df 100%);
}

/* Badge Enhancements */
.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .dashboard-card {
    margin-bottom: 1rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .order-card-mobile {
    border-left-width: 3px;
  }

  .detail-item {
    padding: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .dashboard-card .card-body {
    padding: 1.25rem;
  }

  .stat-icon {
    font-size: 2.25rem;
  }
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.4s ease-out;
}

/* Empty State */
.bi-inbox {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

