/* Modern Design System for Inventory Management */
:root {
  /* Color Palette */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --success-50: #ecfdf5;
  --success-500: #10b981;
  --success-600: #059669;

  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-urdu: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaleeq', 'Pak Nastaleeq', 'Urdu Typesetting', 'Arabic Typesetting', 'Times New Roman', serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-family: var(--font-sans);
  background-color: #f9fafb;
  background-color: var(--gray-50);
  color: #111827;
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Components */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 1;
  padding: 1.5rem;
  padding: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Card Component */
.card {
  background: white;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.5rem;
  padding: var(--space-6);
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--gray-200);
  background: #f9fafb;
  background: var(--gray-50);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  color: var(--gray-900);
  margin: 0;
}

.card-subtitle {
  font-size: 0.875rem;
  color: #4b5563;
  color: var(--gray-600);
  margin-top: 0.25rem;
  margin-top: var(--space-1);
}

.card-body {
  padding: 1.5rem;
  padding: var(--space-6);
}

.card-footer {
  padding: 1rem 1.5rem;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid #e5e7eb;
  border-top: 1px solid var(--gray-200);
  background: #f9fafb;
  background: var(--gray-50);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  gap: var(--space-3);
}

/* Form Components */
.form-group {
  margin-bottom: 1.25rem;
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid #d1d5db;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px #dbeafe;
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input:disabled {
  background: #f3f4f6;
  background: var(--gray-100);
  color: #6b7280;
  color: var(--gray-500);
  cursor: not-allowed;
}

.form-input.error {
  border-color: #ef4444;
  border-color: var(--error-500);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px #fef2f2;
  box-shadow: 0 0 0 3px var(--error-50);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  -webkit-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 2.5rem;
  padding-right: var(--space-10);
}

.form-error {
  color: #dc2626;
  color: var(--error-600);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--space-1);
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  gap: var(--space-2);
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #2563eb;
  background: var(--primary-600);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: #374151;
  color: var(--gray-700);
  border: 1px solid #d1d5db;
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background: #f9fafb;
  background: var(--gray-50);
  border-color: #9ca3af;
  border-color: var(--gray-400);
}

.btn-success {
  background: #059669;
  background: var(--success-600);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: var(--success-700);
}

.btn-warning {
  background: #d97706;
  background: var(--warning-600);
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: var(--warning-700);
}

.btn-danger {
  background: #dc2626;
  background: var(--error-600);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: var(--error-700);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
  min-height: 32px;
}

.btn-lg {
  padding: 1rem 1.5rem;
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
  min-height: 48px;
}

/* Table Components */
.table-container {
  background: white;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
}

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

.table th {
  background: #f9fafb;
  background: var(--gray-50);
  padding: 1rem;
  padding: var(--space-4);
  text-align: left;
  font-weight: 600;
  color: #374151;
  color: var(--gray-700);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--gray-200);
}

