/* Enhanced Hero Section */
.hero {
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin: 2rem auto;
  max-width: 1400px;
}

.hero-text {
  color: #334155;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text strong {
  font-size: 1.3em;
  display: block;
  margin-bottom: 1rem;
  color: #1e293b;
}

.hero-text p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #334155;
}

.hero-text a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.hero-text a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.check-list li {
  background: white;
  padding: 1rem 1.5rem 1rem 3rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
  background: #d1fae5;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.check-list li:hover {
  background: white;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.check-list li:hover::before {
  background: #667eea;
  color: white;
}

/* Fix for hero text background */
.hero-text {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
}

/* Enhanced Stats Section */
.numbers-section {
  margin-top: 3rem;
}

.numbers-box-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.number-box {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.number-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--box-color-1), var(--box-color-2));
}

.number-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.number-box.blue1 {
  --box-color-1: #667eea;
  --box-color-2: #764ba2;
}

.number-box.green1 {
  --box-color-1: #06b6d4;
  --box-color-2: #3b82f6;
}

.number-box.blue2 {
  --box-color-1: #8b5cf6;
  --box-color-2: #ec4899;
}

.number-box.green2 {
  --box-color-1: #10b981;
  --box-color-2: #059669;
}

.number-box.black {
  --box-color-1: #667eea;
  --box-color-2: #764ba2;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
}

.number-box.black::before {
  display: none;
}

.number-box.black .icon-area {
  display: none;
}

.number-box.black .number-area {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-area {
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--box-color-1);
}

.number-box.blue1 .icon-area::before { content: "📊"; }
.number-box.green1 .icon-area::before { content: "🧬"; }
.number-box.blue2 .icon-area::before { content: "🔬"; }
.number-box.green2 .icon-area::before { content: "📈"; }

