/**
 * WooAI Chatbot Pro Documentation
 * Shared Styles
 *
 * Note: Each HTML file contains its own complete styles for portability.
 * This file is for optional shared/override styles.
 */

:root {
    --primary-color: #10B981;
    --primary-dark: #059669;
    --secondary-color: #3B82F6;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --border-color: #E5E7EB;
    --code-bg: #1F2937;
    --warning-bg: #FEF3C7;
    --warning-border: #F59E0B;
    --info-bg: #DBEAFE;
    --info-border: #3B82F6;
    --success-bg: #D1FAE5;
    --success-border: #10B981;
}

/* Print Styles */
@media print {
    .doc-sidebar {
        display: none !important;
    }

    .doc-content {
        margin-left: 0 !important;
        max-width: 100% !important;
    }

    .screenshot {
        break-inside: avoid;
    }

    h2, h3 {
        break-after: avoid;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Anchor offset for fixed header */
[id] {
    scroll-margin-top: 20px;
}

/* Image Placeholder Styles - for missing screenshots */
.screenshot img {
    min-height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot img[alt]::after {
    content: attr(alt);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

/* Broken image placeholder */
.screenshot img:not([src]),
.screenshot img[src=""],
.screenshot img:-moz-broken,
.screenshot img:-moz-loading {
    min-height: 200px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    position: relative;
}

.screenshot img:not([src])::before,
.screenshot img[src=""]::before {
    content: "Screenshot placeholder - " attr(alt);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}
