/* Swagger UI Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Malgun Gothic', '맑은 고딕', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #3b4151;
  background-color: #fafafa;
}

.swagger-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.swagger-header {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 24px 30px;
  margin-bottom: 20px;
}

.swagger-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.swagger-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #3b4151;
}

.swagger-version {
  background: #49cc90;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.swagger-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.swagger-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.swagger-base-url code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.swagger-link {
  color: #4990e2;
  text-decoration: none;
  font-weight: 500;
}

.swagger-link:hover {
  text-decoration: underline;
}

/* Endpoint */
.endpoint {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
}

.endpoint-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  gap: 12px;
  transition: background 0.15s;
}

.endpoint-header:hover {
  background: #f8f8f8;
}

/* Method badge */
.method {
  display: inline-block;
  min-width: 55px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
}

.method-get {
  background: #61affe;
}

.method-post {
  background: #49cc90;
}

.method-put {
  background: #fca130;
}

.method-delete {
  background: #f93e3e;
}

.path {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #3b4151;
}

.summary {
  font-size: 13px;
  color: #888;
  flex: 1;
}

.toggle-icon {
  font-size: 18px;
  font-weight: 700;
  color: #aaa;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Endpoint Body */
.endpoint-body {
  display: none;
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
}

.endpoint-body.open {
  display: block;
}

.endpoint-desc {
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: #3b4151;
  margin-bottom: 8px;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e0e0;
}

.section-label:first-of-type {
  margin-top: 0;
}

.no-params {
  font-size: 13px;
  color: #999;
  font-style: italic;
  margin-bottom: 8px;
}

/* Response */
.response-block {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.response-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f0f8f0;
  border-bottom: 1px solid #e0e0e0;
}

.status-code {
  display: inline-block;
  background: #49cc90;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

.status-desc {
  font-size: 13px;
  color: #555;
}

.response-schema {
  padding: 14px;
}

.schema-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.schema-content {
  font-size: 13px;
}

.schema-row {
  padding: 4px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.schema-key {
  font-family: 'Consolas', 'Monaco', monospace;
  font-weight: 600;
  color: #3b4151;
}

.schema-type {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

.schema-desc {
  font-size: 12px;
  color: #666;
}

.schema-example-inline {
  font-size: 11px;
  color: #49cc90;
  background: #f0f8f0;
  padding: 1px 6px;
  border-radius: 3px;
}

.schema-example {
  background: #2d2d2d;
  color: #ccc;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Consolas', 'Monaco', monospace;
  overflow-x: auto;
  margin: 8px 0;
}

/* Try it out */
.try-it {
  margin-top: 16px;
}

.try-btn {
  background: #4990e2;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.try-btn:hover {
  background: #357abd;
}

.try-result {
  display: none;
  margin-top: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.try-result.open {
  display: block;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #f0f8f0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  font-weight: 600;
}

.result-body {
  background: #2d2d2d;
  color: #a9dc76;
  padding: 14px;
  font-size: 12px;
  font-family: 'Consolas', 'Monaco', monospace;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre;
  margin: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .swagger-container {
    padding: 10px;
  }

  .endpoint-header {
    flex-wrap: wrap;
  }

  .summary {
    width: 100%;
    margin-top: 4px;
  }

  .schema-row {
    flex-direction: column;
    gap: 2px;
  }
}