/* Documentation Specific Styles */
.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    margin: 90px auto 0;
    gap: 2rem;
    padding: 2rem;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

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

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

.sidebar-nav > ul > li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--gray);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.sidebar-nav a:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.sidebar-nav ul ul {
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.sidebar-nav ul ul a {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Main Content */
.docs-content {
    max-width: 900px;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.doc-section {
    margin-bottom: 4rem;
}

.doc-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.doc-section h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    color: var(--dark);
}

.doc-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.doc-section h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

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

/* Info Boxes */
.info-box,
.warning-box,
.success-box {
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box {
    background: #eff6ff;
    border-color: var(--primary);
    color: #1e40af;
}

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

.success-box {
    background: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.info-box strong,
.warning-box strong,
.success-box strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

/* Code Blocks */
.code-block {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block code {
    background: none;
    padding: 0;
    color: inherit;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
    color: #dc2626;
}

/* Step Boxes */
.step-box {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
}

.step-box h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Numbered Steps */
.numbered-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

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

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

.numbered-steps > li strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.numbered-steps > li p {
    color: var(--gray);
    margin: 0.5rem 0;
}

/* Tables */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.doc-table thead {
    background: #f3f4f6;
}

.doc-table th,
.doc-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.doc-table th {
    font-weight: 600;
    color: var(--dark);
}

.doc-table tbody tr:hover {
    background: #f9fafb;
}

/* Button Text Styles */
.btn-text {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-active {
    color: var(--success);
    font-weight: 700;
}

/* Troubleshooting */
.troubleshooting {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trouble-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #ef4444;
}

.trouble-item h4 {
    color: #dc2626;
    margin-top: 0;
    margin-bottom: 1rem;
}

.trouble-item p strong {
    color: var(--dark);
    display: block;
    margin-bottom: 0.5rem;
}

.trouble-item ol {
    margin-left: 1.5rem;
    color: var(--gray);
}

.trouble-item ol li {
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.faq-item p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.support-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-card h4 {
    margin: 0.5rem 0;
    color: var(--dark);
}

.support-card p {
    color: var(--gray);
    margin: 0;
}

/* Lists */
.docs-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.docs-content ul li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

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

.docs-content ol li {
    margin-bottom: 0.75rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: relative;
        top: 0;
        height: auto;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 1.5rem;
    }
    
    .doc-section h1 {
        font-size: 2rem;
    }
    
    .doc-section h2 {
        font-size: 1.5rem;
    }
    
    .numbered-steps > li {
        padding-left: 2.5rem;
    }
}
