/* Global */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --success-color: #10b981;
    --purple-color: #8b5cf6;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
}

.search-box {
    position: relative;
    width: 350px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 14px;
    color: var(--text-muted);
}

.search-box input {
    padding: 10px 14px 10px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    transition: 0.3s;
    background: #f1f5f9;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
}

.top-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-live {
    background: var(--primary-color);
    color: white !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.btn-live:hover {
    background: var(--primary-hover);
}

.version {
    background: #eef2ff;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Layout */
.layout {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 280px;
    padding: 30px 20px;
    background: white;
    border-right: 1px solid var(--border-color);
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 30px;
}

.chapter-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 10px;
    letter-spacing: 1.5px;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.sidebar a i {
    width: 18px;
    font-size: 14px;
    margin-right: 10px;
    color: #94a3b8;
}

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

.sidebar a.active {
    background: #eef2ff;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar a.active i {
    color: var(--primary-color);
}

/* Content */
.content {
    flex: 1;
    padding: 60px 80px;
    max-width: 1000px;
    background: white;
    min-height: 100vh;
}

h1 { font-size: 36px; margin-bottom: 20px; }
h2 { font-size: 28px; margin-top: 40px; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
h3 { font-size: 22px; margin-top: 30px; margin-bottom: 12px; font-weight: 600; }

p { margin-bottom: 18px; color: #334155; }
.lead { font-size: 18px; color: var(--text-muted); line-height: 1.6; }

/* Image */
.doc-img {
    width: 100%;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Info Box */
.info-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    font-size: 15px;
}

/* Workflow Helpers */
.number-badge {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.bg-light-blue   { background-color: #eff6ff !important; }
.bg-light-green  { background-color: #f0fdf4 !important; }
.bg-light-purple { background-color: #f5f3ff !important; }
.bg-light-yellow { background-color: #fffbeb !important; }

.text-purple { color: var(--purple-color); }

/* Footer */
.docs-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding-bottom: 40px;
}

/* Responsive */
@media (max-width: 992px) {
    .content { padding: 30px 20px; }
    .sidebar { display: none; }
    .search-box { width: 100%; margin: 0 15px; }
}

code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    color: #e11d48;
    font-family: monospace;
}