body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f7f3ee;
  color: #3f2a1c;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */
.login-container {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.login-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f7f3ee 0%, #e8ddd4 25%, #d4c5b8 50%, #c4b5a6 75%, #b8a99a 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  z-index: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(75, 44, 32, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(75, 44, 32, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(75, 44, 32, 0.04) 0%, transparent 50%);
  opacity: 0.8;
}

.login-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  padding: 3rem 2.5rem;
  animation: slideUp 0.6s ease-out;
}

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

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #4b2c20 0%, #6b4423 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(75, 44, 32, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(75, 44, 32, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(75, 44, 32, 0.5);
  }
}

.login-logo i {
  font-size: 2.5rem;
  color: white;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: #4b2c20;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.login-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

.login-alert {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.login-form {
  margin-bottom: 1.5rem;
}

.login-form-group {
  margin-bottom: 1.5rem;
}

.login-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.login-label i {
  color: #8b6f47;
  font-size: 0.9rem;
}

.login-input-wrapper {
  position: relative;
}

.login-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1e293b;
  transition: all 0.3s ease;
  outline: none;
}

.login-input:focus {
  border-color: #8b6f47;
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
  background: #fafafa;
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.login-input:focus + .login-input-icon,
.login-input:not(:placeholder-shown) + .login-input-icon {
  color: #8b6f47;
}

.login-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.login-button {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #4b2c20 0%, #6b4423 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(75, 44, 32, 0.3);
  margin-top: 0.5rem;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75, 44, 32, 0.4);
  background: linear-gradient(135deg, #6b4423 0%, #4b2c20 100%);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.login-footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-footer-text i {
  color: #10b981;
  font-size: 1rem;
}

/* Dark mode support for login */
@media (prefers-color-scheme: dark) {
  .login-card {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
  
  .login-title {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .login-subtitle {
    color: #94a3b8;
  }
  
  .login-label {
    color: #e2e8f0;
  }
  
  .login-input {
    background: rgba(15, 23, 42, 0.5);
    border-color: #334155;
    color: #e2e8f0;
  }
  
  .login-input:focus {
    background: rgba(15, 23, 42, 0.7);
  }
  
  .login-footer {
    border-top-color: #334155;
  }
  
  .login-footer-text {
    color: #94a3b8;
  }
}

/* Responsive */
@media (max-width: 576px) {
  .login-container {
    padding: 1rem;
  }
  
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }
  
  .login-logo {
    width: 70px;
    height: 70px;
  }
  
  .login-logo i {
    font-size: 2rem;
  }
  
  .login-title {
    font-size: 1.75rem;
  }
}

.app-sidebar {
  min-height: 100vh;
  background-color: #4b2c20;
  color: #fdf5ec;
  padding-top: 1.25rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.app-sidebar .nav-link {
  color: #f9e6d2;
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-sidebar .nav-link i {
  font-size: 1rem;
}

.app-sidebar .nav-link.active,
.app-sidebar .nav-link:hover {
  background-color: #f9f0e5;
  color: #4b2c20;
}

.app-sidebar .small {
  color: #f0d6b8;
}

.app-content {
  min-height: 100vh;
  background-color: #f7f3ee;
}

.app-content > .row > main {
  max-width: 1360px;
  margin-inline: auto;
}

.topbar {
  background-color: #fdf8f2;
  border-radius: 0 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-search {
  max-width: 480px;
  width: 100%;
}

.topbar-search input {
  border-radius: 999px;
}

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

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: #f1e4d6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b2c20;
  font-weight: 600;
}

.card,
.card-metric {
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #fdf8f2;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.card-metric .small {
  color: #8c7a6a;
}

.card-metric .h4 {
  letter-spacing: 0.03em;
}

/* Dashboard Specific Styles */
.dashboard-header {
  margin-bottom: 1.5rem;
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3f2a1c;
  margin: 0;
}

.dashboard-subtitle {
  color: #8c7a6a;
  font-size: 0.875rem;
  margin: 0;
}

.dashboard-filter-card {
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  border: 1px solid rgba(139, 90, 43, 0.1);
}

/* Stat Cards */
.card-stat {
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #fdf8f2 100%);
}

.card-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5a2b, #c29f79);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-stat:hover::before {
  opacity: 1;
}

.card-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.card-stat:hover .card-stat-icon {
  transform: scale(1.1);
}

/* Orders page stat cards - horizontal layout */
#orders-stats-cards .card-stat {
  padding: 1rem;
  height: 100%;
}

#orders-stats-cards .card-stat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  font-size: 1.25rem;
}

#orders-stats-cards .card-stat .card-body {
  padding: 0.75rem !important;
}

#orders-stats-cards .card-stat .h5 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #3f2a1c;
}

.bg-primary-light {
  background-color: rgba(139, 90, 43, 0.1);
}

.bg-success-light {
  background-color: rgba(22, 163, 74, 0.1);
}

.bg-info-light {
  background-color: rgba(14, 165, 233, 0.1);
}

.bg-danger-light {
  background-color: rgba(239, 68, 68, 0.1);
}

.card-stat-content {
  flex: 1;
}

.card-stat-label {
  font-size: 0.75rem;
  color: #8c7a6a;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.card-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3f2a1c;
  line-height: 1.2;
}

/* Chart Cards */
.dashboard-chart-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-chart-card .card-header {
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  border-bottom: 2px solid rgba(139, 90, 43, 0.1);
}

.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.1), rgba(139, 90, 43, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5a2b;
  font-size: 1.25rem;
}

