/* API Documentation Styles */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #dee2e6;
  --code-bg: #f8f9fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
}

.api-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.api-header {
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}

.api-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.api-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.endpoint-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.endpoint-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.endpoint-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.method-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.method-get { background-color: var(--success-color); color: white; }
.method-post { background-color: var(--primary-color); color: white; }
.method-put { background-color: var(--warning-color); color: #212529; }
.method-delete { background-color: var(--danger-color); color: white; }

.endpoint-path {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  flex-grow: 1;
}

.endpoint-description {
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.endpoint-body {
  padding: 1.5rem;
}

.parameters-section, .response-section {
  margin-bottom: 1.5rem;
}

.parameters-section h5, .response-section h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-color);
}

.parameter-table {
  width: 100%;
  border-collapse: collapse;
}

.parameter-table th,
.parameter-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.parameter-table th {
  background-color: var(--light-color);
  font-weight: 600;
  color: var(--dark-color);
}

.parameter-name {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-weight: 600;
  color: var(--primary-color);
}

.parameter-type {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background-color: var(--code-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.parameter-required {
  font-size: 0.875rem;
  font-weight: 600;
}

.required { color: var(--danger-color); }
.optional { color: var(--secondary-color); }

.response-example {
  background-color: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-x: auto;
}

.status-codes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.status-code {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-200 { background-color: var(--success-color); color: white; }
.status-400 { background-color: var(--warning-color); color: #212529; }
.status-404 { background-color: var(--secondary-color); color: white; }
.status-500 { background-color: var(--danger-color); color: white; }

.info-section {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.info-section h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

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

.info-item {
  padding: 1rem;
  background-color: var(--light-color);
  border-radius: 0.25rem;
  border-left: 4px solid var(--primary-color);
}

.info-item h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-size: 0.95rem;
  font-weight: 600;
}

.info-item p {
  margin-bottom: 0;
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* Production URL */
.production-url {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  margin: 1rem auto;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.production-url a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: underline;
}

.production-url a:hover {
  color: #f0f0f0 !important;
}

.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--secondary-color);
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .api-header h1 {
    font-size: 2rem;
  }
  
  .endpoint-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .endpoint-path {
    font-size: 1rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
} 