/* 
 * Documenter 3.0 (Modernized Edition)
 * Original Copyright 2011, Xaver Birsak (http://revaxarts.com)
 * Modernized with Flexbox, CSS Grid, variables, and clean typography.
 */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #374151;
    --text-muted: #6b7280;
    --bg-main: #f9fafb;
    --bg-sidebar: #ffffff;
    --border-color: #e5e7eb;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; font-weight: 600; margin-top: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-top: 1.75rem; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; color: var(--text-muted); }

p {
    margin-bottom: 1.25rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Lists & Tables */
ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

ul li { list-style-type: disc; }
ol li { list-style-type: decimal; }
li { margin-bottom: 0.5rem; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

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

table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #111827;
}

/* UI Components & Utilities */
hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    color: #db2777;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn:active {
    background-color: #f3f4f6;
}

/* Application Layout Structure */
#documenter_sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 50;
}

#documenter_logo {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-color);
}

#documenter_sidebar ul {
    list-style: none;
    padding: 1rem 0;
    overflow-y: auto;
    flex: 1;
}

#documenter_sidebar ul li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.925rem;
    border-left: 3px solid transparent;
}

#documenter_sidebar ul li a:hover, 
#documenter_sidebar ul li a.current {
    background-color: #f3f4f6;
    color: var(--primary-color);
    text-decoration: none;
    border-left-color: var(--primary-color);
}

#documenter_copyright {
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

#documenter_content {
    margin-left: 260px;
    padding: 3rem 4rem;
    max-width: 1000px;
    width: 100%;
    flex: 1;
}

#documenter_cover {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

/* Custom Alert & Callout Boxes */
.warning, .info, .alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-danger, .alert-error {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    #documenter_sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    #documenter_content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
}

/* Print Specifications */
@media print {
    #documenter_sidebar {
        display: none;
    }
    #documenter_content {
        margin-left: 0;
        padding: 0;
    }
    body {
        background: #fff;
        color: #000;
    }
}