body {
  background: #fff;
  color: #23234b;
  min-height: 100vh;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -80%;
  width: 80%;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  transition: all 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-sidebar.active {
  left: 0;
}

/* Mobile Sidebar Header */
.mobile-sidebar-header {
  background: #1e2a4a;
  color: #fff;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.mobile-sidebar-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.mobile-sidebar-brand img {
  height: 3rem;
  width: auto;
  margin-right: 0.5rem;
}

.mobile-sidebar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Mobile Sidebar Navigation */
.mobile-sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.mobile-sidebar-nav-item {
  display: block;
  padding: 1rem 1.5rem;
  color: #23234b;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-sidebar-nav-item:hover {
  background: rgba(30, 42, 74, 0.1);
  border-left-color: #1e2a4a;
  color: #1e2a4a;
}

.mobile-sidebar-nav-item.active {
  background: rgba(30, 42, 74, 0.1);
  border-left-color: #1e2a4a;
  color: #1e2a4a;
}

.mobile-sidebar-nav-item i {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Custom scrollbar for mobile sidebar */
.mobile-sidebar::-webkit-scrollbar {
  width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* User Info in Mobile Sidebar */
.mobile-sidebar-user {
  padding: 1.5rem 1.5rem 5.5rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.mobile-sidebar-user-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.mobile-sidebar-user-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #1e2a4a 0%, #3730a3 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 1rem;
  box-shadow: 0 4px 12px rgba(30, 42, 74, 0.3);
}

.mobile-sidebar-user-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #23234b;
}

.mobile-sidebar-user-role {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Mobile Theme Toggle Button - Light Theme */
#mobile-theme-toggle {
  background: linear-gradient(135deg, #1e2a4a 0%, #3730a3 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

#mobile-theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 42, 74, 0.3);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Responsive breakpoints - now based on content overflow rather than fixed screen sizes */
@media (max-width: 1750px) {
  .mobile-sidebar {
    display: flex;
  }
  
  .mobile-sidebar-overlay {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .navbar-nav {
    display: none !important;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .navbar-brand img {
    height: 3.5rem !important;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .stat-card, .restaurant-card, .menu-item-card {
    margin-bottom: 1.5rem;
  }
  
  .stat-icon, .restaurant-icon, .menu-item-icon {
    font-size: 2rem;
  }
  
  .stat-number, .restaurant-name, .menu-item-name {
    font-size: 1.2rem;
  }
  
  .table-clean th, .table-clean td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-brand img {
    height: 2.5rem !important;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
  }
  
  .stat-card, .restaurant-card, .menu-item-card {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
  }
  
  .stat-icon, .restaurant-icon, .menu-item-icon {
    font-size: 1.5rem;
  }
  
  .stat-number, .restaurant-name, .menu-item-name {
    font-size: 1rem;
  }
  
  .table-clean th, .table-clean td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
  
  .table-responsive {
    font-size: 0.8rem;
  }
  
  .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
  
  h1, h2, h3, h4, h5, h6, .card-title {
    font-size: 0.9em;
  }
  
  .form-control, .form-select {
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 0.9rem !important;
  }
  
  .navbar-brand img {
    height: 2rem !important;
  }
  
  .container {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  .card {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
  }
  
  .stat-card, .restaurant-card, .menu-item-card {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
  }
  
  .stat-icon, .restaurant-icon, .menu-item-icon {
    font-size: 1.25rem;
  }
  
  .stat-number, .restaurant-name, .menu-item-name {
    font-size: 0.9rem;
  }
  
  .table-clean th, .table-clean td {
    padding: 0.4rem 0.2rem;
    font-size: 0.75rem;
  }
  
  .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .nav-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }
  
  h1, h2, h3, h4, h5, h6, .card-title {
    font-size: 0.85em;
  }
  
  .form-control, .form-select {
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }
}

.table-clean {
width: 100%;
border-collapse: collapse;
table-layout: auto;
}


.bg-primary-custom {
  background: #1e2a4a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #fff !important;
}

.navbar-brand {
  font-size: 2rem !important;
  padding-left: 1rem;
  padding-right: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
  font-size: 1.5rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-nav {
  margin-left: 0 !important;
}

.navbar .navbar-nav {
  flex-direction: row;
}

.navbar .nav-item {
  margin-right: 1rem;
}

.nav-link.active, .nav-link:focus, .nav-link:hover {
  color: #000000 !important;
  background-color: #ffffff !important;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(124, 58, 237, 0.10);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary, .btn-success, .btn-danger, .btn-secondary, .btn-warning {
  background: #1e3a8a !important;
  color: #fff !important;
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary:hover, .btn-secondary:hover {
  background: #2e58cb !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
  transform: translateY(-2px);
}

.btn-success:hover {
  background: #0e4a2e !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 43, 79, 0.3);
}

.btn-danger:hover {
  background: #9c232f !important; /* a darker shade of english-violet */
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 43, 79, 0.3);
}

.btn-warning {
  background: #ffc107 !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
}

.btn-warning:hover {
  background: #b68a06 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 43, 79, 0.3);
}

.btn-danger {
  background: #dc3545 !important;
  color: #fff !important;
  border: none !important;
}

.btn-info {
  background: #b22b38 !important;
  color: #fff !important;
  border: none !important;
}

.btn-success {
  background: #198754 !important;
  color: #fff !important;
  border: none !important;
}

.card {
  background: #23234b !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card label, .card .form-label, .card input, .card select, .card textarea {
  color: #fff !important;
}

.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6, .card-title {
  color: #16213e !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: none;
}

.alert {
  border-radius: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: none;
  backdrop-filter: blur(10px);
}

footer {
  background: #1e2a4a;
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.table-clean {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #f5f5f5;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  margin-bottom: 2rem;
}
.table-clean th {
  padding: 1rem 1.5rem;
  border: none;
  color: #ffffff;
  font-size: 1.08rem;
  vertical-align: middle;
  background: #23234b;
}
.table-clean td {
  padding: 1rem 1.5rem;
  border: none;
  color: #23234b;
  font-size: 1.08rem;
  vertical-align: middle;
  background: #f5f5f5;
}
.table-clean th {
  background: #23234b;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e7eb;
}
.table-clean tbody tr {
  background: #f5f5f5;
  transition: none !important;
}
.table-clean tbody tr:nth-child(even) {
  background: #f5f5f5;
}
.table-clean tbody tr:hover {
  background: #e5e7eb;
}
.table-clean td .btn {
  margin-right: 0.25rem;
}

.table-dark, .table-dark th, .table-dark td {
  border: none !important;
}

.form-control, .form-select {
  background: #23234b;
  color: #fff !important;
  border: 2px solid rgba(30, 58, 138, 0.3);
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus, .form-select:focus {
  background: #23234b;
  color: #fff !important;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.10), inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* Placeholder text styling */
.form-control::placeholder, .form-select::placeholder {
  color: #ffffff !important;
  opacity: 0.7;
}

.form-control::-webkit-input-placeholder, .form-select::-webkit-input-placeholder {
  color: #ffffff !important;
  opacity: 0.7;
}

.form-control::-moz-placeholder, .form-select::-moz-placeholder {
  color: #ffffff !important;
  opacity: 0.7;
}

.form-control:-ms-input-placeholder, .form-select:-ms-input-placeholder {
  color: #ffffff !important;
  opacity: 0.7;
}

.form-control:-moz-placeholder, .form-select:-moz-placeholder {
  color: #ffffff !important;
  opacity: 0.7;
}

/* Enhanced navbar styling */
.navbar {
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced button styling */
.btn-outline-light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.navbar, .navbar-brand, .navbar-nav, .nav-link {
  transition: none !important;
}

.bg-primary-custom, .navbar, .navbar * {
  color: #fff !important;
}

.card, .card *, .card h1, .card h2, .card h3, .card h4, .card h5, .card h6, .card p, .card span, .card strong {
  color: #fff !important;
}

footer, footer *, .footer {
  color: #fff !important;
}

.text-white {
  color: #fff !important;
}

.desc-highlight {
  display: inline-block;
  font-size: 1.12rem;
  font-weight: 700;
  background: #dddcdc;
  color: #23234b;
  padding: 0.35em 0.75em;
  border-radius: 0.5em;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 4px rgba(30,41,59,0.06);
  margin: 0.1em 0;
  word-break: break-word;
}

/* Statistics Cards */
.stat-card {
  background: linear-gradient(135deg, #23234b 0%, #1e3a8a 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 200px;
  display: flex;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%) !important;
}

.stat-icon {
  font-size: 3rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

/* Quick Actions Section */
.card .card-title {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

/* Admin Dashboard Welcome */
.display-4 {
  color: #23234b !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lead {
  color: #23234b !important;
  font-weight: 500;
}

/* Restaurant Cards */
.restaurant-card {
  background: linear-gradient(135deg, #1d1d44 0%, #182e69 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 280px;
  display: flex;
  align-items: center;
}

.restaurant-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #142555 0%, #241f6b 100%) !important;
}

.restaurant-icon {
  font-size: 3.5rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.restaurant-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.restaurant-actions .btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Empty State */
.empty-icon {
  font-size: 4rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}

/* Menu Item Cards */
.menu-item-card {
  background: linear-gradient(135deg, #23234b 0%, #1e3a8a 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 200px;
  display: flex;
  align-items: center;
}

.menu-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%) !important;
}

.menu-item-icon {
  font-size: 2.5rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.menu-item-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-item-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 1rem;
}

.quantity-controls {
  width: 100%;
}

.quantity-controls .input-group {
  max-width: 150px;
  margin: 0 auto;
}

.quantity-controls .form-control {
  text-align: center;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}

.quantity-controls .btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-controls .btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.05);
}

/* Cart Summary */
#cartSection .card {
  background: linear-gradient(135deg, #23234b 0%, #1e3a8a 100%) !important;
}

#cartSection h5 {
  color: #fff !important;
  font-weight: 700;
}
/* Actions Description */
.text-muted {
  color: #23234b!important;
}




/* === Table Styles === */
.table-wrapper {
display: block;
margin-bottom: 2rem;
border-radius: 0.5rem;
}

.table-wrapper table {
width: 100%;
border-collapse: collapse;
table-layout: auto;
}

/* === Table Scrolling for Small Devices === */
@media (max-width: 1750px) {
  .table-scroll {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .table-scroll table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
  }
  
  .table-scroll::-webkit-scrollbar {
    height: 8px;
  }
  
  .table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  .table-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }
  
  .table-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
}
