* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-dark: #111827;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --sidebar-width: 280px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.nav-list {
    list-style: none;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1rem;
}

.nav-section h3 {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-section ul {
    list-style: none;
}

.nav-section a {
    display: block;
    padding: 0.625rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-section a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 2rem;
}

.nav-section a.active {
    background-color: #dbeafe;
    color: var(--primary-color);
    font-weight: 500;
    border-left: 3px solid var(--primary-color);
}

/* Main Content */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.content-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Sections */
.intro-section,
.doc-section {
    background-color: var(--bg-primary);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.doc-section h2 {
    color: var(--text-primary);
    font-size: 1.875rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.doc-section h3 {
    color: var(--text-primary);
    font-size: 1.375rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-section h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.doc-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* Lists */
.steps-list,
.numbered-list {
    counter-reset: step-counter;
    list-style: none;
    margin: 1rem 0;
}

.steps-list li,
.numbered-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.steps-list li::before,
.numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Info Boxes */
.info-box,
.warning-box {
    padding: 1.25rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.info-box {
    background-color: #dbeafe;
    border-left: 4px solid var(--primary-color);
}

.warning-box {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
}

.info-box h4,
.warning-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-box ul,
.warning-box ul {
    list-style-position: inside;
    margin-left: 1rem;
}

/* Code Blocks */
.code-block {
    background-color: var(--bg-dark);
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table thead {
    background-color: var(--bg-secondary);
}

.data-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

/* Accordion */
.accordion {
    margin: 1rem 0;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-item h4 {
    padding: 1rem;
    background-color: var(--bg-secondary);
    cursor: pointer;
    margin: 0;
    transition: background-color 0.2s ease;
}

.accordion-item h4:hover {
    background-color: #e5e7eb;
}

.accordion-item p {
    padding: 1rem;
    display: none;
    background-color: var(--bg-primary);
}

.accordion-item.active p {
    display: block;
}

/* Footer Navigation */
.doc-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prev-link,
.next-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.prev-link:hover,
.next-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.support-section h2 {
    color: white;
    border: none;
    margin-bottom: 1rem;
}

.support-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .toggle-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 1rem;
    }

    .content-header h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-link,
    .next-link {
        width: 100%;
        justify-content: center;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .steps-list li,
    .numbered-list li {
        padding-left: 2.5rem;
    }

    .doc-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .doc-section h2 {
        font-size: 1.5rem;
    }

    .doc-section h3 {
        font-size: 1.25rem;
    }

    .doc-section {
        padding: 1rem;
    }

    .code-block {
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .toggle-btn,
    .nav-links {
        display: none;
    }

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

    .doc-section {
        break-inside: avoid;
    }
}
/* ===== Search box ===== */
.search-wrap {
	position: relative;
	padding: 0 16px 12px 16px;
}
#docSearch {
	width: 100%;
	padding: 8px 12px;
	font-size: 13px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	outline: none;
	transition: border-color 0.15s, background 0.15s;
}
#docSearch::placeholder { color: rgba(255, 255, 255, 0.45); }
#docSearch:focus {
	border-color: rgba(102, 126, 234, 0.8);
	background: rgba(255, 255, 255, 0.10);
}
.search-results {
	position: absolute;
	left: 16px;
	right: 16px;
	top: 100%;
	margin-top: 4px;
	background: #1f2937;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	max-height: 60vh;
	overflow-y: auto;
	z-index: 100;
}
.search-result {
	display: block;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: inherit;
	text-decoration: none;
	transition: background 0.1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: rgba(102, 126, 234, 0.18); }
.search-result-title {
	font-weight: 600;
	font-size: 13px;
	color: #f1f5f9;
	margin-bottom: 4px;
}
.search-result-snippet {
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.65);
}
.search-result-snippet mark {
	background: rgba(102, 126, 234, 0.35);
	color: #fff;
	padding: 0 2px;
	border-radius: 2px;
}
.search-empty {
	padding: 12px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	text-align: center;
}
