/* 탭 네비게이션 및 TOOLS 페이지 공통 스타일 */
.tab-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  gap: 6px;
  background-color: #f1f3f5;
  padding: 4px;
  border-radius: 24px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 7px 24px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #666;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.tab-btn:hover {
  color: #222;
}

.tab-btn.active {
  background-color: #ffffff;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 탭 컨텐츠 영역 */
.tab-content {
  display: none;
  width: 100%;
  animation: fadeIn 0.2s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

/* TOOLS 리스트 섹션 */
.category-section {
  margin-bottom: 24px;
}

.category-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 4px;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid var(--hover-border, #e9ecef);
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  gap: 12px;
  box-sizing: border-box;
}

.tool-item:hover {
  background-color: var(--hover-bg, #f8f9fa);
  border-color: #dcdfe3;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tool-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #212529;
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-desc {
  font-size: 12.5px;
  color: #6c757d;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 500px) {
  .tool-item {
    padding: 9px 12px;
    gap: 8px;
  }

  .tool-name {
    font-size: 12.5px;
  }

  .tool-desc {
    font-size: 11.5px;
  }
}
