:root {
    --primary: #6366f1;
    --primary-light: rgba(99, 102, 241, 0.1);
    --secondary: #4f46e5;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-sidebar: #ffffff;
    --border: #e2e8f0;
    --code-bg: #f1f5f9;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding: 0 0.75rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 4px;
}

.sidebar a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.sidebar a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

/* Main Content Area */
.content-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 3rem 5rem;
    max-width: 1100px;
}

.page-header {
    margin-bottom: 3.5rem;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 3.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* Code & Blocks */
pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.1);
}

code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
    color: var(--secondary);
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.note {
    background: #fff9db;
    border-left: 5px solid #fab005;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.important {
    background: #eef2ff;
    border-left: 5px solid var(--primary);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 2rem 0;
}

/* UI Elements */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Screenshots */
.screenshot-placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    margin: 2rem 0;
    font-style: italic;
    font-weight: 500;
}

.screenshot-placeholder::before {
    content: '🖼️';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.doc-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    margin: 2rem 0;
    display: block;
}

/* Grid layout for features */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Footer */
footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Professional Polish & Enhancements */

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.hamburger {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* Code Blocks & Copy Button */
pre {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Footer Navigation */
.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.nav-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s;
    background: white;
}

.nav-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.nav-card .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.nav-card .title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.nav-card.prev { text-align: left; }
.nav-card.next { text-align: right; }

/* Active Sidebar Animation */
.sidebar a.active {
    position: relative;
}

.sidebar a.active::after {
    content: '';
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* Responsible Tweaks */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: block; /* Overriding previous display: none */
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .mobile-header { display: flex; }
    .content-wrapper { margin-left: 0; padding: 6rem 2rem 2rem; }
    .page-header { margin-bottom: 2rem; }
    h1 { font-size: 2.2rem; }
}
