:root {
    --bg-color: #1e1e2f;
    --sidebar-bg: #27293d;
    --content-bg: #f4f5f7;
    --text-color: #333;
    --sidebar-text: #c0c5e4;
    --accent-color: #8952e9;
    --accent-color-light: #a379ff;
    --border-color: #e0e0e0;

    --method-get: #61affe;
    --method-post: #49cc90;
    --method-put: #fca130;
    --method-delete: #f93e3e;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--content-bg);
    display: flex;
}

.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    border-right: 1px solid #3a3c5a;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #3a3c5a;
}

.logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.sidebar-header h1 {
    margin: 0;
    font-size: 1.5em;
    color: #fff;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar nav ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.sidebar nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar nav ul li a.active {
    background-color: rgba(137, 82, 233, 0.2);
    color: #fff;
    border-left-color: var(--accent-color);
}

.sidebar nav ul ul {
    margin: 5px 0 5px 15px;
}

.sidebar nav ul ul a {
    font-size: 0.9em;
    padding-left: 30px;
}

.sidebar nav ul ul ul a {
    font-size: 0.85em;
    padding-left: 45px;
}

.content {
    margin-left: 280px;
    padding: 40px;
    width: calc(100% - 280px);
}

section {
    margin-bottom: 60px;
    scroll-margin-top: 20px;
}

h2, h3, h4, h5 {
    color: #2c3e50;
}

h2 {
    font-size: 2.2em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-top: 40px;
}

h4 {
    font-size: 1.4em;
    margin-top: 30px;
}

h5 {
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
}

code {
    font-family: 'Roboto Mono', monospace;
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

pre code {
    font-size: 0.95em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color-light);
    text-decoration: underline;
}

.note {
    background-color: #e7f3fe;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.endpoint {
    border-left: 3px solid var(--border-color);
    padding-left: 20px;
    margin-bottom: 40px;
}

.method {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 10px;
    font-family: 'Roboto Mono', monospace;
}
.method.get { background-color: var(--method-get); }
.method.post { background-color: var(--method-post); }
.method.put { background-color: var(--method-put); }
.method.delete { background-color: var(--method-delete); }


@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #3a3c5a;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
}

