@import '_content/RapidFireUI/RapidFireUI.mqcw54sdph.bundle.scp.css';
@import '_content/SwiftCoreUI/SwiftCoreUI.wal91fw9x4.bundle.scp.css';

/* /Pages/Components/CourseTree.razor.rz.scp.css */
/* Components/CourseTreeView.razor.css */
.course-tree-container[b-89vbe6kdyq] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    /*border-right: 1px solid #e5e7eb;*/

}

/* Search Box */
.search-box[b-89vbe6kdyq] {
    position: relative;
    margin-bottom: 1.5rem;
    /*padding-left: 26px;
    padding-top: 16px;*/
    padding-right: 30px;
}

.search-input[b-89vbe6kdyq] {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

    .search-input:focus[b-89vbe6kdyq] {
        border-color: #10b981;
        ring: 2px;
        ring-color: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

.search-icon[b-89vbe6kdyq] {
    position: absolute;
    left: .7rem;
    top: 0.625rem;
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}

/* Course Navigation */
.course-nav[b-89vbe6kdyq] {
    flex: 1;
    overflow-y: auto;
  /*  padding: 0 1rem 1rem;
    padding-right: 22px;*/
}

.module-section[b-89vbe6kdyq] {
    margin-bottom: 0.75rem;
}

.module-button[b-89vbe6kdyq] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .module-button:hover[b-89vbe6kdyq] {
        background-color: #f9fafb;
    }

.expand-icon[b-89vbe6kdyq] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    color: #4b5563;
    transition: transform 0.2s;
    flex-shrink: 0;
}

    .expand-icon.expanded[b-89vbe6kdyq] {
        transform: rotate(90deg);
    }

.module-title[b-89vbe6kdyq] {
    flex: 1;
    text-align: left;
}

/* Course Items */
.items-container[b-89vbe6kdyq] {
    margin-top: 0.25rem;
    margin-left: 1.5rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out;
}

    .items-container.expanded[b-89vbe6kdyq] {
        max-height: 2000px; /* Large enough value to accommodate all items */
        opacity: 1;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-in-out 0.1s, margin-top 0.3s ease-in-out;
    }

    .items-container.collapsed[b-89vbe6kdyq] {
        margin-top: 0;
    }

.item-button[b-89vbe6kdyq] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    transform: translateX(0);
    animation: slideInFromLeft-b-89vbe6kdyq 0.3s ease-out backwards;
    border: 2px solid #fff;
}

@keyframes slideInFromLeft-b-89vbe6kdyq {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animation for each item */
.items-container.expanded .item-button:nth-child(1)[b-89vbe6kdyq] {
    animation-delay: 0.05s;
}

.items-container.expanded .item-button:nth-child(2)[b-89vbe6kdyq] {
    animation-delay: 0.1s;
}

.items-container.expanded .item-button:nth-child(3)[b-89vbe6kdyq] {
    animation-delay: 0.15s;
}

.items-container.expanded .item-button:nth-child(4)[b-89vbe6kdyq] {
    animation-delay: 0.2s;
}

.items-container.expanded .item-button:nth-child(5)[b-89vbe6kdyq] {
    animation-delay: 0.25s;
}

.items-container.expanded .item-button:nth-child(6)[b-89vbe6kdyq] {
    animation-delay: 0.3s;
}

.item-button:hover[b-89vbe6kdyq] {
    background-color: #f9fafb;
}

.item-button.selected[b-89vbe6kdyq] {
    color: #1f2937;
    background-color: #f3f4f6;
    font-weight: 500;
    border: 2px solid #d1d5db;
}

.item-icon[b-89vbe6kdyq] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

    .item-icon.completed[b-89vbe6kdyq] {
        color: #10b981;
    }

    .item-icon.assignment[b-89vbe6kdyq] {
        color: #f97316;
    }

    .item-icon.quiz[b-89vbe6kdyq] {
        color: #4b5563;
    }

    .item-icon.not-started[b-89vbe6kdyq] {
        color: #9ca3af;
    }

.item-title[b-89vbe6kdyq] {
    flex: 1;
    text-align: left;
}

/* No Results */
.no-results[b-89vbe6kdyq] {
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Bottom Actions */
.bottom-actions[b-89vbe6kdyq] {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.action-button[b-89vbe6kdyq] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.25rem;
}

    .action-button:hover[b-89vbe6kdyq] {
        background-color: #f9fafb;
    }

.action-icon[b-89vbe6kdyq] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.action-button span[b-89vbe6kdyq] {
    flex: 1;
    text-align: left;
}

/* Scrollbar Styling */
.course-nav[b-89vbe6kdyq]::-webkit-scrollbar {
    width: 6px;
}

.course-nav[b-89vbe6kdyq]::-webkit-scrollbar-track {
    background: transparent;
}

.course-nav[b-89vbe6kdyq]::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

    .course-nav[b-89vbe6kdyq]::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }
