.drugs-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
  min-height: 100vh;
}

.drugs-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.drugs-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-description {
  max-width: 600px;
  margin: 1rem auto 0;
  color: #6B7280;
  font-size: 1.1rem;
  line-height: 1.6;
}

.search-section {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  margin: 0 -2rem;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.search-section.focused {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr;
}

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

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

.search-input {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 2.5rem;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
}

.search-input:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.clear-search {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: all 0.2s ease;
}

.clear-search:hover {
  color: #6B7280;
}

.search-stats {
  font-size: 0.875rem;
  color: #6B7280;
  text-align: right;
}

.category-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.category-select:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.drugs-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  color: #6B7280;
}

.category-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.category-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: white;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.category-count {
  font-size: 0.875rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: transparent;
}

.table-container::-webkit-scrollbar-thumb {
  background-color: rgba(99, 102, 241, 0.3);
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th {
  background: rgba(99, 102, 241, 0.05);
  color: #4F46E5;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
  white-space: nowrap;
}

td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #1F2937;
  border-bottom: 1px solid rgba(99, 102, 241, 0.05);
  transition: background-color 0.15s ease;
}

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

tr:hover td {
  background: rgba(99, 102, 241, 0.02);
}

.source-info {
  margin-top: 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.source-info h3 {
  color: #1F2937;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.source-info p {
  color: #6B7280;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.source-link {
  display: inline-block;
  color: #6366F1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.05);
}

.source-link:hover {
  color: #4F46E5;
  background: rgba(99, 102, 241, 0.1);
}

.update-time {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9CA3AF;
}

@media (max-width: 768px) {
  .search-container {
    grid-template-columns: 1fr;
  }

  .search-section {
    margin: 0 -1rem;
    padding: 1rem;
  }

  .category-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  th, td {
    padding: 0.75rem 1rem;
  }

  .source-info {
    padding: 1.5rem;
    margin: 2rem -1rem 0;
    border-radius: 0;
  }

  .drugs-title {
    font-size: 1.75rem;
  }

  .page-description {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .drugs-container {
    padding: 5rem 1rem 1rem;
  }

  .category-section {
    border-radius: 12px;
  }

  td {
    font-size: 0.8125rem;
  }
} 