.project-docs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.back-button {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.docs-header {
    margin-bottom: 2rem;
}

.docs-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.docs-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.docs-nav .nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.docs-content {
    min-width: 0;
}

.docs-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    scroll-margin-top: 2rem;
}

.docs-section h2 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.docs-section p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.resource-actions {
    display: flex;
    gap: 1rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color var(--transition-speed) ease;
}

.resource-link:hover {
    background-color: var(--bg-hover);
}

.link-icon {
    font-size: 1.2rem;
}

.error {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.error h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .docs-container {
    grid-template-columns: 1fr;
    }

    .docs-sidebar {
    position: static;
    margin-bottom: 2rem;
    }
}