:root {
    --aplo-dark: #2F2F2F;
    --aplo-accent: #4199F6;
    --aplo-light-bg: #f5f5f5;
    --sidebar-width: 280px;
}

* { font-family: 'Onest', sans-serif; margin: 0; padding: 0; box-sizing: border-box; }

body { background: var(--aplo-light-bg); color: #333; }

/* Header */
.site-header {
    background: var(--aplo-dark);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: white; }
.site-header .logo-icon { font-size: 1.5rem; }
.site-header .logo-text { font-weight: 700; font-size: 1.2rem; }
.site-header .logo-sub { font-size: 0.75rem; color: #97D1FF; }
.site-header nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; margin-left: 24px; transition: color 0.15s; }
.site-header nav a:hover { color: white; }

/* Module cards on index */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 24px 0; }
.module-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.module-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); color: inherit; }
.module-card .card-icon { font-size: 2rem; margin-bottom: 12px; }
.module-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.module-card p { font-size: 0.9rem; color: #666; margin: 0; }
.module-card .badge { font-size: 0.7rem; }

/* Doc page layout */
.doc-layout { display: flex; min-height: calc(100vh - 70px); }

.doc-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #eee;
    padding: 24px 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    flex-shrink: 0;
}
.doc-sidebar .nav-section { padding: 8px 24px 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #999; margin-top: 16px; }
.doc-sidebar .nav-section:first-child { margin-top: 0; }
.doc-sidebar a {
    display: block;
    padding: 6px 24px 6px 32px;
    color: #555;
    text-decoration: none;
    font-size: 0.88rem;
    border-left: 3px solid transparent;
    transition: all 0.12s;
}
.doc-sidebar a:hover { color: var(--aplo-accent); background: #f8f9fa; }
.doc-sidebar a.active { color: var(--aplo-accent); border-left-color: var(--aplo-accent); background: #EAF0FF; font-weight: 500; }

.doc-content {
    flex: 1;
    padding: 36px 48px;
    max-width: 900px;
}
.doc-content h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.doc-content .subtitle { color: #888; font-size: 1rem; margin-bottom: 32px; }
.doc-content h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.doc-content h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 12px; }
.doc-content p { line-height: 1.7; margin-bottom: 12px; }
.doc-content ul, .doc-content ol { margin-bottom: 16px; padding-left: 24px; }
.doc-content li { margin-bottom: 6px; line-height: 1.6; }

.tip-box { background: #EAF0FF; border-left: 4px solid var(--aplo-accent); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 0.92rem; }
.warn-box { background: #FFF8E1; border-left: 4px solid #FFC107; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 0.92rem; }
.note-box { background: #F3E5F5; border-left: 4px solid #9C27B0; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 0.92rem; }

.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li { counter-increment: step; display: flex; gap: 14px; margin-bottom: 16px; background: white; padding: 16px 20px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.step-list li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 32px; height: 32px;
    background: var(--aplo-accent);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }
.feature-item { background: white; padding: 14px 18px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.feature-item strong { display: block; margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; color: #666; margin: 0; }

/* Breadcrumb */
.breadcrumb-bar { background: white; border-bottom: 1px solid #eee; padding: 10px 0; }
.breadcrumb-bar a { color: var(--aplo-accent); text-decoration: none; font-size: 0.85rem; }
.breadcrumb-bar span { color: #999; font-size: 0.85rem; margin: 0 6px; }

/* Footer */
.site-footer { background: var(--aplo-dark); color: rgba(255,255,255,0.5); padding: 24px 0; text-align: center; font-size: 0.8rem; margin-top: 48px; }
.site-footer a { color: #97D1FF; text-decoration: none; }

/* Mobile */
@media (max-width: 768px) {
    .doc-sidebar { display: none; }
    .doc-content { padding: 20px 16px; }
    .module-grid { grid-template-columns: 1fr; }
    .site-header nav { display: none; }
}