.filter-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5a3c 0%, #d4a574 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(139, 90, 43, 0.2);
}

.card-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3f2a1c;
  margin: 0;
}

/* Table Cards */
.dashboard-table-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-table-card .card-header {
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  border-bottom: 2px solid rgba(139, 90, 43, 0.1);
}

.dashboard-table-card .table thead th {
  background-color: #f9f0e5;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #3f2a1c;
  padding: 0.75rem 1rem;
}

.dashboard-table-card .table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.dashboard-table-card .table tbody tr:hover {
  background-color: #fdf8f2;
}

/* Empty State */
.empty-state {
  padding: 2rem 1rem;
}

/* Quick Filter Buttons */
.quick-filter-btn {
  transition: all 0.2s ease;
}

.quick-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 90, 43, 0.2);
}

.quick-filter-btn.active {
  background-color: #8b5a2b;
  border-color: #8b5a2b;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(139, 90, 43, 0.3);
}

/* Chart 3D Effects */
.dashboard-chart-card canvas {
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.15));
  transition: filter 0.3s ease;
}

.dashboard-chart-card:hover canvas {
  filter: drop-shadow(6px 6px 12px rgba(0, 0, 0, 0.2));
}

/* Menu Page Styles */
.menu-header {
  margin-bottom: 1.5rem;
}

.menu-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3f2a1c;
  margin: 0;
}

.menu-subtitle {
  color: #8c7a6a;
  font-size: 0.875rem;
  margin: 0;
}

.menu-add-btn {
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(139, 90, 43, 0.2);
  transition: all 0.2s ease;
}

.menu-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -1px rgba(139, 90, 43, 0.3);
}

.menu-filter-card {
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  border: 1px solid rgba(139, 90, 43, 0.1);
}

.menu-search-input {
  padding-left: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9375rem;
}

.menu-search-input:focus {
  border-color: #8b5a2b;
  box-shadow: 0 0 0 0.15rem rgba(139, 90, 43, 0.15);
}

.menu-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8c7a6a;
  font-size: 1.125rem;
  pointer-events: none;
}

.menu-filter-btn {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-filter-btn.active {
  background-color: #8b5a2b;
  border-color: #8b5a2b;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(139, 90, 43, 0.3);
}

.menu-table-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.menu-table-card .card-header {
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  border-bottom: 2px solid rgba(139, 90, 43, 0.1);
}

.menu-table thead th {
  background-color: #f9f0e5;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #3f2a1c;
  padding: 1rem;
}

.menu-table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

.menu-table tbody tr {
  transition: all 0.2s ease;
}

.menu-table tbody tr:hover {
  background-color: #fdf8f2;
  transform: scale(1.01);
}

.menu-product-image-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.06);
  background: #f9f0e5;
}

.menu-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: transform 0.3s ease;
}

.menu-product-image:hover {
  transform: scale(1.1);
}

/* Menu Modal Styles */
.menu-modal-content {
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.menu-modal-header {
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  border-bottom: 2px solid rgba(139, 90, 43, 0.1);
  padding: 1.25rem 1.5rem;
}

.menu-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.1), rgba(139, 90, 43, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5a2b;
  font-size: 1.25rem;
}

.menu-modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 1.5rem;
  background-color: #fdf8f2;
}

.menu-image-preview-wrapper {
  position: relative;
  width: 100%;
  min-height: 250px;
  border-radius: 0.75rem;
  border: 2px dashed rgba(139, 90, 43, 0.2);
  background: linear-gradient(135deg, #f9f0e5 0%, #ffffff 100%);
  overflow: hidden;
}

.menu-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 0.75rem;
}

.menu-image-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #8c7a6a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-title,
  .menu-title {
    font-size: 1.5rem;
  }
  
  .card-stat-value {
    font-size: 1.25rem;
  }
  
  .card-header-icon,
  .menu-modal-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .quick-filter-btn,
  .menu-filter-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .menu-product-image-wrapper {
    width: 60px;
    height: 60px;
  }
}

.btn-primary {
  border-radius: 999px;
  padding-inline: 1.25rem;
  background-color: #8b5a2b;
  border-color: #8b5a2b;
}

.btn-primary:hover {
  background-color: #754721;
  border-color: #754721;
}

.btn-outline-primary {
  border-radius: 999px;
  border-color: #d1b89a;
  color: #8b5a2b;
}

.btn-outline-primary:hover {
  background-color: #f9f0e5;
  border-color: #c29f79;
  color: #61371a;
}

.btn-outline-danger {
  border-radius: 999px;
}

.table {
  color: #3f2a1c;
}

.table thead th {
  background-color: #f9f0e5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table tbody tr:hover {
  background-color: #fdf8f2;
}

.form-control,
.form-select {
  border-radius: 0.75rem;
  border-color: rgba(0, 0, 0, 0.06);
}

.form-control:focus,
.form-select:focus {
  border-color: #c29f79;
  box-shadow: 0 0 0 0.15rem rgba(194, 159, 121, 0.35);
}

.form-control::placeholder {
  color: #b3a79c;
}

.badge,
.status-badge {
  font-size: 0.75rem;
  border-radius: 999px;
}

.status-badge.pending {
  background-color: #fff4d2;
  color: #a16207;
}

.status-badge.making {
  background-color: #e0f2fe;
  color: #1e40af;
}

.status-badge.ready {
  background-color: #dcfce7;
  color: #166534;
}

.status-badge.paid {
  background-color: #e0f2fe;
  color: #075985;
}

