/* Ensure nav-tabs inactive tab text is readable (dark) */
.nav-tabs .nav-link:not(.active) {
    color: #212529 !important;
    background-color: #fff !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
}
/* Sidebar: Make Bootstrap accordion arrows always white */
.bg-primary .accordion-button::after {
    filter: none !important;
    color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}
/* spl_account: Make only the profile accordion arrow black, sidebar remains white */
#profileAccordion .accordion-button::after {
    filter: none !important;
    color: #000 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}
/* Remove bottom margin from all p tags in class cards and summaries */
p {
    margin-bottom: 0;
}
/* Add FontAwesome chevron on nav-link hover (CSS only) for sidebar only */
.sidebar-nav .nav-link {
    position: relative;
    transition: color 0.2s ease-in-out;
}

.sidebar-nav .nav-link:hover {
    color: #0d6efd;
    /* Optional: highlight color on hover */
}

.sidebar-nav .nav-link:hover::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f054";
    /* fa-chevron-right */
    display: inline-block;
    margin-right: 0.5em;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link::before {
    content: "";
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* Example CSS file */
.class-card {
    background-color: white;
    color: #212529;
    transition: all ease-in-out 0.2s;
    cursor: pointer;
}

.class-card:hover {
    background-color: #035C8D !important;
    color: white !important;
}

.bg-primary {
    background-color: #035C8D !important;
}


/* Only apply white text to nav-link outside nav-tabs */
.nav-link {
    color: white;
}

.nav-tabs .nav-link {
    color: #212529 !important;
    background: #fff !important;
    border: 1px solid #dee2e6;
    transition: color 0.2s;
}
.nav-tabs .nav-link.active {
    color: #0d6efd !important;
    background: #fff !important;
    border-bottom: 2px solid #0d6efd !important;
    font-weight: 600;
}
.nav-tabs .nav-link:hover {
    color: #0d6efd !important;
    background: #fff !important;
    opacity: 1;
}


.lesson-section {
    position: relative;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.completed-lesson {
    background: rgba(40, 167, 69, 0.02);
    border: 2px solid #28a745;
}

.completed-lesson-summary {
    font-style: italic;
    padding: 0.75rem 1rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 0.375rem;
    border-left: 4px solid #28a745;
}

.lesson-completion-toggle {
    transition: all 0.3s ease;
    min-width: 160px;
}

.lesson-completion-toggle:hover {
    transform: translateY(-1px);
}

.class-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.class-card:hover {
    transform: translateY(-2px);
}

.completed-lesson .class-card {
    border-color: #d4edda;
}

.completed-lesson .class-card:hover {
    border-color: #28a745;
}

.lesson-items {
    transition: all 0.3s ease;
}

.badge {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*Sidebar*/
/* Custom burger menu icon */
.navbar-toggler-icon-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
}

.navbar-toggler-icon-custom span {
    display: block;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s ease;
    transform-origin: center;
}

/* Fixed burger animation */
.navbar-toggler-icon-custom.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.navbar-toggler-icon-custom.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler-icon-custom.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Sidebar responsive behavior */
@media (max-width: 991px) {
    #sidebarContainer {
        width: 0 !important;
    }

    #sidebar {
        transform: translateX(-100%);
        z-index: 1055; /* Increased to be above backdrop */
    }

    #sidebar.show {
        transform: translateX(0);
    }
}

/* Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050; /* Lower than sidebar */
    transition: opacity 0.3s ease-in-out;
}

.sidebar-backdrop.show {
    display: block !important;
}

.InputfieldForm h2 {
    display: none;
}

/* Form field styling */
.LoginRegisterPro .Inputfield:not(.InputfieldSubmit) {
    background-color: transparent !important;
    border: none !important;
    padding: 0 0 0.75rem 0 !important;
}

.LoginRegisterPro .Inputfield:not(.InputfieldSubmit) input {
    padding: 0.45rem 0.35rem;
    margin-top: 0.75rem;
    width: 100%;
}

/* Shared button styles */
.ui-button,
.LoginRegisterLinks a,
.LoggedInLinks a {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;zFk7MGIbVl3WpP
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    width: 100%;
    margin-top: 0.5rem;
}

/* Primary button styling (submit and login/register links) */
.ui-button,
.LoginRegisterLinks a {
    background-color: #035C8D;
    border-color: #035C8D;
}

.ui-button:hover,
.LoginRegisterLinks a:hover {
    background-color: #4E8CAF;
    border-color: #4E8CAF;
}

.ui-button:focus,
.LoginRegisterLinks a:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}

.ui-button:active,
.LoginRegisterLinks a:active {
    background-color: #035C8D;
    border-color: #0a53be;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* Success button styling (logged in links) */
.LoggedInLinks a {
    background-color: #198754;
    border-color: #198754;
}

.LoggedInLinks a:hover {
    background-color: #157347;
    border-color: #157347;
}

.LoggedInLinks a:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.5);
}

.LoggedInLinks a:active {
    background-color: #157347;
    border-color: #146c43;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* Bold text variations */
.ui-button-text,
.LoginRegisterLinksRegister a,
.LoggedInLinksRegister a {
    font-weight: 500;
}

/* Remove list styling */
.LoginRegisterLinks {
    padding: 0;
    list-style: none;
}
/* Minimal custom styling for LoginRegisterPro form */
.LoginRegisterPro .InputfieldHeader {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.InputfieldForm{
    margin-bottom: 1.5rem;
    border-bottom: solid 1px #e5e7eb;
    padding-bottom: 1.5rem;
}
.LoginRegisterPro .InputfieldContent input,
.LoginRegisterPro .InputfieldContent select,
.LoginRegisterPro .InputfieldContent textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.LoginRegisterPro .InputfieldContent select {
    margin-top: .8rem;
    padding: .55rem;
}

.LoginRegisterPro .InputfieldFieldset > label.InputfieldHeader:first-of-type {
    border-bottom: 1px solid #d1d5db!important;
    border-top: 1px solid #d1d5db!important;
    width: 100%;
    padding: 1rem 0;
    margin: 1.5rem 0!important;
}