/*! normalize.css v2.1.0 | MIT License | git.io/normalize */

/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
    display: block;
}

audio, canvas, video {
    display: inline-block;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden] {
    display: none;
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 960px;
}

/* ==========================================================================
   Links
   ========================================================================== */

a:focus {
    outline: thin dotted;
}

a:active, a:hover {
    outline: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: bold;
}

dfn {
    font-style: italic;
}

hr {
    box-sizing: content-box;
    height: 0;
}

mark {
    background: #ff0;
    color: #000;
}

code, kbd, pre, samp {
    font-family: 'Fira Code', 'Monaco', monospace, sans-serif;
    font-size: 1em;
}

pre {
    white-space: pre-wrap;
}

q {
    quotes: "\201C" "\201D" "\2018" "\2019";
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* ==========================================================================
   Embedded content
   ========================================================================== */

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

legend {
    border: 0;
    padding: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}

button, input {
    line-height: normal;
}

button, select {
    text-transform: none;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled], html input[disabled] {
    cursor: default;
}

input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="search"] {
    -webkit-appearance: textfield;
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
    vertical-align: top;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   GENERAL STYLES
   ========================================================================== */

html, body {
    height: 100%;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

body, input, textarea {
    color: #2d3748;
    font: 15px/1.6 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: none;
}

h1, h2, h3, h4, p, ul, code {
    margin: 0 0 20px;
}

code {
    font-family: 'Fira Code', 'Monaco', monospace, sans-serif;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

#sidebar {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    float: left;
    height: 100%;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 280px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

#sidebar::-webkit-scrollbar {
    width: 8px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#sidebar h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#sidebar h2 {
    color: #a0aec0;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

#sidebar ul#links {
    padding: 24px;
}

#sidebar ul ul {
    padding-left: 16px;
    margin-top: 8px;
}

#sidebar ul li a {
    color: #e2e8f0;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

#sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transform: translateX(4px);
}

#sidebar ul li a:active,
#sidebar ul li a.active {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
    text-decoration: none;
}

#sidebar input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    margin-bottom: 20px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#sidebar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#sidebar input:active,
#sidebar input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

#content {
    padding: 40px;
    padding-left: 320px;
    max-width: 900px;
}

#content .control {
    cursor: pointer;
    font-size: 12px;
    margin-left: 15px;
    color: #667eea;
    transition: color 0.2s ease;
}

#content .control:hover {
    color: #764ba2;
}

#content article {
    clear: both;
    margin: 0 0 24px;
}

#content article > a {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    cursor: pointer;
    display: block;
    padding: 20px 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#content article > a:hover {
    background: rgba(255, 255, 255, 1);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

#content a h2 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#content a h2 code {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#content a h2 code b {
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Method Colors */
#content article.GET a h2 code b {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

#content article.POST a h2 code b {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#content article.PUT a h2 code b {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

#content article.DELETE a h2 code b {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

#content article a h2 code b {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Body Content */
#content .body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: block;
    padding: 24px;
    margin-top: 8px;
}

#content .body h3 {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

#content .body code {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    padding: 2px 6px;
    font-size: 13px;
}

#content .body p > code {
    display: block;
    padding: 16px;
    white-space: pre;
    line-height: 1.5;
    overflow-x: auto;
}

#content .body p > code::-webkit-scrollbar {
    height: 8px;
}

#content .body p > code::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#content .body p > code::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#content .body p > code::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}