.status-badge.done {
  background-color: #e5e7eb;
  color: #374151;
}

.modal-content {
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.text-muted {
  color: #9b8c7f !important;
}

code {
  color: #8b5a2b;
  background-color: #fdf0e0;
  border-radius: 0.35rem;
  padding: 0.1rem 0.35rem;
}

/* POS-style product card (nếu sau này dùng) */
.pos-product-card {
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #fbf7f2;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.pos-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  border-color: #e1c8a8;
}

/* ============================================
   POS LAYOUT STYLES - Professional Design
   ============================================ */

/* POS Container */
.pos-layout-container {
  background: linear-gradient(135deg, #f7f3ee 0%, #fdf8f2 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(139, 90, 43, 0.1);
}

/* Category Sidebar */
.pos-category-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f2 100%);
  border-right: 2px solid rgba(139, 90, 43, 0.1);
  padding: 1.5rem 1rem;
  height: 100%;
  overflow-y: auto;
}

.pos-category-sidebar::-webkit-scrollbar {
  width: 6px;
}

.pos-category-sidebar::-webkit-scrollbar-thumb {
  background: rgba(139, 90, 43, 0.3);
  border-radius: 3px;
}

.pos-category-sidebar::-webkit-scrollbar-track {
  background: rgba(139, 90, 43, 0.05);
}

.pos-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(139, 90, 43, 0.1);
}

.pos-category-header h6 {
  font-size: 1rem;
  font-weight: 700;
  color: #3f2a1c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pos-category-header h6::before {
  content: '📂';
  font-size: 1.25rem;
}

.pos-category-btn {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid rgba(139, 90, 43, 0.2);
  background: #ffffff;
  color: #3f2a1c;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.pos-category-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #8b5a3c 0%, #d4a574 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.pos-category-btn:hover {
  transform: translateX(4px);
  border-color: rgba(139, 90, 43, 0.4);
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.15);
}

.pos-category-btn.active {
  background: linear-gradient(135deg, #8b5a3c 0%, #c29f79 100%);
  color: #ffffff;
  border-color: #8b5a3c;
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.3);
  transform: translateX(4px);
}

.pos-category-btn.active::before {
  transform: scaleY(1);
}

/* Products Grid Section */
.pos-products-section {
  background: #ffffff;
  padding: 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.pos-products-section::-webkit-scrollbar {
  width: 8px;
}

.pos-products-section::-webkit-scrollbar-thumb {
  background: rgba(139, 90, 43, 0.3);
  border-radius: 4px;
}

.pos-products-section::-webkit-scrollbar-track {
  background: rgba(139, 90, 43, 0.05);
}

.pos-products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(139, 90, 43, 0.1);
}

.pos-products-header h6 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #3f2a1c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pos-products-header h6::before {
  content: '☕';
  font-size: 1.5rem;
}

.pos-search-input {
  max-width: 300px;
  border-radius: 2rem;
  border: 2px solid rgba(139, 90, 43, 0.2);
  padding: 0.625rem 1.25rem 0.625rem 2.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: #ffffff;
}

.pos-search-input:focus {
  border-color: #8b5a3c;
  box-shadow: 0 0 0 0.2rem rgba(139, 90, 43, 0.15);
  outline: none;
}

.pos-search-input::placeholder {
  color: #8c7a6a;
}

/* Product Cards */
.pos-product-card {
  margin-bottom: 1rem;
}

.pos-product-card .card {
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.pos-product-card .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(139, 90, 43, 0.3);
}

.pos-product-card .card-img-wrapper {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pos-product-card .card-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
  pointer-events: none;
}

.pos-product-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pos-product-card .card:hover .card-img-top {
  transform: scale(1.1);
}

.pos-product-card .card-body {
  padding: 1rem;
}

.pos-product-card .card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #3f2a1c;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.pos-product-card .card-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: #8b5a3c;
  margin-bottom: 0.75rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pos-product-card .pos-add-product {
  width: 100%;
  border-radius: 0.625rem;
  padding: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #8b5a3c 0%, #c29f79 100%);
  border: none;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.2);
}

.pos-product-card .pos-add-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.4);
  background: linear-gradient(135deg, #754721 0%, #8b5a3c 100%);
}

.pos-product-card .pos-add-product:active {
  transform: translateY(0);
}

/* Cart Sidebar */
.pos-cart-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f2 100%);
  border-left: 2px solid rgba(139, 90, 43, 0.1);
  padding: 1.5rem;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pos-cart-sidebar::-webkit-scrollbar {
  width: 6px;
}

.pos-cart-sidebar::-webkit-scrollbar-thumb {
  background: rgba(139, 90, 43, 0.3);
  border-radius: 3px;
}

.pos-cart-sidebar::-webkit-scrollbar-track {
  background: rgba(139, 90, 43, 0.05);
}

.pos-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(139, 90, 43, 0.1);
}

.pos-cart-header h6 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #3f2a1c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pos-cart-header h6::before {
  content: '🧾';
  font-size: 1.5rem;
}

.pos-cart-clear-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(220, 53, 69, 0.3);
  background: #ffffff;
  color: #dc3545;
  transition: all 0.3s ease;
  padding: 0;
}

