:root, [data-bs-theme='light'] {
    --bs-body-color: #333333;
    --bs-emphasis-color: #333333;
    --bs-dark-rgb: 45, 55, 71;
}
[data-bs-theme='dark'] {
    --bs-body-color: #ffffff;
    --bs-emphasis-color: #ffffff;
    --bs-dark-rgb: 45, 55, 71;
}
[data-bs-theme='dark'] #themeDark {
    display: none;
}
[data-bs-theme='light'] #themeLight {
    display: none;
}

body.wait * {
    pointer-events: none;
}
body.wait:after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bs-body-bg);
    opacity: 0.3;
    z-index: 9999;
}
.modal {
    transition: all .2s ease;
    backdrop-filter: blur(2px);
}
.fs-7 {
    font-size: 0.8rem!important;
}
.mw-0 {
    min-width: 0;
}

.btn-success, .btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: #32c671!important;
    border-color: #32c671!important;
}
.btn-outline-dark {
    color: var(--bs-body-color);
    border-color: var(--bs-body-color);
}
.btn:not(.btn-sm) {
    transition: all .2s ease;
    box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px;
    min-height:50px;
}
a.btn {
    display: inline-flex;
    align-items: center;
    color: var(--bs-btn-active-color);
}
.btn:hover {
    filter: brightness(1.2);
    /*transform: translateY(-2px);*/
}
.btn:active {
    box-shadow: rgba(0, 0, 0, 0.16) 0 2px 4px;
}
.btn-trans {
    border: none!important;
    background: transparent!important;
    box-shadow: none!important;
}
.dropdown-toggle.btn-options {
    color: var(--bs-body-color);
    width: 40px;
    min-height: 40px;
    align-content: center;
    text-align: center;
}
.dropdown-toggle.btn-options:after {
    display: none;
}

.input-group-options {
    width: fit-content;
}
.input-group-options .dropdown-toggle {
    text-align: start;
    padding-right:2rem;
    min-width: 10rem;
    box-shadow: none;
    border: 1px solid var(--bs-border-color);
}
.input-group-options .dropdown-toggle:active,
.input-group-options .dropdown-toggle:hover,
.input-group-options .dropdown-toggle:focus {
    border: 1px solid var(--bs-border-color);
    filter: brightness(1);
}
.input-group-options .dropdown-toggle:after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.dropdown-filters .dropdown-menu {
    min-width: 300px;
}
.dropdown-filters .dropdown-menu li:not(.separator) {
    padding-left: 1rem;
    padding-right: 1rem;
}

.form-label {
    font-weight: 500;
}
.form-control {
    min-height:50px;
}
form label.error {
    position:absolute;
    color:#ff0000;
}
.form-control.error {
    outline: 2px solid #ff0000;
}

.disabled a,
.disabled input,
.disabled textarea,
.disabled select,
.disabled button {
    pointer-events: none;
    opacity: 0.8;
}

.spinner {
    display:block;
    border-top:1px solid transparent;
    min-height:80px;
}
.spinner i {
    display:block;
    border-radius: 50%;
    border-top: 2px solid #4b8df8;
    border-right: 2px solid transparent;
    animation: spinner-rot 700ms linear infinite;
    height: 40px;
    width: 40px;
    margin:40px auto;
}
@keyframes spinner-rot {
    to {
        transform: rotate(360deg);
    }
}

.bootbox-danger .modal-header {
    color:#f3565d;
}

.page-container {
    min-width:360px;
}

.side-menu {
    width: 300px;
    max-width: 300px;
}
.side-menu-logo {
    display: inline-block;
    height:60px;
    width: auto;
    margin:12px auto;
    
}
.side-menu ul.nav {
    width: 100%;
    margin-top: 34px;
}
.side-menu ul.nav > li {
    width: 100%;
}
.side-menu .nav-link {
    position: relative;
    color: #fff;
    font-weight: 500;
}
.side-menu a.nav-link:focus, a.nav-link:hover {
    color: #ecbc29;
}
.side-menu .nav-link.active, .side-menu .show>.nav-link {
    color: #ecbc29;
    background-color: #3d4755;
}
.side-menu .nav-link .badge {
    position: absolute;
    right:8px;
    line-height: normal;
}
.side-menu-icon {
    display:none;
    font-size: 28px;
}

