/* Documentation Page Styles */

.documentation-container {
    background: #f8f9fa;
    min-height: 100vh;
}

.doc-header-main {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.doc-header-content h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5em;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.doc-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

.doc-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 0 2rem 2rem;
}

.doc-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.doc-toc {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.doc-toc h3 {
    margin-top: 0;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-toc li {
    margin: 0.5rem 0;
}

.doc-toc-link {
    color: #7f8c8d;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.doc-toc-link:hover {
    background: #f0f0f0;
    color: #34495e;
    padding-left: 1rem;
}

.doc-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.doc-section-main {
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.doc-section-header {
    margin-bottom: 2rem;
}

.doc-section-header h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-description {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95em;
}

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

.doc-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.doc-card:hover {
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.1);
    transform: translateY(-2px);
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.doc-header i {
    color: #34495e;
    font-size: 1.5em;
}

.doc-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.doc-card p {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.inline-code {
    background: #ecf0f1;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #2c3e50;
}

.code-example {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.4;
}

.code-example pre {
    margin: 0;
}

.endpoints-list,
.feature-list,
.role-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.endpoints-list li,
.feature-list li,
.role-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.endpoints-list li:before,
.feature-list li:before,
.role-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #34495e;
    font-weight: bold;
}

.numbered-list {
    list-style: decimal;
    padding-left: 2rem;
    color: #666;
}

.numbered-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.sub-list {
    list-style: disc;
    padding-left: 2rem;
    margin: 0.5rem 0;
}

.info-box-large {
    display: flex;
    gap: 1.5rem;
    background: #ecf0f1;
    border-left: 4px solid #34495e;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.info-box-icon {
    flex-shrink: 0;
}

.info-box-icon i {
    color: #34495e;
    font-size: 1.5em;
    margin-top: 0.2rem;
}

.info-box-content {
    flex: 1;
}

.info-box-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.info-box-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.warning-box {
    display: flex;
    gap: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.warning-box i {
    color: #ff6b6b;
    font-size: 1.2em;
    flex-shrink: 0;
}

.warning-box strong {
    color: #cc5500;
    display: block;
}

.help-section {
    text-align: center;
}

.help-section h2 {
    justify-content: center;
}

.contact-box {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}
.doc-section-inner {
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.doc-section-inner strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9em;
}

.code-example {
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #34495e;
    margin-top: 1rem;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #333;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}

.inline-code {
    background: #ebffe6;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #0046c1;
}
/* Responsive Design */
@media (max-width: 768px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
    }

    .doc-header-main {
        padding: 2rem 1rem;
    }

    .doc-header-content h1 {
        font-size: 1.8em;
    }

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

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