.pos-cart-clear-btn:hover {
  background: #dc3545;
  color: #ffffff;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Cart Form */
.pos-cart-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pos-cart-form .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3f2a1c;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pos-cart-form .form-select,
.pos-cart-form .form-control {
  border-radius: 0.625rem;
  border: 2px solid rgba(139, 90, 43, 0.2);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.pos-cart-form .form-select:focus,
.pos-cart-form .form-control:focus {
  border-color: #8b5a3c;
  box-shadow: 0 0 0 0.2rem rgba(139, 90, 43, 0.15);
  outline: none;
}

.pos-cart-divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 2px dashed rgba(139, 90, 43, 0.2);
}

/* Cart Items */
#pos-cart-items {
  flex: 1;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

#pos-cart-items::-webkit-scrollbar {
  width: 6px;
}

#pos-cart-items::-webkit-scrollbar-thumb {
  background: rgba(139, 90, 43, 0.3);
  border-radius: 3px;
}

#pos-cart-items::-webkit-scrollbar-track {
  background: rgba(139, 90, 43, 0.05);
}

.pos-cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #8c7a6a;
}

.pos-cart-empty i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}

.pos-cart-empty .small {
  font-size: 0.875rem;
}

.pos-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #fdf8f2 100%);
  border-radius: 0.75rem;
  border: 1px solid rgba(139, 90, 43, 0.1);
  transition: all 0.3s ease;
}

.pos-cart-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(139, 90, 43, 0.2);
  transform: translateX(4px);
}

.pos-cart-item-info {
  flex: 1;
  min-width: 0;
}

.pos-cart-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #3f2a1c;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.pos-cart-item-details {
  font-size: 0.8125rem;
  color: #8c7a6a;
  margin-bottom: 0.5rem;
}

.pos-cart-item-price {
  font-size: 1rem;
  font-weight: 800;
  color: #28a745;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pos-cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.pos-cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.25rem;
  border: 1px solid rgba(139, 90, 43, 0.1);
}

.pos-cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 0.375rem;
  border: none;
  background: #ffffff;
  color: #3f2a1c;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pos-cart-qty-btn:hover {
  background: #8b5a3c;
  color: #ffffff;
  transform: scale(1.1);
}

.pos-cart-qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #3f2a1c;
}

/* Cart Summary */
.pos-cart-summary {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(139, 90, 43, 0.1);
}

.pos-cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pos-cart-summary-label {
  font-size: 0.875rem;
  color: #8c7a6a;
  font-weight: 500;
}

.pos-cart-summary-value {
  font-size: 1rem;
  font-weight: 700;
  color: #3f2a1c;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pos-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.1) 0%, rgba(139, 90, 43, 0.05) 100%);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(139, 90, 43, 0.2);
}

.pos-cart-total-label {
  font-size: 1rem;
  font-weight: 700;
  color: #3f2a1c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pos-cart-total-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #8b5a3c;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Checkout Button */
#pos-checkout-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#pos-checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

#pos-checkout-btn:active:not(:disabled) {
  transform: translateY(0);
}

#pos-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #6c757d;
  box-shadow: none;
}

/* Responsive POS Layout */
@media (max-width: 991.98px) {
  .pos-layout-container .row.g-0 > [class*="col-"] {
    border: none !important;
    border-bottom: 2px solid rgba(139, 90, 43, 0.1) !important;
  }
  
  .pos-category-sidebar,
  .pos-products-section,
  .pos-cart-sidebar {
    height: auto;
    max-height: 400px;
  }
}

/* Dark mode for POS */
[data-theme="dark"] .pos-category-sidebar,
[data-theme="dark"] .pos-products-section,
[data-theme="dark"] .pos-cart-sidebar {
  background: linear-gradient(180deg, #2a2a2a 0%, #252525 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pos-product-card .card {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pos-cart-item {
  background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Menu Management Styles */
.product-toggle-active {
  width: 3rem;
  height: 1.5rem;
}

#product-image-preview {
  border-radius: 0.5rem;
  border: 1px solid #ddd;
}

#product-image-placeholder {
  padding: 2rem;
  color: #999;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    min-height: auto;
  }

  /* POS Layout responsive */
  .row.g-0 > .col-md-2,
  .row.g-0 > .col-md-7,
  .row.g-0 > .col-md-3 {
    border: none !important;
    border-bottom: 1px solid #ddd !important;
  }
}

/* ============================================
   DARK MODE STYLES
   ============================================ */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] body {
  background-color: #1a1a1a;
  color: #e5e5e5;
}

