/* Modern Invoice App Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px 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);
}

body {
  background: 
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%),
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.navbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 40%, #60a5fa 100%) !important;
  box-shadow: 
    0 10px 40px rgba(30, 58, 138, 0.25),
    0 4px 12px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(96, 165, 250, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  position: relative;
  padding: 1.25rem 0;
  min-height: 80px;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  pointer-events: none;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(59, 130, 246, 0.6) 20%,
    rgba(16, 185, 129, 0.6) 40%,
    rgba(245, 158, 11, 0.6) 60%,
    rgba(239, 68, 68, 0.6) 80%,
    transparent 100%);
  filter: blur(1px);
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.75rem;
  color: #ffffff !important;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 2;
  letter-spacing: -0.05em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover {
  transform: translateY(-2px) scale(1.02);
  color: #f8fafc !important;
  text-shadow: 
    0 0 30px rgba(255, 255, 255, 0.8),
    0 3px 6px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.8);
}

.navbar-nav {
  position: relative;
  z-index: 2;
}

.navbar-nav .nav-link {
  color: rgba(248, 250, 252, 0.95) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.5rem !important;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-left: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(16, 185, 129, 0.15) 100%);
  border-radius: 12px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.9);
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.05);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 3px 10px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.navbar-nav .nav-link:active {
  transform: translateY(-1px) scale(1.02);
}

.navbar-brand-logo {
  height: 45px;
  width: auto;
  margin-left: 1rem;
  filter: 
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
    brightness(1.1)
    contrast(1.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  backdrop-filter: blur(8px);
}

.navbar-brand-logo:hover {
  transform: translateY(-2px) scale(1.05);
  filter: 
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4))
    brightness(1.2)
    contrast(1.2);
  background: rgba(255, 255, 255, 0.15);
}

.container {
  max-width: 1400px;
  padding: 0 2rem;
}

.container.my-4 {
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Modern glass card effect for the main content area */
.main-content-wrapper {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Bottom section styling */
.d-flex.justify-content-between.align-items-center {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  margin-top: 2rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Table Styles */
.table-responsive {
  border-radius: 20px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.12),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}

.table-responsive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 25%, #3b82f6 50%, #1d4ed8 75%, #3b82f6 100%);
}

.table {
  margin-bottom: 0;
  min-width: 800px;
  background: transparent;
  width: max-content;
}

.table th {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: none;
  font-weight: 800;
  color: #1e40af;
  padding: 20px 16px;
  vertical-align: middle;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 120px;
  position: relative;
  text-shadow: 0 1px 2px rgba(30, 64, 175, 0.1);
}

.table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.table th:first-child {
  border-left: none;
  border-top-left-radius: 0;
}

.table th:last-child {
  border-right: none;
  border-top-right-radius: 0;
}

.table td {
  padding: 18px 16px;
  vertical-align: middle;
  border: none;
  font-weight: 600;
  white-space: nowrap;
  min-width: 120px;
  color: #374151;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.table tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.table tbody tr:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.table tbody tr:hover td {
  background: transparent;
  color: #1e40af;
}

/* Table Responsive Scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.3);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.cursor-pointer {
  cursor: pointer;
  user-select: none;
}

.cursor-pointer:hover {
  background-color: #e9ecef;
}

/* Filter Inputs */
.form-control-sm {
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.form-control-sm:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Pagination */
.pagination {
  margin-bottom: 0;
  gap: 0.5rem;
}

.page-item {
  margin: 0 2px;
}

.page-link {
  color: #3b82f6;
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  min-width: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-link:hover {
  color: #1e40af;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px -5px rgba(59, 130, 246, 0.25),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.page-link:hover::before {
  opacity: 1;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #3b82f6;
  color: white;
  box-shadow: 
    0 8px 25px -5px rgba(59, 130, 246, 0.5),
    0 4px 6px -2px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.page-item.active .page-link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
}

.page-item.disabled .page-link {
  color: #9ca3af;
  pointer-events: none;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: #e5e7eb;
  opacity: 0.6;
}

/* Buttons */
.btn {
  border-radius: 12px;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  letter-spacing: 0.025em;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #3b82f6;
  box-shadow: 
    0 4px 14px 0 rgba(59, 130, 246, 0.4),
    0 2px 4px 0 rgba(0, 0, 0, 0.05);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 10px 25px -5px rgba(59, 130, 246, 0.5),
    0 4px 6px -2px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-outline-secondary {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #d1d5db;
  color: #374151;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.btn-outline-secondary:hover {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-color: #9ca3af;
  color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Search and Filter Section */
.d-flex.align-items-center.justify-content-between.flex-wrap.gap-2.mb-3 {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 1.75rem 2rem;
  border-radius: 16px;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem !important;
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.d-flex.align-items-center.justify-content-between.flex-wrap.gap-2.mb-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
}

.d-flex.align-items-center.justify-content-between.flex-wrap.gap-2.mb-3 h3 {
  color: #1e40af;
  font-weight: 800;
  font-size: 2rem;
  text-shadow: 0 1px 3px rgba(30, 64, 175, 0.1);
  margin: 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Styles */
.card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-body {
  padding: 1.5rem;
  background: white;
}

.card-footer {
  padding: 0.75rem 1.25rem;
  background-color: transparent;
}

/* Line Item Cards */
.line-card {
  min-height: 100px;
  transition: box-shadow 0.2s ease;
}

.line-card .form-check-input {
  cursor: pointer;
  border: 2px solid #3b82f6;
  transition: border-color 0.2s ease;
}

.line-card .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.line-card .form-check-input:hover {
  border-color: #1d4ed8;
}

.line-card:hover {
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
}

.bg-warning.text-dark {
  background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%) !important;
  color: #ffffff !important;
}

/* Toast Styles */
.toast {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .line-card .form-check-input {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
}

@media (max-width: 576px) {
  .d-flex.align-items-center.justify-content-between.flex-wrap.gap-2.mb-3 {
    flex-direction: column;
    align-items: stretch !important;
  }
  
  .table th,
  .table td {
    padding: 8px 4px;
    font-size: 0.8rem;
  }
  
  .form-control-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.375rem;
  }
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Error States */
.text-danger {
  color: #dc3545 !important;
}

.text-muted {
  color: #6c757d !important;
}

/* Success States */
.text-success {
  color: #28a745 !important;
}

/* Link Styles */
a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Form Elements */
.form-control,
.form-select {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.form-control:focus,
.form-select:focus {
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
  outline: none;
  transform: translateY(-2px);
  background: #ffffff;
}

.form-control::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* Modern Filter Button */
#filterBtn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #3b82f6;
  color: #3b82f6;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#filterBtn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.1);
}

#filterBadge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modern Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: none;
  border-radius: 20px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 0 0;
}

.modal-title {
  color: #1e40af;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: scale(1.1);
}

.btn-close::before {
  content: '×';
  font-weight: bold;
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body #filterContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.modal-body #filterContainer > div {
  margin-bottom: 0 !important;
}

.modal-footer {
  background: rgba(248, 250, 252, 0.5);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0 0 20px 20px;
}

.btn-outline-danger {
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
  border: 2px solid #ef4444;
  color: #dc2626;
  box-shadow: 
    0 4px 6px -1px rgba(239, 68, 68, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #dc2626;
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px -5px rgba(239, 68, 68, 0.4),
    0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Body modal open state */
body.modal-open {
  overflow: hidden;
}

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

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

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

.overflow-auto::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