.number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--box-color-1), var(--box-color-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.num-desc {
  display: block;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.number-box.black .number-area {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-box.black .button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.number-box.black .button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Enhanced Workflow Section */
.section.max-width {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.front-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.front-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Enhanced Content Panels */
.text {
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  line-height: 1.8;
}

.text p {
  margin-bottom: 1.2rem;
  color: #334155;
}

.text a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.text a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

/* Logo Section Enhancement */
.all-logos-area {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-radius: 20px;
}

.all-logos-area .flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.logo {
  transition: all 0.3s ease;
  filter: grayscale(0.3);
}

.logo:hover {
  transform: scale(1.1);
  filter: grayscale(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-text strong {
    font-size: 1.1em;
  }
  
  .check-list {
    grid-template-columns: 1fr;
  }
  
  .numbers-box-area {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .number-box {
    padding: 1.5rem 1rem;
  }
  
  .number {
    font-size: 2rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .all-logos-area .flex {
    gap: 2rem;
  }
}

/* Animation for stats on page load */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.number-box {
  animation: countUp 0.6s ease-out forwards;
}

.number-box:nth-child(1) { animation-delay: 0.1s; }
.number-box:nth-child(2) { animation-delay: 0.2s; }
.number-box:nth-child(3) { animation-delay: 0.3s; }
.number-box:nth-child(4) { animation-delay: 0.4s; }
.number-box:nth-child(5) { animation-delay: 0.5s; }

/* Browse Page - Modern Filter Section */
.content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.selections {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.selections > p:first-of-type {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.selections > p:first-of-type b {
  color: #1e293b;
  font-size: 1.15rem;
}

/* Filter Grid Layout */
.selections form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.selections form > p {
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Filter Labels */
.selections form > p::before {
  content: attr(data-label);
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: capitalize;
}

/* Modern Select Dropdowns */
.selections select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  color: #334155;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
  height: auto;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Multi-select styling */
.select2-container--default .select2-selection--multiple {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--multiple:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Placeholder for multi-select */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #94a3b8 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  position: relative !important;
  display: inline-block !important;
}

/* Ensure placeholder is visible when empty */
.select2-container--default.select2-container--focus .select2-selection--multiple .select2-selection__placeholder {
  display: inline-block !important;
}

.select2-container--default .select2-selection--multiple.select2-selection--clearable .select2-selection__placeholder {
  display: inline-block !important;
}

/* Hide placeholder when items are selected */
.select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice ~ .select2-search--inline .select2-selection__placeholder {
  display: none !important;
}

/* Search field in multi-select */
.select2-container--default .select2-selection--multiple .select2-search--inline {
  margin: 0;
  display: inline-block;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin: 0;
  padding: 0;
  min-width: 150px;
  font-size: 1rem;
  line-height: 1.5;
  height: auto;
  border: none;
  outline: none;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
  color: #94a3b8;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Selected items (tags) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 6px;
  color: white;
  padding: 0.375rem 0.75rem;
  margin: 0.125rem 0.25rem 0.125rem 0;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: white;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  opacity: 1;
  color: white;
  background: none;
}

.select2-container--default .select2-selection--single:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #334155;
  line-height: 1.5;
  padding: 0;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.75rem;
  top: 0;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #667eea transparent transparent transparent;
  border-width: 6px 6px 0 6px;
  margin-top: 0;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #667eea transparent;
  border-width: 0 6px 6px 6px;
}

/* Select2 Dropdown */
.select2-dropdown {
  border: 2px solid #667eea;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.select2-container--default .select2-search--dropdown {
  padding: 0.75rem;
  background: #f8fafc;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #667eea;
}

.select2-container--default .select2-results__option {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: #ede9fe;
  color: #667eea;
  font-weight: 600;
}

.select2-results__option {
  word-wrap: break-word;
  white-space: normal;
}

/* Select2 Clear Button */
.select2-container--default .select2-selection--single .select2-selection__clear {
  color: #94a3b8;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
  margin-right: 1.75rem;
  margin-top: 0;
  transition: color 0.2s ease;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: #667eea;
}

/* Active filter styling */
.select2-container--default .select2-selection--single.select2-selection--active-filter {
  border-color: #10b981;
  background-color: #f0fdf4;
}

/* Loading state */
.select2-container--default .select2-results__option--loading {
  padding: 0.75rem 1rem;
  color: #94a3b8;
}

/* No results */
.select2-container--default .select2-results__option.select2-results__message {
  padding: 1rem;
  text-align: center;
  color: #64748b;
  font-style: italic;
}

/* Select2 responsive */
@media (max-width: 768px) {
  .select2-container--default .select2-selection--single {
    padding: 0.625rem 0.875rem;
  }

  .select2-dropdown {
    font-size: 0.9rem;
  }
}

/* Reset Button Area */
.reset-area {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.button.gray {
  background: #64748b;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.button.gray:hover {
  background: #475569;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* Download Button */
.content > p > .button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.content > p > .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Table Area */
.table-area {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
  border: 1px solid #e2e8f0;
}

.table-area > p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.table-area > p a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.table-area > p a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

/* Showing Records Info */
.showing {
  background: #f1f5f9;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
  border-left: 4px solid #667eea;
}

/* Modern Table Styles */
.browse-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  font-size: 0.95rem;
  border: none;
  overflow: hidden;
  border-radius: 12px;
}

.browse-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  position: sticky;
  top: 0;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
}

.browse-table th:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.browse-table th:first-child {
  border-top-left-radius: 12px;
}

.browse-table th:last-child {
  border-top-right-radius: 12px;
}

.browse-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-table tr:hover td {
  background: #f8fafc;
}

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

.browse-table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.browse-table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Download Links in Table */
.browse-table td a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: #ede9fe;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.2s ease;
}

.browse-table td a:hover {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Table Navigation */
.table-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.table-nav a {
  padding: 0.75rem 1.5rem;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid #667eea;
  transition: all 0.3s ease;
}

.table-nav a:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.table-nav a.prev::before {
  content: "← ";
}

.table-nav a.next::after {
  content: " →";
}

/* Note */
.note {
  color: #64748b;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #cbd5e1;
}

/* Tooltip */
.tooltip-wrapper {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
}

.ttip {
  background: #1e293b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  max-width: 300px;
  word-wrap: break-word;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: absolute;
}

/* Responsive Design */
@media (max-width: 768px) {
  .selections {
    padding: 1.5rem;
  }

  .selections form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .table-area {
    padding: 1rem;
    overflow-x: auto;
  }

  .browse-table {
    font-size: 0.85rem;
  }

  .browse-table th,
  .browse-table td {
    padding: 0.75rem 0.5rem;
  }

  .table-nav {
    flex-direction: column;
  }

  .table-nav a {
    width: 100%;
    text-align: center;
  }
}

/* Loading State */
.selections select:disabled {
  background-color: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Active Filter Indicator */
.selections select[value]:not([value=""]):not([value="All"]) {
  border-color: #10b981;
  background-color: #f0fdf4;
}

/* Sort Indicator for Table Headers */
.browse-table th.sorttable_sorted::after,
.browse-table th.sorttable_sorted_reverse::after {
  content: "";
  display: inline-block;
  margin-left: 0.5rem;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.browse-table th.sorttable_sorted::after {
  border-top: 5px solid white;
}

.browse-table th.sorttable_sorted_reverse::after {
  border-bottom: 5px solid white;
}

/* Filter Badge Count */
.selections form > p {
  position: relative;
}

.selections select option {
  padding: 0.5rem;
}

/* Smooth Transitions */
* {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
