/* Documentation Pages Styles */

.docs-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.125rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.75rem;
}

.sidebar ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.sidebar ul li a:hover {
    color: var(--primary);
}

/* Documentation Content */
.docs-content {
    max-width: 900px;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.doc-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.doc-section h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

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

.doc-section ol,
.doc-section ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.doc-section ul ul,
.doc-section ol ul {
    margin-top: 0.5rem;
}

/* Info Boxes */
.info-box,
.tip-box,
.warning-box,
.help-box {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.tip-box {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.warning-box {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.help-box {
    background: #e0e7ff;
    border-color: #6366f1;
    color: #3730a3;
}

.help-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Next Steps Cards */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.next-step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.next-step-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.next-step-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.next-step-card .btn {
    margin-top: 0.5rem;
}

/* Code Blocks */
code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

pre {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

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

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

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

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

tr:hover {
    background: var(--bg-light);
}

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

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

@media (max-width: 768px) {
    .docs-content h1 {
        font-size: 2rem;
    }

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

    .next-steps {
        grid-template-columns: 1fr;
    }
}

/* Screenshot Images */
.doc-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    display: block;
}

.doc-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.doc-image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-style: italic;
}