/* Swagger UI Inspired Styles */
:root {
    --swagger-bg: #fafafa;
    --swagger-header: #1b1b1b;
    --swagger-green: #49cc90;
    --swagger-blue: #61affe;
    --swagger-red: #f93e3e;
    --swagger-orange: #fca130;
    --swagger-text: #3b4151;
    --swagger-text-light: #6b7280;
    --swagger-border: #e8e8e8;
    --swagger-card: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--swagger-bg);
    color: var(--swagger-text);
    line-height: 1.6;
}

/* Header Styles */
.swagger-header {
    background: var(--swagger-header);
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.2em;
}

.brand-text {
    background: linear-gradient(135deg, #49cc90, #61affe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #e8e8e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* Main Content */
.swagger-main {
    min-height: calc(100vh - 120px);
    padding: 40px 0;
}

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

/* Card Components */
.swagger-card {
    background: var(--swagger-card);
    border: 1px solid var(--swagger-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: 1px solid var(--swagger-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--swagger-text);
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--swagger-text-light);
    font-size: 0.95em;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: var(--swagger-green);
    color: white;
}

.btn-primary:hover {
    background: #3da876;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--swagger-blue);
    color: white;
}

.btn-secondary:hover {
    background: #4a9de5;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--swagger-border);
    color: var(--swagger-text);
}

.btn-outline:hover {
    background: var(--swagger-bg);
    border-color: var(--swagger-text-light);
}

.btn-warning {
    background: var(--swagger-orange);
    color: white;
}

.btn-warning:hover {
    background: #e8912b;
}

.btn-danger {
    background: var(--swagger-red);
    color: white;
}

.btn-danger:hover {
    background: #e03535;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--swagger-text);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--swagger-border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--swagger-green);
    box-shadow: 0 0 0 3px rgba(73, 204, 144, 0.1);
}

/* Code and Token Styles */
.code-block {
    background: #1b1b1b;
    color: #e8e8e8;
    padding: 16px;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9em;
    overflow-x: auto;
    margin: 16px 0;
}

.token-box {
    background: #1b1b1b;
    color: #49cc90;
    padding: 16px;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9em;
    word-break: break-all;
    border: 1px solid #333;
}

/* Alert Styles */
.alert {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #f0f9f4;
    border-color: var(--swagger-green);
    color: #0f5132;
}

.alert-error {
    background: #fef2f2;
    border-color: var(--swagger-red);
    color: #721c24;
}

.alert-warning {
    background: #fffbeb;
    border-color: var(--swagger-orange);
    color: #856404;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* Footer */
.swagger-footer {
    background: var(--swagger-header);
    color: #e8e8e8;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-nav {
        gap: 12px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .swagger-card {
        padding: 16px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none; }

/* API Method Badges */
.method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.method-get { background: #e3f2fd; color: #1976d2; }
.method-post { background: #e8f5e8; color: #388e3c; }
.method-put { background: #fff3e0; color: #f57c00; }
.method-delete { background: #ffebee; color: #d32f2f; }