/* IdleBuster Docs Frontend Styles - Isolated from theme */
.idlebuster-docs-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.idlebuster-docs-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
    background: #f5f7fa !important;
    margin: 0 !important;
    padding: 2rem !important;
}

.idlebuster-docs-container {
    display: flex !important;
    gap: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    overflow: visible !important;
    min-height: 90vh !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Sidebar */
.idlebuster-docs-sidebar {
    width: 280px !important;
    background: #f8fafc !important;
    padding: 2rem 0 !important;
    border-right: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 2rem !important;
    height: calc(100vh - 4rem) !important;
    overflow-y: auto !important;
    flex-shrink: 0 !important;
}

.idlebuster-docs-sidebar::-webkit-scrollbar {
    width: 6px !important;
}

.idlebuster-docs-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
}

.idlebuster-docs-sidebar-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1e40af !important;
    padding: 0 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.idlebuster-docs-search-wrapper {
    padding: 0 1.5rem 1.5rem !important;
}

.idlebuster-docs-search-input {
    width: 100% !important;
    padding: 0.625rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    font-family: inherit !important;
}

.idlebuster-docs-search-input:focus {
    border-color: #3b82f6 !important;
}

.idlebuster-docs-search-results {
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
    color: #64748b !important;
}

.idlebuster-docs-nav-section {
    margin-bottom: 0.5rem !important;
}

.idlebuster-docs-nav-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1.5rem !important;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    border-left: 3px solid transparent !important;
}

.idlebuster-docs-nav-item:hover {
    background: #e0e7ff !important;
    color: #1e40af !important;
    border-left-color: #3b82f6 !important;
}

.idlebuster-docs-nav-item.active {
    background: #e0e7ff !important;
    color: #1e40af !important;
    font-weight: 600 !important;
    border-left-color: #2563eb !important;
}

.idlebuster-docs-nav-icon {
    margin-right: 0.75rem !important;
    font-size: 1.1rem !important;
}

/* Main Content */
.idlebuster-docs-main-content {
    flex: 1 !important;
    padding: 3rem !important;
    max-width: 900px !important;
    overflow-y: auto !important;
}

.idlebuster-docs-content-section {
    display: none !important;
}

.idlebuster-docs-content-section.active {
    display: block !important;
    animation: idlebusterFadeIn 0.3s ease-in !important;
}

@keyframes idlebusterFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.idlebuster-docs-content-section h1 {
    font-size: 2.25rem !important;
    margin-bottom: 0.5rem !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.idlebuster-docs-page-subtitle {
    color: #64748b !important;
    font-size: 1.05rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 2rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.idlebuster-docs-content h2 {
    font-size: 1.75rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}

.idlebuster-docs-content h3 {
    font-size: 1.35rem !important;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

.idlebuster-docs-content h4 {
    font-size: 1.1rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

.idlebuster-docs-content p {
    margin-bottom: 1rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
}

.idlebuster-docs-content ul,
.idlebuster-docs-content ol {
    margin-bottom: 1rem !important;
    padding-left: 1.75rem !important;
}

.idlebuster-docs-content li {
    margin-bottom: 0.5rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
}

.idlebuster-docs-content strong {
    color: #1e293b !important;
    font-weight: 600 !important;
}

.idlebuster-docs-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.idlebuster-docs-content th {
    background: #f1f5f9 !important;
    padding: 0.875rem !important;
    text-align: left !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.idlebuster-docs-content td {
    padding: 0.875rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.idlebuster-docs-content tr:last-child td {
    border-bottom: none !important;
}

.idlebuster-docs-content tr:hover {
    background: #f8fafc !important;
}

.idlebuster-docs-content code {
    background: #f1f5f9 !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.9em !important;
    color: #1e40af !important;
    border: 1px solid #e2e8f0 !important;
}

.idlebuster-docs-content .info-box {
    padding: 1rem 1.25rem !important;
    border-radius: 8px !important;
    margin: 1.5rem 0 !important;
    border-left: 4px solid #3b82f6 !important;
    background: #eff6ff !important;
}

.idlebuster-docs-content .warning-box {
    padding: 1rem 1.25rem !important;
    border-radius: 8px !important;
    margin: 1.5rem 0 !important;
    border-left: 4px solid #f59e0b !important;
    background: #fffbeb !important;
}

.idlebuster-docs-content .success-box {
    padding: 1rem 1.25rem !important;
    border-radius: 8px !important;
    margin: 1.5rem 0 !important;
    border-left: 4px solid #10b981 !important;
    background: #ecfdf5 !important;
}

.idlebuster-docs-content .box-title {
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: #1e293b !important;
}

.idlebuster-docs-content kbd {
    display: inline-block !important;
    background: white !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 0.25rem 0.5rem !important;
    font-family: monospace !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 0 #e2e8f0 !important;
    margin: 0 0.15rem !important;
    color: #475569 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .idlebuster-docs-container {
        flex-direction: column !important;
    }
    
    .idlebuster-docs-sidebar {
        width: 100% !important;
        position: relative !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .idlebuster-docs-main-content {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .idlebuster-docs-wrapper {
        padding: 1rem !important;
    }
    
    .idlebuster-docs-main-content {
        padding: 1.5rem !important;
    }
    
    .idlebuster-docs-content-section h1 {
        font-size: 1.75rem !important;
    }
    
    .idlebuster-docs-content h2 {
        font-size: 1.5rem !important;
    }
}
