/* Main CSS Styles */

/* Modern Gradient Background - Professional & Subtle */
body {
  background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #475569 50%, #64748b 75%, #94a3b8 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

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

/* Glass Morphism Effect for Main Container */
#app {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin: 16px;
  min-height: calc(100vh - 32px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Modern Sidebar */
aside {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

/* Modern Header */
header {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Main Content Area */
main {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

label {
  display: block;
  margin-bottom: 0.125rem;
  font-weight: 500;
  color: #e5e7eb;
  font-size: 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Compact UI Improvements */
.compact-form {
  gap: 2px; /* Further reduced from 4px */
}

.compact-form .col-span-3,
.compact-form .col-span-2,
.compact-form .col-span-1,
.compact-form .col-span-6 {
  margin-bottom: 1px; /* Further reduced from 2px */
}

.compact-form label {
  margin-bottom: 0.0625rem; /* Further reduced from 0.125rem */
  font-size: 0.6875rem; /* Further reduced from 0.75rem */
  font-weight: 600;
  color: #d1d5db;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Form Elements Styling */
.compact-form,
input.compact-form,
select.compact-form,
textarea.compact-form {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 44px;
  color: #f8fafc;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.compact-form:focus,
input.compact-form:focus,
select.compact-form:focus,
textarea.compact-form:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 0 0 3px rgba(99, 102, 241, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-1px);
}

.compact-form:hover,
input.compact-form:hover,
select.compact-form:hover,
textarea.compact-form:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.85);
}

/* Compact Form Container */
.compact-form {
  gap: 2px;
}

.compact-form .col-span-3,
.compact-form .col-span-2,
.compact-form .col-span-1,
.compact-form .col-span-6 {
  margin-bottom: 1px;
}

.compact-form label {
  margin-bottom: 0.0625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #d1d5db;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Modern Card Design - Professional & Subtle */
.modern-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  transition: left 0.5s ease;
}

.modern-card:hover::before {
  left: 100%;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

.modern-card h3 {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #cbd5e1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Modern Table Design - Professional & Subtle */
.compact-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-table thead {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  backdrop-filter: blur(10px);
  position: relative;
}

.compact-table thead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
}

.compact-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.compact-table td {
  padding: 12px;
  font-size: 0.875rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.compact-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modern Button Design - Enhanced Visual Appeal */
.modern-btn {
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
  color: #ffffff;
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.modern-btn:hover::before {
  left: 100%;
}

.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(99, 102, 241, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modern-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(99, 102, 241, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-btn-primary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modern-btn-primary:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(168, 85, 247, 1) 100%);
  box-shadow: 
    0 8px 20px rgba(99, 102, 241, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modern-btn-primary:active {
  box-shadow: 
    0 2px 8px rgba(99, 102, 241, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-btn-secondary {
  background: linear-gradient(135deg, rgba(75, 85, 99, 0.9) 0%, rgba(55, 65, 81, 0.9) 100%);
  box-shadow: 
    0 4px 12px rgba(75, 85, 99, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modern-btn-secondary:hover {
  background: linear-gradient(135deg, rgba(75, 85, 99, 1) 0%, rgba(55, 65, 81, 1) 100%);
  box-shadow: 
    0 8px 20px rgba(75, 85, 99, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modern-btn-secondary:active {
  box-shadow: 
    0 2px 8px rgba(75, 85, 99, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-btn-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
  box-shadow: 
    0 4px 12px rgba(34, 197, 94, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modern-btn-success:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
  box-shadow: 
    0 8px 20px rgba(34, 197, 94, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modern-btn-success:active {
  box-shadow: 
    0 2px 8px rgba(34, 197, 94, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Section Header Design */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 1px;
}

.section-header h3 {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Recent Customers Styling */
.recent-customers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.customer-pill {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.customer-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.customer-pill:hover::before {
  left: 100%;
}

.customer-pill:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Product Search Container */
.product-search-container {
  position: relative;
  margin-bottom: 16px;
}

.product-search-container input {
  width: 100%;
  padding-right: 40px;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* Bill Summary Styling */
.bill-summary {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.bill-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(99, 102, 241, 0.3), 
    rgba(168, 85, 247, 0.3), 
    transparent);
  animation: shimmer 4s ease-in-out infinite;
}

.bill-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.bill-summary-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding-left: 8px;
  padding-right: 8px;
}

.bill-summary-row:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
}

.action-buttons .modern-btn {
  flex: 1;
  max-width: 150px;
}

/* Page Transitions */
.page {
  animation: fadeIn 0.3s ease-in-out;
}

.page > * {
  animation: slideUp 0.4s ease-out;
}

.page > *:last-child {
  animation-delay: 0.1s;
}

/* Mobile Button Enhancements */
.mobile-btn {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Swipe Actions */
.swipe-action {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.swipe-action-content {
  background: rgba(30, 41, 59, 0.9);
  transition: transform 0.3s ease;
}

.swipe-actions {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}

.swipe-action-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-action-edit {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
}

.swipe-action-edit:hover {
  background: linear-gradient(135deg, #5b5beb 0%, #4338ca 100%);
}

.swipe-action-delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.swipe-action-delete:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Quick Add Mode */
.quick-add-mode {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.quick-add-mode .form-simplified {
  background: rgba(34, 197, 94, 0.05);
  border-radius: 8px;
  padding: 12px;
}

/* Voice Input Button */
.voice-input-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 14px;
}

.voice-input-btn:hover {
  background: linear-gradient(135deg, #5b5beb 0%, #7c3aed 100%);
  transform: translateY(-50%) scale(1.1);
}

.voice-input-btn.recording {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Mobile Responsive */
@media (max-width: 480px) {
  .mobile-btn {
    min-height: 48px;
    font-size: 16px;
    padding: 12px 20px;
  }
  
  .mobile-form .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  button, input, select, textarea {
    font-size: 16px !important;
  }
  
  .mobile-table {
    font-size: 12px;
    overflow-x: auto;
  }
  
  .mobile-table th,
  .mobile-table td {
    padding: 8px 4px;
    white-space: nowrap;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .mobile-btn {
    border-width: 0.5px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-modal {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .mobile-form {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Autocomplete Dropdown Styling */
.customer-suggestion,
.product-option,
.master-option {
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-suggestion:hover,
.product-option:hover,
.master-option:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #f8fafc;
}

.customer-suggestion:active,
.product-option:active,
.master-option:active {
  background: rgba(99, 102, 241, 0.3);
  transform: scale(0.98);
}

/* Dropdown Positioning */
.absolute {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-height: 200px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.z-50 {
  z-index: 50;
}

/* Dropdown Background */
.bg-neutral-800 {
  background: rgba(30, 41, 59, 0.95);
}

/* Dropdown Border */
.border-neutral-600 {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dropdown Shadow */
.shadow-lg {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Dropdown Max Height */
.max-h-60 {
  max-height: 240px;
}

/* Dropdown Overflow */
.overflow-y-auto {
  overflow-y: auto;
}

/* Custom Scrollbar */
.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Dropdown Animation */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown Positioning */
.absolute {
  animation: dropdownFadeIn 0.2s ease-out;
}

/* Focus States */
#billCustomer:focus,
#billProduct:focus,
#masterName:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Text Colors */
.text-green-400 {
  color: #4ade80;
}

.text-neutral-400 {
  color: #9ca3af;
}

.text-neutral-500 {
  color: #6b7280;
}

/* Mobile Responsive for Dropdowns */
@media (max-width: 768px) {
  .absolute {
    position: fixed;
    top: auto;
    left: 8px;
    right: 8px;
    max-height: 200px;
    z-index: 1000;
  }
  
  .mobile-container {
    padding: 8px;
    margin: 0;
  }
  
  .mobile-header {
    border-radius: 0;
    margin: 0;
  }
  
  .mobile-form {
    gap: 8px;
  }
  
  .mobile-button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .mobile-button-group button {
    width: 100%;
    min-height: 48px;
  }
  
  /* Horizontal scrolling for bill table on mobile */
  #billTable {
    overflow-x: auto !important;
    display: block !important;
    white-space: nowrap !important;
  }
  
  #billTable thead,
  #billTable tbody {
    display: table !important;
    width: 100% !important;
    min-width: 600px !important; /* Ensure minimum width for all columns */
  }
  
  #billTable th,
  #billTable td {
    white-space: nowrap !important;
    padding: 0.5rem 0.75rem !important;
  }
}

/* Select Dropdown Styling */
select.compact-form {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f8fafc' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

select.compact-form option {
  background: rgba(30, 41, 59, 0.95);
  color: #f8fafc;
  padding: 8px 12px;
}

select.compact-form option:hover {
  background: rgba(99, 102, 241, 0.2);
}

select.compact-form option:checked {
  background: rgba(99, 102, 241, 0.3);
}

/* Form Alignment Fixes */
.compact-form .modern-btn {
  margin-top: 1.5rem; /* Align button with input fields */
  height: 44px; /* Match input field height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure all form elements have consistent spacing */
.compact-form .flex.flex-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compact-form label {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d1d5db;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Billing Form Styling - 2 Row Layout */
#billingForm {
  gap: 0.5rem;
}

#billingForm .flex.flex-col {
  margin-bottom: 0.5rem;
}

#billingForm input,
#billingForm select,
#billingForm textarea {
  padding: 8px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 36px;
  color: #f8fafc;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#billingForm input:focus,
#billingForm select:focus,
#billingForm textarea:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 0 0 2px rgba(99, 102, 241, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-1px);
}

#billingForm input:hover,
#billingForm select:hover,
#billingForm textarea:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.85);
}

#billingForm label {
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #d1d5db;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Select Dropdown Styling for Billing Form */
#billingForm select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f8fafc' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 12px;
  padding-right: 28px;
}

#billingForm select option {
  background: rgba(30, 41, 59, 0.95);
  color: #f8fafc;
  padding: 6px 8px;
}

#billingForm select option:hover {
  background: rgba(99, 102, 241, 0.2);
}

#billingForm select option:checked {
  background: rgba(99, 102, 241, 0.3);
} 

/* Autocomplete Dropdown Styling */
.product-suggestion {
  position: absolute !important;
  z-index: 9999 !important;
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  margin-top: 4px !important;
  min-width: 200px !important;
}

.master-suggestion {
  position: fixed !important;
  z-index: 99999 !important;
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  margin-top: 4px !important;
  min-width: 200px !important;
}

.product-option,
.master-option {
  padding: 12px 16px !important;
  cursor: pointer !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.2s ease !important;
  color: #f8fafc !important;
}

.product-option:hover,
.master-option:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #ffffff !important;
}

.product-option:last-child,
.master-option:last-child {
  border-bottom: none !important;
} 

/* Billing Success Message Styling */
.billing-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  animation: fadeIn 0.3s ease-in-out;
}

.billing-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

/* Mobile dropdown autocomplete styling */
#mobileDropdown {
  position: fixed !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-height: 200px;
  overflow-y: auto;
  animation: dropdownFadeIn 0.2s ease-out;
}

.mobile-suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(30, 41, 59, 0.8);
}

.mobile-suggestion-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
}

.mobile-suggestion-item:last-child {
  border-bottom: none;
}

.mobile-suggestion-item:active {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(0.98);
}

/* Mobile dropdown scrollbar styling */
#mobileDropdown::-webkit-scrollbar {
  width: 6px;
}

#mobileDropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

#mobileDropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

#mobileDropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
} 

/* Employee mobile dropdown autocomplete styling */
#employeeMobileDropdown {
  position: fixed !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-height: 200px;
  overflow-y: auto;
  animation: dropdownFadeIn 0.2s ease-out;
}

.employee-mobile-suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(30, 41, 59, 0.8);
}

.employee-mobile-suggestion-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
}

.employee-mobile-suggestion-item:last-child {
  border-bottom: none;
}

.employee-mobile-suggestion-item:active {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(0.98);
}

/* Employee mobile dropdown scrollbar styling */
#employeeMobileDropdown::-webkit-scrollbar {
  width: 6px;
}

#employeeMobileDropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

#employeeMobileDropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

#employeeMobileDropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
} 

/* Customer mobile dropdown autocomplete styling */
#customerMobileDropdown {
  position: fixed !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-height: 200px;
  overflow-y: auto;
  animation: dropdownFadeIn 0.2s ease-out;
}

.customer-mobile-suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(30, 41, 59, 0.8);
}

.customer-mobile-suggestion-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
}

.customer-mobile-suggestion-item:last-child {
  border-bottom: none;
}

.customer-mobile-suggestion-item:active {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(0.98);
}

/* Customer mobile dropdown scrollbar styling */
#customerMobileDropdown::-webkit-scrollbar {
  width: 6px;
}

#customerMobileDropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

#customerMobileDropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

#customerMobileDropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
} 