.api-detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.api-detail-header .apis-title {
  flex: 0 0 auto;
  margin-right: 0;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #18181b;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  text-decoration: none;
}

.back-button:hover {
  background: #f4f4f5;
  border: 1px solid #d1d5db;
}

.back-arrow {
  font-size: 18px;
  font-weight: 600;
}

.edit-button {
  padding: 10px 20px;
  background: #166534;
  color: #fff;
  border: 1px solid #166534;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.edit-button:hover {
  background: #15803d;
  border: 1px solid #15803d;
}

.edit-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.save-button {
  padding: 10px 20px;
  background: #166534;
  color: #fff;
  border: 1px solid #166534;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.save-button:hover:not(:disabled) {
  background: #15803d;
  border: 1px solid #15803d;
}

.save-button:disabled {
  background: #9ca3af;
  border: 1px solid #9ca3af;
  cursor: not-allowed;
}

.cancel-button {
  padding: 10px 20px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.cancel-button:hover:not(:disabled) {
  background: #f4f4f5;
  border: 1px solid #d1d5db;
  color: #18181b;
}

.cancel-button:disabled {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.delete-button {
  padding: 10px 20px;
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.delete-button:hover:not(:disabled) {
  background: #b91c1c;
  border: 1px solid #b91c1c;
}

.delete-button:disabled {
  background: #9ca3af;
  border: 1px solid #9ca3af;
  cursor: not-allowed;
}

.api-detail-content {
  max-width: 800px;
}

.api-detail-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(16,30,54,0.04);
  padding: 32px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #18181b;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-value {
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #18181b;
  min-height: 20px;
  display: flex;
  align-items: center;
}

.form-input {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #18181b;
  background: #fff;
  transition: border 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border: 1.5px solid #18181b;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-textarea {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #18181b;
  background: #fff;
  transition: border 0.2s;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
}

.form-textarea:focus {
  outline: none;
  border: 1.5px solid #18181b;
}

.form-textarea::placeholder {
  color: #9ca3af;
}

.form-select {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #18181b;
  background: #fff;
  transition: border 0.2s;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border: 1.5px solid #18181b;
}

.groups-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.groups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-tag {
  background: #f4f4f5;
  color: #18181b;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.remove-group-btn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.remove-group-btn:hover {
  background: #fee2e2;
}

.add-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.add-group .form-input {
  flex: 1;
}

.add-button {
  padding: 8px 16px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  white-space: nowrap;
}

.add-button:hover {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content h2 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #18181b;
}

.modal-content p {
  margin: 0 0 16px 0;
  color: #6b7280;
  line-height: 1.5;
}

.modal-content strong {
  color: #18181b;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #18181b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-container {
  margin-bottom: 24px;
}

.error-message {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 8px;
  margin-bottom: 1rem;
} 