[data-theme="dark"] .app-sidebar {
  background-color: #2d1f15;
  border-right-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .app-sidebar .nav-link {
  color: #d4c4b0;
}

[data-theme="dark"] .app-sidebar .nav-link.active,
[data-theme="dark"] .app-sidebar .nav-link:hover {
  background-color: #3d2f25;
  color: #f9f0e5;
}

[data-theme="dark"] .app-sidebar .small {
  color: #b8a896;
}

[data-theme="dark"] .app-content {
  background-color: #1a1a1a;
}

[data-theme="dark"] .topbar {
  background-color: #252525;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card,
[data-theme="dark"] .card-metric {
  background-color: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-header {
  background-color: #252525;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

[data-theme="dark"] .card-metric .small {
  color: #a0a0a0;
}

[data-theme="dark"] .btn-primary {
  background-color: #6b4423;
  border-color: #6b4423;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #8b5a2b;
  border-color: #8b5a2b;
}

[data-theme="dark"] .btn-outline-primary {
  border-color: #6b4423;
  color: #d4a574;
}

[data-theme="dark"] .btn-outline-primary:hover {
  background-color: #3d2f25;
  border-color: #8b5a2b;
  color: #f9f0e5;
}

[data-theme="dark"] .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: #d4c4b0;
}

[data-theme="dark"] .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f9f0e5;
}

[data-theme="dark"] .table {
  color: #e5e5e5;
}

[data-theme="dark"] .table thead th {
  background-color: #252525;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

[data-theme="dark"] .table tbody tr:hover {
  background-color: #2f2f2f;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #2a2a2a;
  border-color: #8b5a2b;
  box-shadow: 0 0 0 0.15rem rgba(139, 90, 43, 0.35);
  color: #e5e5e5;
}

[data-theme="dark"] .form-control::placeholder {
  color: #666;
}

[data-theme="dark"] .text-muted {
  color: #888 !important;
}

[data-theme="dark"] .modal-content {
  background-color: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] code {
  color: #d4a574;
  background-color: #3a2a1a;
}

[data-theme="dark"] .pos-product-card {
  background-color: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pos-product-card:hover {
  border-color: #6b4423;
}

[data-theme="dark"] .pos-category-btn.active {
  background-color: #6b4423;
  border-color: #6b4423;
}

[data-theme="dark"] .avatar-circle {
  background-color: #3d2f25;
  color: #d4a574;
}

[data-theme="dark"] .status-badge.pending {
  background-color: #3a2f1a;
  color: #d4a574;
}

[data-theme="dark"] .status-badge.making {
  background-color: #1a2a3a;
  color: #6ba3d4;
}

[data-theme="dark"] .status-badge.ready {
  background-color: #1a3a2a;
  color: #6bd4a3;
}

[data-theme="dark"] .status-badge.paid {
  background-color: #1a2a3a;
  color: #6ba3d4;
}

[data-theme="dark"] .status-badge.done {
  background-color: #2a2a2a;
  color: #a0a0a0;
}

/* ============================================
   KITCHEN SCREEN STYLES (Nền tối, chữ lớn)
   ============================================ */
.kitchen-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1f15 100%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kitchen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.kitchen-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.kitchen-order-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.kitchen-order-time {
  font-size: 1rem;
  color: #d4c4b0;
}

.kitchen-badge-making {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.kitchen-customer {
  font-size: 1.1rem;
  color: #f9f0e5;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
}

.kitchen-items {
  margin-bottom: 1rem;
  min-height: 100px;
}

.kitchen-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  font-size: 1.1rem;
}

.kitchen-item-qty {
  font-weight: 700;
  color: #d4a574;
  margin-right: 0.75rem;
  font-size: 1.2rem;
  min-width: 3rem;
}

.kitchen-item-name {
  color: #ffffff;
  font-weight: 500;
}

.kitchen-note {
  background: rgba(255, 193, 7, 0.15);
  border-left: 4px solid #ffc107;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  color: #ffc107;
  font-size: 1rem;
}

.kitchen-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.kitchen-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4a574;
}

.btn-kitchen-done {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-kitchen-done:hover {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

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

/* Dark mode cho kitchen (nếu cần override) */
[data-theme="dark"] .kitchen-card {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0f0a 100%);
}

/* Light mode cho kitchen (nếu cần) */
[data-theme="light"] .kitchen-card {
  background: linear-gradient(135deg, #2d1f15 0%, #3d2f25 100%);
}

.kitchen-card-completed {
  opacity: 0.7;
  border-color: rgba(22, 163, 74, 0.3);
}

.kitchen-badge-completed {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* ============================================
   KITCHEN COMPLETED ORDERS STYLES
   ============================================ */

.kitchen-completed-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdf8f2 100%);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.kitchen-completed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  opacity: 0.8;
}

.kitchen-completed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.kitchen-completed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(34, 197, 94, 0.1);
}

.kitchen-completed-code {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3f2a1c;
  letter-spacing: 0.5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.kitchen-completed-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-radius: 1rem;
  color: #16a34a;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.kitchen-completed-badge i {
  font-size: 1rem;
}

.kitchen-completed-customer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3f2a1c;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.kitchen-completed-customer i {
  color: #8b5a3c;
  font-size: 1.125rem;
}

.kitchen-completed-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6c757d;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(139, 90, 43, 0.05);
  border-radius: 0.5rem;
}

.kitchen-completed-time i {
  color: #8b5a3c;
}

.kitchen-completed-items {
  margin-bottom: 1rem;
  min-height: 60px;
}

.kitchen-completed-item {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 0.5rem;
  border-left: 3px solid #8b5a3c;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.kitchen-completed-item:hover {
  background: linear-gradient(135deg, #f0f0f0 0%, #f8f9fa 100%);
  transform: translateX(4px);
}

.kitchen-completed-item:last-child {
  margin-bottom: 0;
}

.kitchen-completed-item-qty {
  font-weight: 700;
  color: #8b5a3c;
  margin-right: 0.75rem;
  font-size: 1rem;
  min-width: 2.5rem;
  text-align: center;
}

.kitchen-completed-item-name {
  color: #3f2a1c;
  font-weight: 500;
  flex: 1;
}

.kitchen-completed-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  border-left: 3px solid #ffc107;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #856404;
  margin-top: 0.75rem;
}

.kitchen-completed-note i {
  color: #ffc107;
  font-size: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* ============================================
   ORDER READY TOAST NOTIFICATIONS
   (Cho nhân viên phục vụ/thu ngân)
   ============================================ */

.order-ready-toast {
  min-width: 350px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  border: none;
  overflow: hidden;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.order-ready-toast-header {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border-bottom: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.order-ready-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.order-ready-toast-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.order-ready-toast-header .btn-close:hover {
  opacity: 1;
}

.order-ready-toast-body {
  padding: 1.25rem;
  background: #ffffff;
}

.order-ready-code {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #3f2a1c;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(34, 197, 94, 0.2);
}

.order-ready-code i {
  color: #22c55e;
  font-size: 1.25rem;
}

.order-ready-customer {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.order-ready-customer i {
  color: #8b5a3c;
}

.order-ready-message {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-radius: 0.5rem;
  border-left: 3px solid #22c55e;
  font-size: 0.875rem;
  color: #166534;
  font-weight: 500;
}

.order-ready-message i {
  font-size: 1rem;
}

/* ============================================
   NOTIFICATION PANEL STYLES
   ============================================ */

.notification-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f2 100%);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  border-left: 2px solid rgba(139, 90, 43, 0.2);
  z-index: 1060;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notification-panel.show {
  right: 0;
}

.notification-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1059;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-panel-overlay.show {
  opacity: 1;
  visibility: visible;
}

.notification-panel-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, #8b5a3c 0%, #c29f79 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.notification-panel-header h5 {
  color: #ffffff;
  font-weight: 700;
}

.notification-panel-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.notification-panel-header .btn-close:hover {
  opacity: 1;
}

@media (max-width: 576px) {
  .notification-header-actions {
    flex-wrap: wrap;
  }
  .notification-header-actions .btn {
    flex: 1 0 48%;
    font-size: 0.75rem;
  }
}

.notification-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.notification-panel-body::-webkit-scrollbar {
  width: 6px;
}

.notification-panel-body::-webkit-scrollbar-thumb {
  background: rgba(139, 90, 43, 0.3);
  border-radius: 3px;
}

.notification-panel-body::-webkit-scrollbar-track {
  background: rgba(139, 90, 43, 0.05);
}

.notification-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #8c7a6a;
}

.notification-item {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.notification-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(-4px);
  border-color: rgba(139, 90, 43, 0.2);
}

.notification-item-unread {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, #ffffff 100%);
  border-left: 4px solid #22c55e;
  font-weight: 600;
}

.notification-item-read {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-left: 4px solid rgba(0, 0, 0, 0.1);
  opacity: 0.85;
}

.notification-read-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
}

.notification-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.notification-item-code {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #3f2a1c;
  position: relative;
}

.notification-item-code i {
  color: #8b5a3c;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.notification-mark-read {
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.notification-mark-read:hover {
  color: #22c55e !important;
  transform: scale(1.2);
}

.notification-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-item-customer {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  color: #3f2a1c;
}

.notification-item-customer i {
  color: #8b5a3c;
}

.notification-item-time {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  color: #6c757d;
}

.notification-item-time i {
  color: #8b5a3c;
}

#notification-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-in 0.5s ease;
  z-index: 10;
}

/* Notification button trong sidebar */
#btn-notification-panel {
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#btn-notification-panel:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(4px);
}

#btn-notification-panel:active {
  transform: translateX(2px);
}

