html, body {
  position: unset !important;
  overflow: unset !important;
}
/* AJAX Blocking Overlay Styles (see DesignGuidelines.md for details) */

.ajax-blocking-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.5) !important; /* Transparent gray background */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  animation: none !important;
}
.ajax-blocking-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.ajax-blocking-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Spinner color override (Bootstrap spinner) */
.ajax-blocking-spinner .spinner-border {
  border-width: 3px;
  border-image: linear-gradient(135deg, #4F46E5, #4338CA) 1;
  border-top-color: #4F46E5 !important;
  border-right-color: #4338CA !important;
  border-bottom-color: #4F46E5 !important;
  border-left-color: #4338CA !important;
}

@media (max-width: 576px) {
  .ajax-blocking-spinner span {
    font-size: 1rem;
  }
}
/* Global Styles */
/* Product Table Common Styles (moved from product-list.css) */
.product-table {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
  background: var(--bg-secondary);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.product-table th {
  background: linear-gradient(135deg, #4F46E5, #4338CA);
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}
.product-table td {
  padding: 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid #E5E7EB;
}
.product-table tr:last-child td {
  border-bottom: none;
}
.product-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.05);
  transform: scale(1.005);
  transition: all 0.2s ease;
}
.empty-state {
  text-align: center;
  color: var(--text-light);
  margin-top: 40px;
  font-size: 1.25rem;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Modern Focus Styles */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
  border-color: #4F46E5;
  outline: none;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
}

/* Enhanced Button Styles */
.btn {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #4F46E5, #4338CA);
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338CA, #3730A3);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #6B7280;
  color: white;
}

.btn-secondary:hover {
  background: #4B5563;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(239, 68, 68, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #D97706, #B45309);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(245, 158, 11, 0.4);
}

.btn-outline-primary {
  border: 2px solid #4F46E5;
  color: #4F46E5;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #4F46E5;
  color: white;
  transform: translateY(-2px);
}

/* Enhanced Form Styles */
.form-control, 
.form-select {
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  padding: 0.625rem 1rem;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

.form-control:focus, 
.form-select:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
  background-color: #FAFAFA;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.3px;
}

.form-text {
  color: #6B7280;
  font-size: 0.8125rem;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
  background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
  border-bottom: 2px solid #E5E7EB;
  font-weight: 600;
  padding: 1rem 1.25rem;
  color: #1F2937;
}

.card-body {
  padding: 1.5rem;
}

/* Table Styles */
.table {
  border-radius: 12px;
  overflow: hidden;
}

.table thead th {
  background: linear-gradient(135deg, #4F46E5, #4338CA);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.05);
  transform: scale(1.005);
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #E5E7EB;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(249, 250, 251, 0.5);
}

/* Badge Styles */
.badge {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Alert Styles */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #065F46;
}

.alert-danger {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #991B1B;
}

.alert-warning {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
}

.alert-info {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E40AF;
}

/* Page Heading Styles */
h1, h2, h3, h4, h5, h6 {
  color: #1F2937;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

/* Utility Classes */
.shadow-custom {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.text-gradient {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading Spinner */
.spinner-border {
  border-width: 3px;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4338CA, #6D28D9);
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}