:root {
  --doc-primary: #0d6efd;
  --doc-success: #198754;
  --doc-warning: #ffc107;
  --doc-danger: #dc3545;
  --doc-info: #0dcaf0;
  --bg-card: rgba(17, 34, 64, 0.7);
}

.status-codes-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(4px);
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.status-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.status-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.status-code-badge {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'SF Mono', monospace;
  min-width: 60px;
}

.status-desc {
  color: var(--text-secondary);
}

.category-tabs {
  display: flex;
  gap: 2.5rem;
  border-bottom: 2px solid rgba(100, 255, 218, 0.1);
  margin-bottom: 2rem;
  padding-bottom: 0.3rem;
}

.category-tab {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0;
  position: relative;
  transition: 0.2s;
}

.category-tab.active {
  color: var(--doc-primary);
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--doc-primary);
  border-radius: 2px;
}

.api-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.api-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  overflow: hidden;
}

.api-item:hover {
  border-color: var(--doc-primary);
}

.api-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
}

.api-method {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  min-width: 60px;
  text-align: center;
}

.method-get {
  background: rgba(13,110,253,0.2);
  color: #6ea8fe;
  border: 1px solid rgba(13,110,253,0.3);
}

.method-post {
  background: rgba(25,135,84,0.2);
  color: #75b798;
  border: 1px solid rgba(25,135,84,0.3);
}

.method-put {
  background: rgba(255,193,7,0.2);
  color: #ffda6a;
  border: 1px solid rgba(255,193,7,0.3);
}

.method-delete {
  background: rgba(220,53,69,0.2);
  color: #ea868f;
  border: 1px solid rgba(220,53,69,0.3);
}

.api-name {
  font-family: 'SF Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.api-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  background: rgba(0,0,0,0.3);
  margin-right: 0.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.indicator-active {
  background: #198754;
  box-shadow: 0 0 8px #198754;
}

.indicator-error {
  background: #dc3545;
  box-shadow: 0 0 8px #dc3545;
}

.indicator-maintenance {
  background: #ffc107;
  box-shadow: 0 0 8px #ffc107;
}

.api-chevron {
  color: var(--text-muted);
  transition: transform 0.3s;
  margin-left: 0.25rem;
}

.api-item.expanded .api-chevron {
  transform: rotate(180deg);
}

.api-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  border-top: 0 solid var(--border);
}

.api-item.expanded .api-body {
  max-height: 1200px;
  border-top-width: 1px;
  border-top-color: var(--border);
}

.api-content {
  padding: 1.5rem;
  background: rgba(0,0,0,0.2);
}

.param-input {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: white;
  width: 100%;
  margin: 0.5rem 0;
}

.param-input:focus {
  outline: none;
  border-color: var(--doc-primary);
}

.param-label {
  color: white !important;
  font-size: 0.9rem;
}

.required-star {
  color: #dc3545;
}

.execute-btn {
  background: var(--doc-primary);
  border: none;
  color: white;
  padding: 0.6rem 2rem;
  border-radius: 40px;
  font-weight: 500;
  margin: 1rem 0 1.2rem;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.execute-btn:hover {
  background: #0b5ed7;
  transform: scale(1.02);
}

.curl-box {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  font-family: 'SF Mono', monospace;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.curl-text {
  color: #f8f8f2;
  word-break: break-all;
}

.curl-method {
  color: #6ea8fe;
  font-weight: 600;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 30px;
  padding: 0.4rem 1rem;
  transition: 0.2s;
}

.copy-btn:hover {
  border-color: var(--doc-primary);
  color: white;
}

.response-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.response-status-badge {
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge-success {
  background: rgba(25,135,84,0.2);
  color: #75b798;
  border: 1px solid rgba(25,135,84,0.3);
}

.status-badge-error {
  background: rgba(220,53,69,0.2);
  color: #ea868f;
  border: 1px solid rgba(220,53,69,0.3);
}

.status-badge-warning {
  background: rgba(255,193,7,0.2);
  color: #ffda6a;
  border: 1px solid rgba(255,193,7,0.3);
}

.response-area {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  font-family: 'SF Mono', monospace;
  font-size: 0.9rem;
  color: #f8f8f2;
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
}

.response-empty {
  color: var(--text-muted);
  font-style: italic;
}

.spinner-wrapper {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.spinner-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--doc-primary);
  animation: pulse 1.2s infinite ease-in-out;
}

.spinner-circle:nth-child(2) {
  animation-delay: 0.2s;
  background-color: white;
}

.spinner-circle:nth-child(3) {
  animation-delay: 0.4s;
  background-color: var(--doc-primary);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}