* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    min-width: 250px;
    background: linear-gradient(135deg, #fceaec, #fefefe);
    color: #3e3e3e;
    padding: 20px;
    overflow-y: auto;
}
.doc-tree,
.doc-tree ul {
    list-style: none;
    padding-left: 15px;
}

    .doc-tree li {
        margin: 5px 0;
    }

    .doc-tree span {
        cursor: pointer;
        display: inline-block;
    }
     .doc-tree label.selected {
        font-weight: bold;
        color: #3498db; 
    }
    .sidebar h2 {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }

    .sidebar ul {
        list-style: none;
        padding-left: 0;
    }

    .sidebar li {
        margin-bottom: 10px;
    }

    .sidebar input[type="checkbox"] {
        display: none;
    }

    .sidebar label {
        cursor: pointer;
        display: block;
        padding: 5px;
        transition: background 0.2s;
    }

        .sidebar label:hover {
            background: rgba(10, 10, 10, 0.1);
        }

    .sidebar ul ul {
        margin-left: 15px;
        display: none;
    }

    .sidebar input[type="checkbox"]:checked ~ ul {
        display: block;
    }

.content {
    flex-grow: 1;
    padding: 30px;
    background-color: #f8f8f8;
}

    .content h1 {
        color: #3e3e3e;
    }

.sidebar a {
    color: #3e3e3e;
    text-decoration: none;
}

    .sidebar a:hover {
        text-decoration: underline;
    }

.features-section {
    padding: 40px 20px;
    background: linear-gradient(to right, #a64ac9, #d147a3);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    max-width:90%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .feature-item:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.1);
    }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}
.getting-started-section {
    padding: 40px 20px;
    background: #fdfdfd;
    max-width: 90%;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}

.getting-started-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.introduction-section {
    padding: 40px 20px;
    background: #fdfdfd;
    max-width: 90%;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}

    .introduction-section .section-title {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 30px;
    }

.step {
    margin-bottom: 40px;
}

    .step h3 {
        color: #8e44ad;
        margin-bottom: 10px;
    }

    .step pre {
        background: #f0f0f0;
        padding: 15px;
        overflow-x: auto;
        border-radius: 6px;
    }
code[class*=language-], pre[class*=language-]
 {
    color: #645f5f;
}
/* Make layout responsive */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        min-width: 100%;
        max-height: 300px;
        overflow-y: auto;
        padding: 15px;
        border-bottom: 1px solid #ccc;
    }

    .content {
        padding: 20px;
    }
}

/* Optional: Responsive adjustments for extra small screens */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .step h3 {
        font-size: 1.1rem;
    }
}
/* Tab navigation */
.install-tabs {
    margin-top: 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

    /* Nav row */
    .install-tabs .nav {
        display: flex;
        gap: 6px;
        align-items: center;
        padding: 8px;
        overflow-x: auto; /* scroll when too many tabs */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        background: linear-gradient(90deg,#fafafa,#fff);
        border-bottom: 1px solid #eee;
    }

        /* Individual tab */
        .install-tabs .nav li {
            list-style: none;
            margin: 0;
            padding: 0;
            display: inline-flex;
        }

        .install-tabs .nav a.package-manager-tab {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: 8px 14px;
            border-radius: 6px;
            text-decoration: none;
            color: #333;
            font-weight: 600;
            font-size: 0.94rem;
            background: transparent;
            border: 1px solid transparent;
            transition: background .15s ease, color .15s ease, box-shadow .15s ease;
            cursor: pointer;
        }

            /* Hover and focus */
            .install-tabs .nav a.package-manager-tab:hover,
            .install-tabs .nav a.package-manager-tab:focus {
                background: rgba(0,0,0,0.03);
                color: #111;
                outline: none;
            }

            /* Active tab style */
            .install-tabs .nav li.active a.package-manager-tab,
            .install-tabs .nav a.package-manager-tab[aria-selected="true"] {
                background: #6f42c1; /* brand color */
                color: #fff;
                box-shadow: 0 4px 14px rgba(111,66,193,0.18);
                border-color: rgba(0,0,0,0.03);
            }

    /* Tab content area */
    .install-tabs .tab-content {
        padding: 18px;
        background: #fff;
    }

    /* Tab panes: only display .active pane */
    .install-tabs .tab-pane {
        display: none;
        animation: fadeIn .15s ease;
    }

        .install-tabs .tab-pane.active {
            display: block;
        }

/* simple fade */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Install script & copy button row */
.install-script-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.install-script {
    flex: 1 1 60%;
    margin: 0;
    padding: 12px 14px;
    background: #0f1720; /* code background (dark) */
    color: #645f5f; 
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.9rem;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* copy button container */
.copy-button {
    flex: 0 0 auto;
    margin-left: 8px;
}

    .copy-button .btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 6px;
        border: 1px solid #ddd;
        background: #fff;
        color: #333;
        cursor: pointer;
        font-weight: 600;
    }

/* small screens: stack vertically */
@media (max-width: 680px) {
    .install-tabs .nav {
        gap: 8px;
        padding: 8px 6px;
    }

    .install-script {
        flex: 1 1 100%;
        font-size: 0.88rem;
    }

    .copy-button {
        margin-top: 8px;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* Accessibility (visible focus) */
.install-tabs .nav a.package-manager-tab:focus {
    box-shadow: 0 0 0 3px rgba(111,66,193,0.18);
}
/*             */
.tabs {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    font-family: Arial, sans-serif;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ccc;
}

    .tab-buttons button {
        flex: 1;
        padding: 10px;
        background: #f1f1f1;
        border: none;
        cursor: pointer;
        font-size: 16px;
        border-bottom: 2px solid transparent;
        transition: background 0.3s, border-bottom 0.3s;
    }

        .tab-buttons button.active {
            background: #fff;
            border-bottom: 2px solid #007bff;
            font-weight: bold;
        }

.tab-content {
    padding: 15px;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
}

    .tab-content.active {
        display: block;
    }
/* Arrow before labels with children */
.sidebar label .arrow {
    display: inline-block;
    margin-right: 6px;
    border: solid #555;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg); /* right arrow */
    transition: transform 0.2s ease;
}

/* Rotate arrow when expanded */
.sidebar input[type="checkbox"]:checked + label .arrow {
    transform: rotate(135deg); /* down arrow */
}

