:root {
    --primary-blue: #0f62fe;
    --post-green: #198754;
    --sidebar-bg: #f7f8fa;
    --content-bg: #ffffff;
    --text-color: #1c1c1c;
    --secondary-text-color: #525252;
    --border-color: #e5e5e5;
    --code-bg: #2d2d2d;
    --header-bg: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--content-bg);
    color: var(--text-color);
}

.top-bar {
    height: 4px;
    width: 100%;
    background-color: var(--header-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.api-documentation {
    display: flex;
    padding-top: 4px;
}

.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: calc(100% - 4px);
    overflow-y: auto;
    padding-top: 20px;
}

.logo {
    padding: 0 24px 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    width: 100px;
}

.navigation {
    padding: 16px 0;
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-category .category-header {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-text-color);
}

.nav-category .category-header .arrow {
    border: solid var(--secondary-text-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-right: 12px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.nav-category.active .category-header .arrow,
.nav-category .category-header .arrow.open {
    transform: rotate(-135deg);
}


.endpoints-list {
    list-style: none;
    padding-left: 20px;
}

.endpoints-list li a {
    display: flex;
    align-items: center;
    padding: 8px 30px;
    text-decoration: none;
    color: var(--secondary-text-color);
    font-size: 14px;
    border-left: 2px solid transparent;
}

.endpoints-list li.active a {
    background-color: #e8f0ff;
    color: var(--primary-blue);
    border-left: 2px solid var(--primary-blue);
    font-weight: 500;
}

.method-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    color: white;
    text-transform: uppercase;
}
.method-tag.post { background-color: var(--primary-blue); }

.content {
    margin-left: 280px;
    padding: 30px 40px;
    width: calc(100% - 360px);
    height: calc(100vh - 4px);
    overflow-y: auto;
}

.main-header {
    margin-bottom: 40px;
}

.main-header h1 {
    font-size: 2.5em;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.postman-download {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f0f1f2;
    padding: 15px;
    border-radius: 5px;
}

#download-btn {
    background-color: #e0e2e5;
    border: 1px solid #c0c2c5;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.content-section-title {
    font-size: 1.8em;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-top: 50px;
    margin-bottom: 30px;
}

.content-section-title:first-of-type {
    margin-top: 0;
}

.api-endpoint {
    margin-bottom: 20px;
    scroll-margin-top: 40px; /* Offset for scroll position */
}

.api-endpoint h3 {
    font-size: 1.5em;
    font-weight: 600;
}

.endpoint-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    background-color: #f7f8fa;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.endpoint-method {
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 4px;
    font-family: monospace;
    color: white;
}

.endpoint-method.post { background-color: var(--post-green); }

.endpoint-path {
    font-family: monospace;
    font-size: 1.1em;
    color: var(--text-color);
}

.api-endpoint h4 {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.parameters-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.parameters-table th, .parameters-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.parameters-table th {
    font-weight: 600;
    color: var(--secondary-text-color);
}

.parameters-table code {
    background-color: #e8e8e8;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

h4 + .parameters-table,
pre + h4 {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.example-response h5 {
    font-size: 1em;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

pre {
    background-color: var(--code-bg);
    color: #f8f8f2;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    position: relative;
    margin-top: 0;
    margin-bottom: 20px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #555;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: sans-serif;
    font-size: 12px;
}

pre:hover .copy-btn {
    opacity: 1;
}
