/* NEW 뱃지 스타일 */
.badge-new {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 12px;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* API 카운터 스타일 */
.api-counter {
  display: inline-block;
  margin-left: 10px;
  padding: 6px 15px;
  background-color: #89bf04;
  color: #3b4151;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  vertical-align: baseline;
  position: relative;
  top: -14px;
}

/* 전체 번호 스타일 */
.api-global-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  margin-right: 10px;
  background-color: #ccc907;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 그룹 번호 스타일 */
.api-group-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 4px 8px;
  margin-right: 10px;
  background-color: #3b4151;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  flex-shrink: 0;
}

/* opblock-summary 레이아웃 조정 */
.swagger-ui .opblock-summary {
  display: flex;
  align-items: center;
}

.swagger-ui .opblock-summary-path {
  display: flex;
  align-items: center;
}

/* Swagger UI 커스터마이징 */
.swagger-ui .topbar {
  background-color: #2c3e50;
}

.swagger-ui .info .title {
  color: #2c3e50;
}

/* Parameter input height 조정 */
.swagger-ui .parameters-col_description input[type="text"] {
  min-height: 50px !important;
  max-height: 50px !important;
  height: 50px !important;
  padding: 8px !important;
  line-height: 1.4 !important;
}

/* Request body 영역 input height 조정 (4줄) */
.swagger-ui .body-param textarea,
.swagger-ui .body-param__text {
  min-height: 100px !important;
  max-height: 100px !important;
  height: 100px !important;
  padding: 10px !important;
  line-height: 1.5 !important;
}

/* NEW 필터 버튼 스타일 */
.new-filter-button {
  /* position: fixed; */
  position: absolute;
  top: 80px;
  right: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.new-filter-button:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.new-filter-button.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* NEW 필터 활성화 시 숨김 처리 */
.hide-non-new .opblock:not(.has-new-badge) {
  display: none !important;
}

/* NEW 뱃지가 있는 API는 항상 표시 */
.hide-non-new .opblock.has-new-badge {
  display: block !important;
}

/* 태그 섹션은 항상 표시 */
.hide-non-new .opblock-tag-section {
  display: block !important;
}