@keyframes bounce-in {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.order-ready-footer {
  font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .order-ready-toast {
    min-width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }
  
  .kitchen-completed-card {
    padding: 1.25rem;
  }
  
  .kitchen-completed-code {
    font-size: 1.1rem;
  }
  
  .notification-panel {
    width: 100vw;
    right: -100vw;
  }
}

/* Completed Orders Collapsible Section */
.completed-orders-collapsible {
  transition: all 0.3s ease;
  overflow: hidden;
}

#btn-toggle-completed-section {
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-toggle-completed-section:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

#completed-toggle-icon {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
}

/* Kitchen Completed Card Collapsed Header */
.kitchen-completed-card-header-collapsed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.kitchen-completed-card-header-collapsed:hover {
  background: linear-gradient(135deg, #f0f0f0 0%, #f8f9fa 100%);
  border-color: rgba(139, 90, 43, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kitchen-completed-code-collapsed {
  font-size: 1.125rem;
  font-weight: 700;
  color: #3f2a1c;
  letter-spacing: 0.5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.kitchen-completed-toggle {
  color: #8b5a3c !important;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.kitchen-completed-toggle:hover {
  background-color: rgba(139, 90, 43, 0.1);
  color: #8b5a3c !important;
  transform: scale(1.1);
}

.kitchen-completed-toggle i {
  transition: transform 0.3s ease;
}

.kitchen-completed-card-body {
  padding-top: 1rem;
  animation: slideDown 0.3s ease;
}

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

/* Dark mode for completed cards */
[data-theme="dark"] .kitchen-completed-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .kitchen-completed-customer,
[data-theme="dark"] .kitchen-completed-item {
  background: linear-gradient(135deg, #2f2f2f 0%, #2a2a2a 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .order-ready-toast-body {
  background: #2a2a2a;
  color: #e5e5e5;
}

/* ============================================
   LOGS PAGE STYLES - Professional Design
   ============================================ */

.logs-container {
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  padding: 1.5rem;
}

.logs-container::-webkit-scrollbar {
  width: 8px;
}

.logs-container::-webkit-scrollbar-thumb {
  background: rgba(139, 90, 43, 0.3);
  border-radius: 4px;
}

.logs-container::-webkit-scrollbar-track {
  background: rgba(139, 90, 43, 0.05);
}

/* Log Day Group */
.log-day-group {
  margin-bottom: 2rem;
}

.log-day-group:last-child {
  margin-bottom: 0;
}

.log-day-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #8b5a3c 0%, #c29f79 100%);
  color: #ffffff;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.2);
}

.log-day-header i {
  font-size: 1.125rem;
}

.log-day-count {
  margin-left: auto;
  font-size: 0.875rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.log-day-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Log Item */
.log-item {
  background: linear-gradient(135deg, #ffffff 0%, #fdf8f2 100%);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.log-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #8b5a3c 0%, #c29f79 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.log-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(139, 90, 43, 0.2);
}

.log-item:hover::before {
  opacity: 1;
}

.log-item-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6c757d;
  min-width: 100px;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(139, 90, 43, 0.05);
  border-radius: 0.5rem;
  font-weight: 600;
}

.log-item-time i {
  color: #8b5a3c;
}

.log-item-content {
  flex: 1;
  min-width: 0;
}

.log-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.log-item-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.log-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.log-action-icon.bg-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.log-action-icon.bg-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.log-action-icon.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.log-action-icon.bg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.log-action-icon.bg-primary {
  background: linear-gradient(135deg, #8b5a3c 0%, #c29f79 100%);
}

.log-action-icon.bg-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.log-action-info {
  flex: 1;
  min-width: 0;
}

.log-action-label {
  font-size: 1rem;
  font-weight: 700;
  color: #3f2a1c;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.log-action-module {
  font-size: 0.8125rem;
  color: #8c7a6a;
  font-weight: 500;
}

.log-item-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(139, 90, 43, 0.05);
  border-radius: 0.5rem;
}

.log-item-user i {
  color: #8b5a3c;
  font-size: 1rem;
}

.log-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.8125rem;
}

.log-detail-item {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: #ffffff;
  border-radius: 0.375rem;
  border: 1px solid rgba(139, 90, 43, 0.1);
  color: #3f2a1c;
}

.log-detail-item strong {
  color: #8b5a3c;
  margin-right: 0.5rem;
  font-weight: 600;
}

/* Responsive adjustments for logs */
@media (max-width: 768px) {
  .log-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .log-item-time {
    min-width: auto;
    width: 100%;
    justify-content: center;
  }
  
  .log-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .log-item-user {
    width: 100%;
    justify-content: center;
  }
  
  .log-action-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .logs-container {
    padding: 1rem;
  }
}

/* Dark mode for logs */
[data-theme="dark"] .log-item {
  background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .log-item-details {
  background: linear-gradient(135deg, #2f2f2f 0%, #2a2a2a 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .log-detail-item {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

/* ============================================
   CUSTOMERS PAGE STYLES
   ============================================ */

.customer-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5a3c 0%, #c29f79 100%);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.customer-avatar i {
  margin: 0;
}

/* Dark mode for customers */
[data-theme="dark"] .customer-avatar {
  background: linear-gradient(135deg, #6b4423 0%, #8b5a3c 100%);
}

/* Product Cards Grid Layout */
#products-grid {
  /* Using Bootstrap grid system */
}

.product-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.product-card-image-wrapper .spinner-border {
  z-index: 1;
}

.product-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-category-coffee {
  background: rgba(139, 90, 43, 0.9);
  color: #ffffff;
}

.product-category-tea {
  background: rgba(23, 162, 184, 0.9);
  color: #ffffff;
}

.product-category-juice {
  background: rgba(255, 193, 7, 0.9);
  color: #ffffff;
}

.product-category-smoothie {
  background: rgba(40, 167, 69, 0.9);
  color: #ffffff;
}

.product-category-default {
  background: rgba(108, 117, 125, 0.9);
  color: #ffffff;
}

.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3f2a1c;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3f2a1c;
  margin-bottom: 0.75rem;
}

.product-card-description {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.product-btn-edit,
.product-btn-delete {
  flex: 1;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.product-btn-edit {
  background: #ffffff;
  border: 1.5px solid #8b5a2b;
  color: #8b5a2b;
}

.product-btn-edit:hover {
  background: #8b5a2b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.3);
}

.product-btn-delete {
  background: #ff6b9d;
  border: 1.5px solid #ff6b9d;
  color: #ffffff;
}

.product-btn-delete:hover {
  background: #ff4d8a;
  border-color: #ff4d8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

/* Responsive adjustments for product cards */
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card-image-wrapper {
    height: 180px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Category Cards Styling */
.category-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.category-card-image-wrapper .spinner-border {
  z-index: 1;
}

.category-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.category-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3f2a1c;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.category-card-description {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card-meta {
  margin-bottom: 1rem;
}

.category-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* Category Image Upload in Modal */
.category-image-upload-wrapper {
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: #f8f9fa;
  text-align: center;
}

.category-image-placeholder {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.category-image-preview {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.category-image-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.category-upload-progress {
  margin-top: 1rem;
}

/* Responsive adjustments for category cards */
@media (max-width: 576px) {
  .category-card-image-wrapper {
    height: 180px;
  }
}

/* Order Cards Styling - Professional Design */
.order-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5a3c 0%, #d4a574 50%, #8b5a3c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.order-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(139, 90, 43, 0.2);
}

.order-card:hover::before {
  opacity: 1;
}

.order-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(139, 90, 43, 0.1);
  position: relative;
  overflow: visible;
}

.order-card-header .d-flex {
  overflow: visible;
}

.order-card-code {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3f2a1c;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.order-card-time {
  font-size: 0.8125rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.order-status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block !important;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  line-height: 1.3;
}

/* Đảm bảo select trạng thái hiển thị đầy đủ text */
.order-card-status {
  width: 100%;
}

.order-card-status .form-select-sm {
  font-size: 0.875rem !important;
  min-height: 2.5rem;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  width: 100%;
}

.order-card-status .form-select-sm option {
  white-space: normal;
  word-wrap: break-word;
  padding: 0.5rem;
  font-size: 0.875rem;
}

.order-card-body {
  padding: 1.5rem;
  flex: 1;
}

.order-card-customer {
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.order-customer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5a3c 0%, #d4a574 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.2);
}

.order-customer-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.order-customer-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3f2a1c;
}

.order-card-amount {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(40, 167, 69, 0.03) 100%);
  border-radius: 0.75rem;
  border-left: 4px solid #28a745;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.order-card-amount::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.order-amount-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.order-amount-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #28a745;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  z-index: 1;
}

.order-card-status {
  margin-top: 1rem;
}

.order-card-status .form-select {
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.order-card-status .form-select:focus {
  border-color: #8b5a3c;
  box-shadow: 0 0 0 0.2rem rgba(139, 90, 43, 0.15);
}

.order-card-footer {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.order-card-footer .btn {
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.8125rem;
}

.order-card-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Empty state */
.empty-state {
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  opacity: 0.3;
}

/* Responsive adjustments for order cards */
@media (max-width: 576px) {
  .order-card-header,
  .order-card-body,
  .order-card-footer {
    padding: 1rem;
  }
  
  .order-card-code {
    font-size: 1.1rem;
  }
  
  .order-status-badge {
    font-size: 0.6rem;
    padding: 0.35rem 0.6rem;
  }
  
  .order-amount-value {
    font-size: 1.25rem;
  }
}

/* ============================================
   REPORTS PAGE STYLES - Professional Design
   ============================================ */

/* Report Cards */
.report-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.report-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.report-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.report-card:hover::before {
  opacity: 1;
}

.report-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.report-card:hover .report-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.report-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.report-card-label {
  font-size: 0.8125rem;
  color: #8c7a6a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.report-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.report-card-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6c757d;
  margin-top: auto;
}

.report-card-trend i {
  font-size: 1rem;
}

/* Revenue Card */
.report-card-revenue {
  border-left: 4px solid #22c55e;
}

.report-card-revenue .report-card-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  color: #22c55e;
}

.report-card-revenue .report-card-value {
  color: #22c55e;
}

.report-card-revenue::before {
  background: linear-gradient(90deg, transparent 0%, #22c55e 50%, transparent 100%);
}

/* Expense Card */
.report-card-expense {
  border-left: 4px solid #f87171;
}

.report-card-expense .report-card-icon {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(248, 113, 113, 0.05) 100%);
  color: #f87171;
}

.report-card-expense .report-card-value {
  color: #f87171;
}

.report-card-expense::before {
  background: linear-gradient(90deg, transparent 0%, #f87171 50%, transparent 100%);
}

/* Profit Card */
.report-card-profit {
  border-left: 4px solid #3b82f6;
}

.report-card-profit .report-card-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  color: #3b82f6;
}

.report-card-profit .report-card-value {
  color: #3b82f6;
}

.report-card-profit::before {
  background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
}

/* Loss Card */
.report-card-loss {
  border-left: 4px solid #ef4444;
}

.report-card-loss .report-card-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  color: #ef4444;
}

.report-card-loss .report-card-value {
  color: #ef4444;
}

.report-card-loss::before {
  background: linear-gradient(90deg, transparent 0%, #ef4444 50%, transparent 100%);
}

/* Summary Card */
.report-card-summary {
  border-left: 4px solid #8b5a3c;
}

.report-card-summary .report-card-icon {
  background: linear-gradient(135deg, rgba(139, 90, 60, 0.15) 0%, rgba(139, 90, 60, 0.05) 100%);
  color: #8b5a3c;
}

.report-card-summary .report-card-value {
  color: #8b5a3c;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.report-card-summary::before {
  background: linear-gradient(90deg, transparent 0%, #8b5a3c 50%, transparent 100%);
}

.report-card-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.report-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.report-summary-label {
  font-size: 0.8125rem;
  color: #6c757d;
  font-weight: 500;
}

.report-summary-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #3f2a1c;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Chart Type Selector */
.report-chart-type-selector .btn-group {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.report-chart-type-selector .btn {
  border-radius: 0;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.report-chart-type-selector .btn-check:checked + .btn {
  background: linear-gradient(135deg, #8b5a3c 0%, #c29f79 100%);
  border-color: #8b5a3c;
  color: #ffffff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-chart-type-selector .btn:hover {
  background: rgba(139, 90, 60, 0.1);
  border-color: rgba(139, 90, 60, 0.3);
}

/* Chart Container */
.chart-container {
  position: relative;
  padding: 1rem;
  background: linear-gradient(135deg, #fdf8f2 0%, #ffffff 100%);
  border-radius: 0.75rem;
  border: 1px solid rgba(139, 90, 43, 0.1);
}

/* Responsive adjustments for reports */
@media (max-width: 768px) {
  .report-card {
    padding: 1.25rem;
  }
  
  .report-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .report-card-value {
    font-size: 1.5rem;
  }
  
  .report-chart-type-selector .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .chart-container {
    height: 350px !important;
  }
}

/* Dark mode for reports */
[data-theme="dark"] .report-card {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .report-summary-item {
  background: linear-gradient(135deg, #2f2f2f 0%, #2a2a2a 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chart-container {
  background: linear-gradient(135deg, #252525 0%, #2a2a2a 100%);
  border-color: rgba(255, 255, 255, 0.1);
}
