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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #22c55e;
    --accent-hover: #16a34a;
}

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

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

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 4px;
}

.nav-links a {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.nav-links a.active {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 11px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 48px 64px;
    max-width: 900px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

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

/* Content links */
.main-content a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

.main-content a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* Lists in content */
.main-content ul,
.main-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.main-content li {
    margin-bottom: 8px;
}

.main-content li a {
    color: var(--accent);
}

h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.card h3 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 18px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    margin: 24px 0;
}

.step {
    position: relative;
    padding-left: 48px;
    padding-bottom: 32px;
    border-left: 2px solid var(--border-color);
    margin-left: 16px;
}

.step:last-child {
    border-left: none;
    padding-bottom: 0;
}

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

.step-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* Screenshot placeholder */
.screenshot {
    background-color: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    margin: 24px 0;
}

.screenshot.has-image {
    padding: 0;
    border-style: solid;
}

.screenshot img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.screenshot-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.screenshot-label code {
    background-color: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Code blocks */
code {
    background-color: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: var(--accent);
}

pre {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

/* Info boxes */
.info-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.info-box.tip {
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--accent);
}

.info-box.warning {
    background-color: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
}

.info-box.danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.info-box-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.info-box p {
    margin: 0;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-card);
    font-weight: 600;
}

/* Search */
.search-box {
    margin-bottom: 24px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Search Dropdown */
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-result {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover,
.search-result.active {
    background-color: var(--bg-secondary);
}

.search-result-title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 24px 16px;
        padding-top: 72px;
    }

    .container {
        flex-direction: column;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
        margin-top: 32px;
    }

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

    .step {
        padding-left: 40px;
        margin-left: 12px;
    }

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

    pre {
        font-size: 12px;
    }
}