.table td {
  padding: 1rem;
  padding: var(--space-4);
  border-bottom: 1px solid #f3f4f6;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f9fafb;
  background: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Alert Components */
.alert {
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 100%;
  min-height: 0;
}

.alert svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.alert-success {
  background: #ecfdf5;
  background: var(--success-50);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

.alert-warning {
  background: #fffbeb;
  background: var(--warning-50);
  color: var(--warning-800);
  border: 1px solid var(--warning-200);
}

.alert-error {
  background: #fef2f2;
  background: var(--error-50);
  color: var(--error-800);
  border: 1px solid var(--error-200);
}

.alert-info {
  background: #eff6ff;
  background: var(--primary-50);
  color: #1e40af;
  color: var(--primary-800);
  border: 1px solid #bfdbfe;
  border: 1px solid var(--primary-200);
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border: 2px solid var(--gray-200);
  border-top: 2px solid #2563eb;
  border-top: 2px solid var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Navigation */
.nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
  color: var(--primary-600);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  gap: var(--space-6);
  list-style: none;
}

.nav-link {
  color: #4b5563;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
  padding: 0.5rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
  color: var(--primary-600);
  background: #eff6ff;
  background: var(--primary-50);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  padding: var(--space-4);
}

.modal {
  background: white;
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalEnter 0.2s ease-out;
}

.modal.large {
  max-width: 800px;
}

.modal-header {
  padding: 1.5rem;
  padding: var(--space-6);
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  padding: var(--space-1);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: #4b5563;
  color: var(--gray-600);
  background: #f3f4f6;
  background: var(--gray-100);
}

.modal-body {
  padding: 1.5rem;
  padding: var(--space-6);
}

.modal-footer {
  padding: 1rem 1.5rem;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid #e5e7eb;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.75rem;
  gap: var(--space-3);
  justify-content: flex-end;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Base Mobile Optimizations */
@media (max-width: 768px) {
  /* Typography */
  .professional-header {
    font-size: 1.75rem;
  }

  .professional-subtitle {
    font-size: 0.95rem;
  }

  /* Spacing */
  .main-content {
    padding: 0.75rem;
    padding: var(--space-3);
  }

  .card-header,
  .card-body {
    padding: 0.75rem;
    padding: var(--space-3);
  }

  .nav-container {
    padding: 0 0.75rem;
    padding: 0 var(--space-3);
    height: 56px;
  }

  /* Tables - Horizontal scroll */
  .table-container {
    overflow-x: auto;
  }

  .table {
    min-width: 600px;
  }

  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Modals */
  .modal {
    margin: 0.5rem;
    margin: var(--space-2);
    max-width: none;
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
    padding: var(--space-4);
  }

  .modal-overlay {
    padding: 0.5rem;
    padding: var(--space-2);
  }

  /* Forms */
  .professional-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
    margin-bottom: var(--space-4);
  }

  .form-input,
  .professional-input,
  .professional-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem;
    padding: var(--space-3);
    font-size: 0.875rem;
    min-height: 44px; /* Touch-friendly */
  }

  .btn-sm {
    min-height: 36px;
    padding: 0.5rem;
    padding: var(--space-2);
  }

  .btn-lg {
    min-height: 50px;
    padding: 1rem;
    padding: var(--space-4);
  }

  /* Grid layouts */
  .filter-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .professional-search-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item {
    padding: 0.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  /* Navigation */
  .professional-nav-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-tab {
    width: 100%;
    justify-content: center;
    padding: 0.875rem;
  }

  /* Action buttons */
  .professional-form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-professional {
    width: 100%;
    justify-content: center;
  }

  .card-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .card-footer .btn {
    width: 100%;
  }

  /* Supplier/Customer actions */
  .supplier-actions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .action-buttons-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Search */
  .search-input-wrapper {
    flex-direction: column;
  }

  /* Stats cards */
  .sale-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-card {
    padding: 1rem;
  }

  /* Dropdowns */
  .professional-dropdown {
    max-height: 50vh;
  }

  /* Login */
  .login-card {
    padding: 1.5rem;
    padding: var(--space-6);
    margin: 1rem;
    margin: var(--space-4);
  }

  .login-card h2 {
    font-size: 1.5rem;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  /* Even tighter spacing */
  .main-content {
    padding: 0.5rem;
    padding: var(--space-2);
  }

  .card {
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 0.75rem;
    padding: var(--space-3);
  }

  /* Typography */
  .professional-header {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1rem;
  }

  /* Hide less important columns in tables */
  .table .hide-mobile {
    display: none;
  }

  /* Stats in single column */
  .header-stats {
    grid-template-columns: 1fr;
  }

  /* Modal fullscreen on very small devices */
  .modal {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .modal-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 0;
  }

  /* Touch-friendly spacing */
  .table th,
  .table td {
    padding: 0.625rem 0.375rem;
  }

  /* Larger touch targets */
  .btn {
    min-height: 48px;
    padding: 0.75rem;
  }

  .form-input,
  .professional-input {
    min-height: 48px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .modal {
    max-height: 90vh;
  }

  .professional-dropdown {
    max-height: 40vh;
  }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .main-content {
    padding: 1.25rem;
    padding: var(--space-5);
  }

  .professional-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .professional-search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  .btn,
  .form-input,
  .professional-input,
  .professional-select {
    min-height: 44px;
  }

  /* Remove hover effects on touch */
  .btn:hover,
  .table tr:hover,
  .dropdown-option:hover {
    transform: none;
  }

  /* Better touch feedback */
  .btn:active {
    transform: scale(0.98);
  }

  /* Improve scrolling */
  .table-container,
  .professional-dropdown,
  .modal-body {
    scroll-behavior: smooth;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders and shadows */
  .card,
  .modal,
  .btn {
    border-width: 0.5px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-gray-500 {
  color: #6b7280;
  color: var(--gray-500);
}

.text-gray-600 {
  color: #4b5563;
  color: var(--gray-600);
}

.text-gray-700 {
  color: #374151;
  color: var(--gray-700);
}

.text-gray-900 {
  color: #111827;
  color: var(--gray-900);
}

.text-primary {
  color: #2563eb;
  color: var(--primary-600);
}

.text-success {
  color: #059669;
  color: var(--success-600);
}

.text-warning {
  color: #d97706;
  color: var(--warning-600);
}

.text-error {
  color: #dc2626;
  color: var(--error-600);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: 1rem;
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: 2rem;
  margin-bottom: var(--space-8);
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: 0.5rem;
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: 1rem;
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: 1.5rem;
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: 2rem;
  margin-top: var(--space-8);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
  gap: var(--space-2);
}

.gap-4 {
  gap: 1rem;
  gap: var(--space-4);
}

.gap-6 {
  gap: 1.5rem;
  gap: var(--space-6);
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.select-none {
  -webkit-user-select: none;
  user-select: none;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.rounded {
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
}

.shadow {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-lg);
}

.border {
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
}

.border-gray-300 {
  border-color: #d1d5db;
  border-color: var(--gray-300);
}

.border-primary {
  border-color: #3b82f6;
  border-color: var(--primary-500);
}

.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #f9fafb;
  background-color: var(--gray-50);
}

.bg-gray-100 {
  background-color: #f3f4f6;
  background-color: var(--gray-100);
}

.bg-primary {
  background-color: #2563eb;
  background-color: var(--primary-600);
}

.bg-success {
  background-color: #059669;
  background-color: var(--success-600);
}

.bg-warning {
  background-color: #d97706;
  background-color: var(--warning-600);
}

.bg-error {
  background-color: #dc2626;
  background-color: var(--error-600);
}

.hover\\:bg-gray-50:hover {
  background-color: #f9fafb;
  background-color: var(--gray-50);
}

.hover\\:bg-primary-700:hover {
  background-color: #1d4ed8;
  background-color: var(--primary-700);
}

.transition {
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.transition-colors {
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
  padding: 1rem;
  padding: var(--space-4);
}

.login-card {
  background: white;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  padding: var(--space-8);
  width: 100%;
  max-width: 400px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
}

.login-card h2 {
  text-align: center;
  color: #111827;
  color: var(--gray-900);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-6);
}

.login-info {
  background: #f9fafb;
  background: var(--gray-50);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  padding: 1rem;
  padding: var(--space-4);
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-6);
  font-size: 0.875rem;
}

.login-info p {
  margin: 0.25rem 0;
  margin: var(--space-1) 0;
  color: #374151;
  color: var(--gray-700);
}

.login-info code {
  background: #e5e7eb;
  background: var(--gray-200);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #1f2937;
  color: var(--gray-800);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--space-4);
}

.login-form .input-group {
  display: flex;
  flex-direction: column;
}

.login-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid #d1d5db;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.login-form .form-input:focus {
  outline: none;
  border-color: #3b82f6;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px #dbeafe;
  box-shadow: 0 0 0 3px var(--primary-100);
}

.login-button {
  width: 100%;
  background: #2563eb;
  background: var(--primary-600);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button:hover {
  background: #1d4ed8;
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-md);
}

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

.login-button:disabled {
  background: #9ca3af;
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-button:disabled:hover {
  background: #9ca3af;
  background: var(--gray-400);
  transform: none;
}

.error-message {
  background: #fef2f2;
  background: var(--error-50);
  border: 1px solid var(--error-200);
  color: var(--error-700);
  padding: 0.75rem;
  padding: var(--space-3);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.5rem;
  margin-top: var(--space-2);
}

/* Sales Component Styles */
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  align-items: end;
}

/* Enhanced Filter Styles */
.filter-section {
  margin-bottom: 1.5rem;
}

.filter-section-title {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Advanced Filter Container */
.advanced-filters {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  border: 1px solid #0ea5e9;
  padding: 20px;
  margin-top: 20px;
}

/* Global Search Styling */
.global-search-container {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
  border: 2px solid #4f46e5;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* Filter Tags */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #92400e;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.filter-tag-remove {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.filter-tag-remove:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Statistics Cards */
.stat-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #4b5563;
  color: var(--gray-600);
  font-weight: 500;
}

/* Transaction Row Styles */
.transaction-row {
  transition: background-color 0.2s ease;
}

.transaction-row:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transaction-row:hover td {
  background-color: transparent;
}

/* Customer Card Styles */
.customer-card {
  transition: all 0.2s ease;
}

.customer-card:hover {
  background-color: #e3f2fd !important;
  border-color: #2196f3 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.table-id {
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

.customer-name {
  color: var(--text-color);
  font-weight: 500;
}

.walk-in-customer {
  color: #4b5563;
  color: var(--gray-600);
  font-style: italic;
}

.discount-amount {
  color: var(--success-color);
  font-weight: 600;
}

.no-discount {
  color: #9ca3af;
  color: var(--gray-400);
  font-style: italic;
}

.amount-total {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1em;
}

.quantity-badge {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

.item-total {
  color: var(--primary-color);
  font-weight: 600;
}

/* Sale Details Modal */
.sale-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.detail-card h4 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-label {
  color: #4b5563;
  color: var(--gray-600);
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
  color: var(--text-color);
}

.total-row {
  background: var(--primary-light);
  padding: 1rem !important;
  margin: 0.5rem -1rem 0 -1rem;
  border-radius: 6px;
  border: none !important;
}

.total-row .detail-label,
.total-row .detail-value {
  font-size: 1.1em;
  font-weight: 700;
}

.items-section {
  margin-top: 2rem;
}

.items-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

/* Modal size variants */
.modal-lg {
  max-width: 800px;
}

.modal-xl {
  max-width: 1200px;
}

/* Suppliers Component Professional Enhancements */
.supplier-actions-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: start;
}

.search-section {
  min-width: 0;
}

.search-results-count {
  font-size: 0.875rem;
  color: #4b5563;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.action-buttons-section {
  flex-shrink: 0;
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.table-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.supplier-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.supplier-name {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  text-align: left;
}

.supplier-name:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.supplier-id {
  font-size: 0.75rem;
  color: #6b7280;
  color: var(--gray-500);
  font-family: 'Courier New', monospace;
}

.brand-info,
.contact-info {
  display: flex;
  flex-direction: column;
}

.brand-name,
.contact-details {
  color: var(--text-color);
  font-weight: 500;
}

.no-brand,
.no-contact {
  color: #9ca3af;
  color: var(--gray-400);
  font-style: italic;
  font-size: 0.875rem;
}

.balance-display {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.balance-amount {
  font-weight: 700;
  font-size: 1.1em;
}

.balance-positive {
  color: var(--success-color);
}

.balance-negative {
  color: var(--error-color);
}

.balance-status {
  font-size: 0.75rem;
}

.status-paid {
  color: var(--success-color);
  font-weight: 500;
}

.status-pending {
  color: var(--warning-color);
  font-weight: 500;
}

/* Responsive adjustments for supplier actions */
@media (max-width: 768px) {
  .supplier-actions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .action-buttons-grid {
    grid-template-columns: 1fr;
  }

  .balance-display {
    align-items: center;
    text-align: center;
  }
}

/* Professional Products Component Enhancements */
.professional-header {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.professional-subtitle {
  font-size: 1.1rem;
  color: #4b5563;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.header-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #4b5563;
  color: var(--gray-600);
  font-weight: 500;
}

/* Professional Navigation Tabs */
.professional-nav-card {
  background: linear-gradient(135deg, var(--primary-light), var(--background-color));
  border: 1px solid var(--primary-light);
}

.professional-nav-tabs {
  display: flex;
  gap: 0.5rem;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-tab-active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-tab-inactive {
  background: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.nav-tab-inactive:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.nav-icon {
  font-size: 1.1em;
}

.nav-text {
  font-weight: 600;
}

.nav-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.nav-tab-inactive .nav-badge {
  background: var(--primary-color);
  color: white;
}

/* Professional Form Styling */
.professional-form-card {
  background: linear-gradient(135deg, var(--background-color), var(--background-secondary));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.professional-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.form-icon {
  font-size: 1.5rem;
}

.professional-form-subtitle {
  color: #4b5563;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.5;
}

.professional-form {
  margin-top: 2rem;
}

.professional-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.professional-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.professional-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.label-icon {
  font-size: 1rem;
}

.input-wrapper {
  position: relative;
}

.professional-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.professional-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-focus-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  background-clip: padding-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.professional-input:focus+.input-focus-border {
  opacity: 1;
}

/* Price Input Styling */
.price-input {
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: #4b5563;
  color: var(--gray-600);
  font-weight: 600;
  z-index: 2;
}

.price-field {
  padding-left: 2rem;
}

/* Supplier Search Styling */
.supplier-input-group {
  position: relative;
}

.supplier-search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  color: var(--gray-500);
  z-index: 2;
}

.supplier-search {
  padding-left: 2.5rem;
  padding-right: 3rem;
  /* Make room for dropdown button */
}

.dropdown-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
  color: #6b7280;
  color: var(--gray-500);
}

.dropdown-toggle-btn:hover {
  background: #f3f4f6;
  background: var(--gray-100);
  color: #2563eb;
  color: var(--primary-600);
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  line-height: 1;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.professional-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0.25rem;
}

.dropdown-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-light);
}

.dropdown-option:hover {
  background: var(--primary-light);
}

.dropdown-option:last-child {
  border-bottom: none;
}

.supplier-option-name {
  font-weight: 600;
  color: var(--text-color);
}

.supplier-option-brand {
  font-size: 0.875rem;
  color: #6b7280;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Professional Button Styling */
.professional-form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.btn-professional {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-professional-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-professional-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-professional-secondary {
  background: var(--background-secondary);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-professional-secondary:hover {
  background: #f3f4f6;
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.1em;
}

.btn-text {
  font-weight: 600;
}

.btn-loading-indicator {
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.btn-professional:active .btn-loading-indicator {
  width: 100%;
}

/* Professional Search Card */
.professional-search-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.professional-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.professional-search-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  color: #6b7280;
  color: var(--gray-500);
  z-index: 2;
}

.professional-search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background-color);
  transition: all 0.3s ease;
}

.professional-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  color: #9ca3af;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.search-clear-btn:hover {
  background: #f3f4f6;
  background: var(--gray-100);
  color: #4b5563;
  color: var(--gray-600);
}

/* Professional Select Styling */
.professional-select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background-color);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
          appearance: none;
}

.professional-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  color: var(--gray-500);
  pointer-events: none;
  font-size: 0.875rem;
}

/* Sort Toggle Buttons */
.sort-toggle-wrapper {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.sort-toggle {
  flex: 1 1;
  padding: 0.75rem 1rem;
  border: none;
  background: var(--background-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sort-toggle.active {
  background: var(--primary-color);
  color: white;
}

.sort-toggle:not(.active):hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Search Results Summary */
.search-results-summary {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

/* Enhanced Table Styling */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background: var(--background-secondary);
  font-weight: 600;
  color: #374151;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tr:nth-child(even) {
  background: var(--background-secondary);
}

.table tr:hover {
  background: var(--primary-light);
  transition: background-color 0.2s ease;
}

/* Professional Action Buttons */
.table .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.table .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .professional-form-grid {
    grid-template-columns: 1fr;
  }

  .professional-search-grid {
    grid-template-columns: 1fr;
  }

  .header-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .professional-nav-tabs {
    flex-direction: column;
  }

  .professional-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-professional {
    width: 100%;
    justify-content: center;
  }
}

/* Editing Mode Styling */
.editing-mode {
  border: 2px solid #f59e0b !important;
  border: 2px solid var(--warning-500) !important;
  background: linear-gradient(135deg, #fffbeb, #f9fafb) !important;
  background: linear-gradient(135deg, var(--warning-50), var(--gray-50)) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

.editing-mode .card-header {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  background: linear-gradient(135deg, var(--warning-500), var(--warning-600)) !important;
  color: white !important;
}

.editing-mode .professional-form-title {
  color: white !important;
}

.editing-mode .professional-form-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Responsive Grid */
@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Additional Color Utilities */
.bg-purple-100 {
  background-color: #f3e8ff;
}

.text-purple-600 {
  color: #9333ea;
}

.bg-success-100 {
  background-color: #ecfdf5;
  background-color: var(--success-50);
}

.text-success-800 {
  color: #065f46;
}

.bg-warning-100 {
  background-color: #fffbeb;
  background-color: var(--warning-50);
}

/* Additional spacing utilities */
.gap-6 {
  gap: 1.5rem;
  gap: var(--space-6);
}

.gap-8 {
  gap: 2rem;
  gap: var(--space-8);
}

.mb-8 {
  margin-bottom: 2rem;
  margin-bottom: var(--space-8);
}

.py-8 {
  padding-top: 2rem;
  padding-top: var(--space-8);
  padding-bottom: 2rem;
  padding-bottom: var(--space-8);
}

.p-3 {
  padding: 0.75rem;
  padding: var(--space-3);
}

.p-6 {
  padding: 1.5rem;
  padding: var(--space-6);
}

/* Table footer styling */
.table tfoot td {
  font-weight: 600;
  background: #f9fafb;
  background: var(--gray-50);
  border-top: 2px solid #e5e7eb;
  border-top: 2px solid var(--gray-200);
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

/* Ensure main content scrolls properly */
.main-content {
  flex: 1 1;
  padding: 1.5rem;
  padding: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
  height: 100%;
}

/* Ensure body and html allow scrolling */
html,
body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Urdu Text Support */
.urdu-text {
  font-family: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaleeq', 'Pak Nastaleeq', 'Urdu Typesetting', 'Arabic Typesetting', 'Times New Roman', serif;
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  unicode-bidi: bidi-override;
}

.urdu-text h1,
.urdu-text h2,
.urdu-text h3,
.urdu-text h4,
.urdu-text h5,
.urdu-text h6 {
  font-family: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaleeq', 'Pak Nastaleeq', 'Urdu Typesetting', 'Arabic Typesetting', 'Times New Roman', serif;
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  font-weight: bold;
}

.urdu-text li {
  direction: rtl;
  text-align: right;
  margin-bottom: 4px;
}

/* Enhanced font rendering for Urdu */
.urdu-text {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-text-rendering: optimizeLegibility;
  text-rendering: optimizeLegibility;
}

/* Prevent modal overlay from blocking scrolling when not visible */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 1rem;
  padding: var(--space-4);
}

/* Pagination Styles */
.pagination-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--space-4);
  padding: 1rem;
  padding: var(--space-4);
  border-top: 1px solid #e5e7eb;
  border-top: 1px solid var(--gray-200);
  background: #f9fafb;
  background: var(--gray-50);
}

.pagination-info {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.pagination-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
}

.pagination-selector select {
  padding: 0.5rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid #d1d5db;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
}

.pagination-numbers {
  display: flex;
  gap: 0.25rem;
  gap: var(--space-1);
}

.pagination-buttons .btn {
  min-width: 40px;
  height: 32px;
  padding: 0 0.75rem;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-buttons .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-buttons .btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-controls {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    gap: var(--space-3);
  }

  .pagination-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }
}
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.login-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

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

.login-card h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #718096;
  margin-bottom: 30px;
  font-size: 14px;
}

.login-form {
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #718096;
}

.login-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.forgot-password-button {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #667eea;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.forgot-password-button:hover {
  background: #f7fafc;
  color: #764ba2;
}

.toggle-mode {
  text-align: center;
  margin-top: 25px;
  color: #4a5568;
  font-size: 14px;
}

.toggle-mode-button {
  background: none;
  border: none;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.toggle-mode-button:hover {
  background: #f7fafc;
  color: #764ba2;
}

.error-message {
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-message::before {
  content: '⚠️';
}

.success-message {
  background: #f0fff4;
  border: 1px solid #68d391;
  color: #22543d;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-message::before {
  content: '✓';
  font-weight: bold;
}

.demo-info {
  margin-top: 25px;
  padding: 15px;
  background: #f7fafc;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.demo-info p {
  margin: 8px 0;
  font-size: 13px;
  color: #4a5568;
}

.demo-info p:first-child {
  font-weight: 600;
  margin-bottom: 10px;
  color: #2d3748;
}

.demo-info code {
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #667eea;
  border: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }

  .login-card h2 {
    font-size: 24px;
  }

  .form-input {
    padding: 10px 14px;
  }

  .login-button,
  .google-button {
    padding: 12px;
    font-size: 14px;
  }
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-button:disabled::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.user-management-container {
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.user-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.user-management-header h1 {
  margin: 0;
  font-size: 32px;
  color: #1a202c;
}

.subtitle {
  color: #718096;
  margin-top: 5px;
  font-size: 14px;
}

.btn-add-user {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add-user:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.alert-error {
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
}

.alert-success {
  background: #f0fff4;
  border: 1px solid #68d391;
  color: #22543d;
  white-space: pre-line;
  font-family: inherit;
}

/* Add User Form */
.add-user-form-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  animation: slideDown 0.3s ease-out;
}

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

.info-banner {
  background: #fff5d9;
  border: 2px solid #f6ad55;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  color: #744210;
  font-size: 14px;
  line-height: 1.6;
}

.info-banner code {
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.add-user-form-container h2 {
  margin: 0 0 20px 0;
  color: #1a202c;
  font-size: 20px;
}

.add-user-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
}

.form-input,
.form-select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #718096;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-cancel {
  padding: 12px 24px;
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.btn-submit {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Stats Cards */
.users-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #718096;
  font-weight: 500;
}

/* Users Table */
.users-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.users-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.users-table td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.users-table tbody tr {
  transition: background-color 0.2s ease;
}

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

.user-inactive {
  opacity: 0.6;
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.user-name {
  font-weight: 600;
  color: #1a202c;
}

.you-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #edf2f7;
  color: #4a5568;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

/* Badges */
.role-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.role-badge-owner {
  background: #fff5f5;
  color: #c53030;
}

.role-badge-cashier {
  background: #ebf8ff;
  color: #2c5282;
}

.provider-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f7fafc;
  border-radius: 6px;
  font-size: 12px;
  color: #4a5568;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: #f0fff4;
  color: #22543d;
}

.status-inactive {
  background: #fff5f5;
  color: #c53030;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.role-select {
  padding: 6px 10px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-select:hover {
  border-color: #cbd5e0;
}

.btn-toggle,
.btn-delete {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle {
  background: #edf2f7;
}

.btn-toggle:hover {
  background: #e2e8f0;
  transform: scale(1.1);
}

.btn-delete {
  background: #fff5f5;
}

.btn-delete:hover {
  background: #fed7d7;
  transform: scale(1.1);
}

.current-user-note {
  font-size: 12px;
  color: #718096;
  font-style: italic;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state h3 {
  color: #4a5568;
  margin-bottom: 10px;
}

.empty-state p {
  color: #718096;
}

/* Loading */
.loading-spinner {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .user-management-container {
    padding: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .users-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .users-table-container {
    overflow-x: auto;
  }

  .users-table {
    min-width: 800px;
  }

  .action-buttons {
    flex-direction: column;
  }
}

