/* Basic styles for the admin panel layout */

body {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin .25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Custom styles */
.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Password toggle button */
.input-group button#togglePassword {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: #f8f9fa;
}

/* Payment History Tree */
.group-section {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.student-item {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-top: 5px;
}

.group-header, .student-header {
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 10px 15px;
}

.group-header:hover, .student-header:hover {
    background-color: #e9ecef;
}

.payment-details {
    background-color: #f8f9fa;
    padding: 10px;
    border-top: 1px solid #dee2e6;
}

.bi-chevron-down {
    transition: transform 0.3s;
}

[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    #sidebar-wrapper {
        position: fixed;
        z-index: 1000;
        width: 250px;
        height: 100%;
        overflow-y: auto;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        background: white;
    }

    #wrapper.toggled #sidebar-wrapper {
        transform: translateX(0);
    }

    #page-content-wrapper {
        width: 100%;
        padding-top: 56px; /* Space for navbar */
    }

    .sidebar-heading {
        text-align: center;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .list-group-item {
        padding: 12px 20px;
        border-left: none;
        border-right: none;
    }

    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
    }
}