/* Premium API Documentation Styles */
:root {
    --primary-color: #b90000;
    --secondary-color: #00baa3; /* Example secondary */
    --text-color: #333;
    --mute-color: #6c757d;
    --sidebar-bg: #f8f9fa;
    --sidebar-active-bg: #e9ecef;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --code-bg: #2d2d2d;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #fafafa;
}

/* Sidebar Styles */
.api-sidebar {
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    height: 100vh; /* Sticky full height */
    position: sticky;
    top: 0;
    padding-top: 2rem;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.02);
}

.api-sidebar .txt {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--mute-color);
    padding: 0.5rem 1.5rem;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    display: block;
}

.api-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.api-sidebar a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.api-sidebar a:hover {
    background-color: var(--sidebar-active-bg);
    color: var(--primary-color);
}

.api-sidebar a.active {
    background-color: #fff1f1;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Main Content Area */
.api-content-wrapper {
    padding: 2rem 3rem;
    max-width: 1200px;
}

.api-section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
}

.api-section h4 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.api-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 50px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.endpoint-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.endpoint-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.method-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-right: 1rem;
    letter-spacing: 0.5px;
}

.method-post {
    background-color: #e6f7ff;
    color: #007bff;
    border: 1px solid #b3e0ff;
}

.method-get {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.endpoint-url {
    font-family: 'Fira Code', monospace;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: #333;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

h5, h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #444;
}

/* Tables */
.table-params {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

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

.table-params th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mute-color);
}

.table-params td {
    font-size: 0.95rem;
}

/* Code Blocks */
.code-container {
    background-color: var(--code-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    position: relative;
}

.code-container select {
    background: #444;
    color: #fff;
    border: 1px solid #555;
    padding: 0.3rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.CodeMirror {
    height: auto !important;
    min-height: 100px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .api-sidebar {
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
}

