/* Docs Page Specific Layout */
.docs-page {
    background: #0b0f19;
    color: #f8fafc;
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #151a28;
}

/* Home Button Design */
.btn-home {
    background: #2f3136;
    color: #f8fafc;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-home:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: white;
}

.docs-container {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 20px;
}

/* Sidebar */
.docs-sidebar {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.doc-tab {
    flex: 1; 
    background: #151a28;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px 5px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.doc-tab:hover {
    background: #1e2436;
    color: white;
}

.doc-tab.active {
    background: #5865F2;
    color: white;
    border-color: #5865F2;
}

/* Slider System Container */
.docs-viewport {
    flex: 1;
    background: transparent; 
    border: none; 
    overflow: hidden; 
    transition: height 0.3s ease-in-out; /* Smooth height scaling */
}

/* The sliding track */
.docs-slider {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    align-items: flex-start; /* Prevents short pages from stretching */
}

/* Individual Content Pages */
.doc-section {
    min-width: 100%; 
    padding: 10px 5px;
    box-sizing: border-box;
    line-height: 1.6;
}

.doc-section h2 {
    color: #5865F2;
    margin-top: 0;
    font-size: 1.8rem;
}

.last-updated {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.doc-section h3 {
    color: #e2e8f0;
    margin-top: 25px;
    font-size: 1.2rem;
}

.doc-section p {
    color: #94a3b8;
}

/* Desktop layout rules */
@media (min-width: 768px) {
    .docs-container {
        flex-direction: row;
        align-items: flex-start;
        margin: 40px auto;
        gap: 40px; 
    }
    .docs-sidebar {
        flex-direction: column; 
        min-width: 250px;
        width: auto;
    }
    .doc-tab {
        text-align: left;
        font-size: 1rem;
        padding: 15px 20px;
    }
    .doc-section {
        min-width: 100%; 
        box-sizing: border-box;
        line-height: 1.6;
        transition: opacity 0.2s ease, visibility 0.2s ease; /* Add this line */
    }

}
