/* API Documentation Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.content {
    padding: 40px;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #2a5298;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.endpoint-group {
    margin-bottom: 30px;
}

.endpoint-group h3 {
    color: #444;
    font-size: 1.4em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.endpoint-group h3::before {
    content: "📍";
}

.endpoint {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.endpoint:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85em;
    margin-right: 10px;
}

.method.get { background: #28a745; color: white; }
.method.post { background: #007bff; color: white; }
.method.put { background: #ffc107; color: #333; }
.method.patch { background: #17a2b8; color: white; }
.method.delete { background: #dc3545; color: white; }

.route {
    font-family: 'Courier New', monospace;
    color: #2a5298;
    font-weight: bold;
}

.description {
    color: #666;
    margin-top: 5px;
    font-size: 0.95em;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    margin-left: 10px;
    font-weight: 600;
}

.badge.public {
    background: #d4edda;
    color: #155724;
}

.badge.protected {
    background: #fff3cd;
    color: #856404;
}

.badge.admin {
    background: #f8d7da;
    color: #721c24;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box h4 {
    color: #1976D2;
    margin-bottom: 10px;
}

.info-box ul {
    list-style: none;
    padding-left: 20px;
}

.info-box li::before {
    content: "→ ";
    color: #2196F3;
    font-weight: bold;
}

footer {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    color: #666;
    border-top: 1px solid #dee2e6;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #28a745;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    margin-left: 10px;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.payload-section {
    margin-top: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.payload-header {
    background: #495057;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payload-header.request {
    background: #007bff;
}

.payload-header.response {
    background: #28a745;
}

.payload-body {
    padding: 0;
    background: #282c34;
}

pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    background: #282c34;
    color: #abb2bf;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.5;
}

.json-key {
    color: #e06c75;
}

.json-string {
    color: #98c379;
}

.json-number {
    color: #d19a66;
}

.json-boolean {
    color: #56b6c2;
}

.json-null {
    color: #c678dd;
}

.endpoint-detail {
    margin-top: 10px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.param-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.param-table th {
    background: #f8f9fa;
    padding: 8px;
    text-align: left;
    border: 1px solid #dee2e6;
    font-size: 0.85em;
}

.param-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.85em;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.optional {
    color: #6c757d;
    font-style: italic;
}

details {
    margin-top: 10px;
}

summary {
    cursor: pointer;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    font-weight: bold;
    user-select: none;
}

summary:hover {
    background: #dee2e6;
}

.type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
    background: #6c757d;
    color: white;
}