.side-menu.closed {
    min-width: 50px;
    max-width: 50px;
    flex-grow: 0;
    flex-shrink: 0;
}
.side-menu.closed .side-menu-logo {
    display: none;
}
.side-menu.closed .side-menu-powered-by {
    display:none;
}
.side-menu.closed .side-menu-label {
    display:none;
}
.side-menu.closed .nav-link {
    text-align: center;
    justify-content: center;
    padding:0.8rem 0;
}
.side-menu.closed .nav-link .badge {
    display:none;
}
.side-menu.closed .side-menu-icon {
    display: inline-block;
}


#main-navbar {
    min-height:80px;
}
.nav-item.dropdown-user .dropdown-menu[data-bs-popper] {
    top: 98%;
}

.avatar {
    width:66px;
    height:66px;
    border-radius: 50%;
    border:3px solid #fff;
    background-color: #fff;
    margin:7px;
    padding:2px;
    overflow: hidden;
}
.avatar img {
    display: inline-block;
    border-radius: 50%;
    width:100%;
    height:100%;
}
.avatar-centre {
    border-color:#e14036;
}
.avatar-admin {
    border-color:#dd5cf2;
}
.avatar-learner {
    border-color: #59f05c;
}

#main-navbar .dropdown-user .dropdown-menu {
    position: absolute;
    padding: 10px 0;
}
#main-navbar .dropdown-user .dropdown-menu[data-bs-popper] {
    left: unset;
    right:0;
}
#main-navbar .dropdown-user .dropdown-menu .username {
    padding: 0 16px;
    font-weight: 600;
}
#main-navbar .dropdown-user .dropdown-menu .username .usertype {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}

.dropdown-menu > li.separator {
    height: 0px;
    margin: 10px 0;
    border-bottom: 1px solid #f4f4f4 !important;
}

#mainContent {
    padding:20px;
}

.portlet {
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 1.5rem;
    box-shadow: var(--bs-box-shadow);
}

.table-vertical-align-middle th,
.table-vertical-align-middle td {
    vertical-align: middle;
}

.table-rounded-corners {
    --table-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: var(--table-radius);
}
.table-rounded-corners th,
.table-rounded-corners td {
    padding: 0.8rem;
}
/* Top-left corner */
.table-rounded-corners > :first-child > tr:first-child > th:first-child,
.table-rounded-corners > :first-child > tr:first-child > td:first-child,
.table-rounded-corners > tr:first-child > th:first-child,
.table-rounded-corners > tr:first-child > td:first-child {
    border-top-left-radius: var(--table-radius);
}
/* Top-right corner */
.table-rounded-corners > :first-child > tr:first-child > th:last-child,
.table-rounded-corners > :first-child > tr:first-child > td:last-child,
.table-rounded-corners > tr:first-child > th:last-child,
.table-rounded-corners > tr:first-child > td:last-child {
    border-top-right-radius: var(--table-radius);
}
/* Bottom-left corner (works with <tfoot>, <tbody> last, or direct <tr>) */
.table-rounded-corners > :last-child > tr:last-child > th:first-child,
.table-rounded-corners > :last-child > tr:last-child > td:first-child,
.table-rounded-corners > tr:last-child > th:first-child,
.table-rounded-corners > tr:last-child > td:first-child {
    border-bottom-left-radius: var(--table-radius);
}
/* Bottom-right corner */
.table-rounded-corners > :last-child > tr:last-child > th:last-child,
.table-rounded-corners > :last-child > tr:last-child > td:last-child,
.table-rounded-corners > tr:last-child > th:last-child,
.table-rounded-corners > tr:last-child > td:last-child {
    border-bottom-right-radius: var(--table-radius);
}
/* Remove bottom border */
.table-rounded-corners > :last-child > tr:last-child > th,
.table-rounded-corners > :last-child > tr:last-child > td,
.table-rounded-corners > tr:last-child > th,
.table-rounded-corners > tr:last-child > td {
    border-bottom:none;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 1.5rem;
    margin: 0;
    gap: 0.5rem;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
    transition: text-shadow 0.15s ease;
}
.tabs .tab-item {
    
}
.tabs .tab-item .tab-btn {
    background: none;
    border: none;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.3rem;
}
.tabs .tab-item .tab-btn.active {
    text-shadow: 0 0 0.8px currentColor, 0 0 0.8px currentColor;
    color: #006ef9;
    border-bottom: 3px solid #006ef9;
}

