.datapack-tab-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.datapack-controls {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.section-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.section-btn i {
  font-size: 1.1rem;
}
.section-btn span {
  font-size: 0.75rem;
  font-family: "Orbitron", sans-serif;
}

.section-btn.active {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-bar i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-bar input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  background: #0a0a0c;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
}

.datapack-content {
  flex: 1;
  padding: 20px;
}

.datapack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding-bottom: 30px;
}

.datapack-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.card-icon img {
  max-width: 32px;
}

.card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-name {
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-id {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.card-meta {
  font-size: 0.7rem;
  color: var(--primary-color);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .datapack-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .datapack-controls {
    padding: 10px;
  }

  .section-btn {
    padding: 8px 5px;
  }

  .section-btn span {
    font-size: 0.65rem;
  }
}
