/* static/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono&display=swap');

:root {
    --bg-color: #f8f9fa;
    --sidebar-bg: #ffffff;
    --content-bg: #ffffff;
    --text-color: #212529;
    --text-muted: #6c757d;
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --border-color: #dee2e6;
    --code-bg: #282c34;
    --code-text: #abb2bf;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1.5rem;
    box-sizing: border-box;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 2rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
    background-color: #e9ecef;
    color: var(--text-color);
}

.sidebar-nav a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.main-content {
    margin-left: 260px;
    padding: 2rem 3rem;
    width: calc(100% - 260px);
}

h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

p, li {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #495057;
}

code {
    font-family: 'Roboto Mono', monospace;
    background-color: #e9ecef;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: #c7254e;
}

pre {
    position: relative;
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
    margin: 1rem 0;
}

.code-block-header {
    background-color: #3e4451;
    padding: 0.5rem 1.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #9da5b4;
    font-size: 0.85em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-button {
    background: #4a505e;
    color: #abb2bf;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.copy-button:hover {
    background: #5c6370;
}

.http-method {
    font-family: 'Roboto Mono', monospace;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}
.http-method.get { background-color: #0d6efd; }
.http-method.post { background-color: #198754; }
.http-method.put { background-color: #ffc107; color: #212529; }
.http-method.delete { background-color: #dc3545; }

.api-endpoint {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.api-endpoint .endpoint-url {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
}