/* =============================================
   GUIDE PAGE - Moneybird-inspired Design
   Clean, focused, professional documentation
   ============================================= */

/* Base overrides */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif !important;
    background: #f9f9fb !important;
    color: #1a1a1a !important;
    line-height: 1.7 !important;
}

/* Layout */
.container {
    display: flex;
    max-width: 1300px !important;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
}

/* Sidebar - Moneybird style */
.sidebar {
    width: 260px !important;
    background: white !important;
    border-right: 1px solid #e5e5e5 !important;
    padding: 28px 0 !important;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 3px;
}

.sidebar-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #8e8e93 !important;
    padding: 0 24px !important;
    margin-bottom: 12px !important;
    margin-top: 28px !important;
}

.sidebar-title:first-child {
    margin-top: 0 !important;
}

.sidebar-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 24px !important;
    color: #1a1a1a !important;
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 400;
    transition: all 0.15s ease;
    border-left: 3px solid transparent !important;
}

.sidebar-link:hover {
    background: #f5f5f7 !important;
    color: #91BD62 !important;
}

.sidebar-link.active {
    background: #e7f3ff !important;
    color: #91BD62 !important;
    border-left-color: #91BD62 !important;
    font-weight: 500 !important;
}

/* Content Area */
.content {
    flex: 1;
    padding: 48px 64px !important;
    max-width: 900px !important;
}

.content h1 {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    color: #1a1a1a !important;
    letter-spacing: -0.02em;
}

.content .intro {
    font-size: 1.1rem !important;
    color: #8e8e93 !important;
    margin-bottom: 48px !important;
    padding-bottom: 32px !important;
    border-bottom: 1px solid #e5e5e5 !important;
    line-height: 1.8;
}

/* Sections */
.section {
    margin-bottom: 64px !important;
    scroll-margin-top: 100px;
}

.section h2 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    color: #1a1a1a !important;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.section h2 .icon {
    color: #91BD62;
}

.section h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-top: 36px !important;
    margin-bottom: 14px !important;
    color: #1a1a1a !important;
}

.section p {
    color: #444 !important;
    margin-bottom: 16px !important;
    font-size: 15px;
    line-height: 1.8;
}

.section ul, .section ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.section li {
    margin-bottom: 10px !important;
    color: #444 !important;
    font-size: 15px;
    line-height: 1.7;
}

/* Callout Boxes - Moneybird style */
.callout {
    padding: 20px 24px !important;
    border-radius: 12px !important;
    margin: 28px 0 !important;
    border-left: 4px solid;
}

.callout-info {
    background: #e7f3ff !important;
    border-left-color: #91BD62 !important;
}

.callout-warning {
    background: #fff8e6 !important;
    border-left-color: #FF9500 !important;
}

.callout-success {
    background: #d1fae5 !important;
    border-left-color: #34C759 !important;
}

.callout-title {
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.callout-info .callout-title {
    color: #0056CC;
}

.callout-warning .callout-title {
    color: #b36b00;
}

.callout-success .callout-title {
    color: #047857;
}

.callout p {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.7;
}

/* Steps - Cleaner style */
.steps {
    counter-reset: step;
    margin: 28px 0 !important;
}

.step {
    position: relative;
    padding-left: 52px !important;
    padding-bottom: 28px !important;
    border-left: 2px solid #e5e5e5 !important;
    margin-left: 16px !important;
}

.step:last-child {
    border-left-color: transparent !important;
    padding-bottom: 0 !important;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -17px !important;
    top: 0;
    width: 32px !important;
    height: 32px !important;
    background: #91BD62 !important;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.step-title {
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    color: #1a1a1a !important;
}

.step p {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.7;
}

/* Code styling */
code {
    background: #f5f5f7 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-family: 'SF Mono', Monaco, 'Fira Code', monospace !important;
    font-size: 13px !important;
    color: #d63384 !important;
}

.path {
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    font-family: 'SF Mono', Monaco, 'Fira Code', monospace !important;
    font-size: 13px !important;
    margin: 20px 0 !important;
    overflow-x: auto;
}

/* Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0 !important;
    font-size: 14px !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 18px !important;
    text-align: left;
    border-bottom: 1px solid #e5e5e5 !important;
}

.comparison-table th {
    background: #f5f5f7 !important;
    font-weight: 600 !important;
    color: #1a1a1a;
}

.comparison-table tr:last-child td {
    border-bottom: none !important;
}

.comparison-table tr:hover td {
    background: #f9f9fb !important;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.feature-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: #d1d1d6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1a1a1a !important;
    color: white !important;
    padding: 48px 24px !important;
    text-align: center;
}

.footer p {
    opacity: 0.7;
    font-size: 14px !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    
    .sidebar.open {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        width: 280px;
        height: calc(100vh - 56px);
        z-index: 1000;
        box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .content {
        padding: 32px 24px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 16px !important;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
    }

    .header-buttons .btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .content {
        padding: 20px 16px !important;
    }

    .content h1 {
        font-size: 1.6rem !important;
    }

    .section h2 {
        font-size: 1.3rem !important;
    }

    .section h3 {
        font-size: 1.1rem !important;
    }

    .step {
        padding-left: 44px !important;
        margin-left: 12px !important;
    }

    .callout {
        padding: 16px 18px !important;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #000 !important;
        color: #fff !important;
    }
    
    .header {
        background: #1c1c1e !important;
        border-color: #38383a !important;
    }
    
    .logo {
        color: #fff !important;
    }
    
    .sidebar {
        background: #1c1c1e !important;
        border-color: #38383a !important;
    }
    
    .sidebar-link {
        color: #fff !important;
    }
    
    .sidebar-link:hover {
        background: #2c2c2e !important;
    }
    
    .sidebar-link.active {
        background: rgba(145, 189, 98, 0.2) !important;
    }
    
    .content {
        background: #000;
    }
    
    .content h1,
    .content h2,
    .content h3,
    .section h2,
    .section h3,
    .step-title {
        color: #fff !important;
    }
    
    .content .intro,
    .section p,
    .section li,
    .step p {
        color: #a1a1a6 !important;
    }
    
    .callout-info {
        background: rgba(145, 189, 98, 0.15) !important;
    }
    
    .callout-warning {
        background: rgba(255, 149, 0, 0.15) !important;
    }
    
    .callout-success {
        background: rgba(52, 199, 89, 0.15) !important;
    }
    
    code {
        background: #2c2c2e !important;
        color: #ff7b92 !important;
    }
    
    .comparison-table {
        border-color: #38383a !important;
    }
    
    .comparison-table th {
        background: #2c2c2e !important;
        color: #fff !important;
    }
    
    .comparison-table td {
        border-color: #38383a !important;
    }
    
    .comparison-table tr:hover td {
        background: #1c1c1e !important;
    }
    
    .feature-card {
        background: #1c1c1e;
        border-color: #38383a;
    }
    
    .feature-card h4 {
        color: #fff;
    }
    
    .feature-card p {
        color: #a1a1a6;
    }
    
    .step {
        border-color: #38383a !important;
    }
}