.profile-image {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50% !important;
    border: 2px solid #d2d2d2;
    background-color: #d2d2d2;
}
.profile-image img {
    max-width: 100%;
    border-radius: 50%;
}
.profile-image .upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: #ecbc29;
    color: #fff;
    text-align: center;
    border-radius: 50% !important;
    cursor: pointer;
}
#modalProfileUpload .btn-trans {
    color:#666;
}
[data-bs-theme='dark'] #modalProfileUpload .btn-trans {
    color: #ccc;
}
#modalProfileUpload .btn-trans .fa {
    font-size:20px;
    margin-right:5px;
}
#modalProfileUpload .default-avatars {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(16%, 1fr));
    grid-gap: 12px;
    margin-top: 40px;
}
#modalProfileUpload .default-avatars .default-image {
    padding:4px;
    border-radius: 50%;
    cursor:pointer;
}
#modalProfileUpload .default-avatars .default-image.selected {
    border:2px solid #5c9dff;
}
#modalProfileUpload .default-avatars img {
    width:100%;
    border-radius: 50%!important;
}

.certificate-purchased .btn-order-cert {
    opacity: 0.5;
}

#modalMockExamSelector h4 {
    font-weight: 600;
    margin-top:0;
    margin-bottom: 10px;
}
#modalMockExamSelector .mock-exams {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: 5px;
    background-color: #ccc;
    border-bottom: 40px solid #fff;
    margin:30px 0 0;
}

#modalMockExamSelector .mock-card {
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: calc(50% - 1px);
    min-width: 320px;
    padding: 0 40px;
    text-align: center;
    background-color: #fff;
}
@media (max-width: 662px) {
    #modalMockExamSelector .mock-exams .mock-card:first-child {
        padding-bottom:40px;
    }
    #modalMockExamSelector .mock-exams .mock-card:last-child {
        padding-top:40px;
    }
}

.dash-mini-box {
    display: flex;
    align-items: center!important;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    padding: 0.7rem;
    box-shadow: var(--bs-box-shadow);
}
.dash-mini-box .fa-block {
    width: 3.7rem;
    height: 3.7rem;
    line-height: 3.7rem;
    text-align: center;
    border-radius: 5px;
    font-size: 1.5rem;
}
.dash-mini-box .text-block {
    margin-left: 1.5rem;
}
.dash-mini-box .text-block .title {
    font-size: 1.5rem;
    line-height: normal;
    font-weight: 500;
}
.fa-block-sm {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    border-radius: 5px;
    font-size: 1.2rem;
}
.fa-block-blue {
    background-color: #ddf3fc;
    color: #0466B9;
}
.fa-block-navy {
    background-color: #e1ebfc;
    color: #1B04B9;
}
.fa-block-yellow {
    background-color: #fbf2df;
    color: #E9B62D;
}
.fa-block-green {
    background-color: #ddf4e8;
    color: #3DC978;
}
.fa-block-red {
    background-color: #fddfdf;
    color: #bf3333;
}

label.status {
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}
label.status-success {
    background-color: #ddf4e8;
    color: #14782A;
}
label.status-warning {
    background-color: #fff3e8;
    color: #985D0C;
}
label.status-danger {
    background-color: #fddfdf;
    color: #980C0C;
}
label.status-unknown {
    background-color: #f8f8f8;
    color: #3d3d3d;
}


.StripeElement {
    padding: 0.9rem;
    max-height: 50px;
}