@font-face {
    font-family: Bitter;
    src: url("../fonts/Bitter-Regular.ttf");
}

@font-face {
    font-family: Bitter;
    font-weight: 300;
    src: url("../fonts/Bitter-Light.ttf");
}

@font-face {
    font-family: Bitter;
    font-weight: 500;
    src: url("../fonts/Bitter-Medium.ttf");
}

@font-face {
    font-family: Bitter;
    font-weight: 600;
    src: url("../fonts/Bitter-SemiBold.ttf");
}

@font-face {
    font-family: Bitter;
    font-weight: 700;
    src: url("../fonts/Bitter-Bold.ttf");
}

@font-face {
    font-family: Oswald;
    src: url("../fonts/Oswald-Regular.ttf");
}

@font-face {
    font-family: Oswald;
    font-weight: 300;
    src: url("../fonts/Oswald-Light.ttf");
}

@font-face {
    font-family: Oswald;
    font-weight: 500;
    src: url("../fonts/Oswald-Medium.ttf");
}

@font-face {
    font-family: Oswald;
    font-weight: 700;
    src: url("../fonts/Oswald-Bold.ttf");
}

#membersArea {
    opacity: 0;
    transition: opacity 0.3s ease-in;
    overflow-x: hidden;
}

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
/* 2. Remove default margin */
* {
    margin: 0;
}
body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
    font-family: Bitter;
    background: #252423;
    color: #F2E2D3;
}
/* 5. Improve media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
/* 6. Inherit fonts for form controls */
input, button, textarea, select {
    font: inherit;
}

body:not(.touchscreen)::-webkit-scrollbar,
body:not(.touchscreen) .single.selectize-dropdown::-webkit-scrollbar {
    width: 10px;
}

body:not(.touchscreen)::-webkit-scrollbar-track,
body:not(.touchscreen) .single.selectize-dropdown::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #211F1D;
    border: 1px solid #F2E2D333;
}

body:not(.touchscreen)::-webkit-scrollbar-thumb,
body:not(.touchscreen) .single.selectize-dropdown::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #57514b;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
/* 8. Improve line wrapping */
p {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
}

    h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}
/*
9. Create a root stacking context
*/
#root, #__next {
    isolation: isolate;
}

ul {
    list-style-type: none;
    padding-inline-start: 0;
}

body {
    flex-direction: column;
    margin: 0;
    padding: 160px 0 0;
    color: #F2E2D3;
}

table {
    width: 100%;
    margin-left: 50px;
    color: #F2E2D3;
    background: transparent;
    border: 0.5px solid #F2E2D333;
    border-collapse: collapse;
}

tr, td, th {
    height: 80px;
}

td {
    border: 0.5px solid #F2E2D333;
}

button.d-none {
    display: none;
}

.time-slot {
    display: flex;
    position: relative;
}

button {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;
    background: transparent;
    -webkit-appearance: none;
    line-height: normal;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;
    color: inherit;
    font: inherit;
}

button:hover {
    cursor: pointer;
}

.wrapper {
    width: 100%;
    padding: 0 54px 160px;
}


.btn-primary {
    display: flex;
    width: fit-content;
    height: 40px;
    margin: 0 auto;
    padding: 6px 11px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 7px;
    background: #B86C21;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    color: #252423;
    font-family: Bitter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
}

/* Destructive page-level action (e.g. "Delete Exercise"). Outlined rather
   than filled so it never competes with the primary action next to it;
   matches the .vm-btn-danger red used in the confirm dialog. */
.btn-danger {
    display: flex;
    width: fit-content;
    height: 40px;
    margin: 0 auto;
    padding: 6px 11px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border: 1px solid #B2402F;
    border-radius: 7px;
    background: transparent;
    color: #B2402F;
    font-family: Bitter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
}

.btn-danger:hover {
    background: #B2402F;
    color: #F2EFE9;
}

.btn-danger:focus-visible {
    outline: 2px solid #D95F4C;
    outline-offset: 2px;
}

/* Exercise edit page: the two stacked actions read as a pair, so they share a
   width instead of each sizing to its own label. Both are already margin:0 auto,
   so the max-width keeps them centred. */
.exercise-details #updateExerciseButton,
.exercise-details #deleteExerciseButton {
    width: 100%;
    max-width: 210px;
}

.input-box {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    background: #2D2B29;
    color: #F8ECE0;
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25) inset;
    border: 0.75px solid transparent;
    outline: none !important;
}

.input-box:hover {
    border: 0.75px solid rgba(234, 209, 185, 0.30);
}

.input-box:active,
.input-box:focus,
.input-box:-webkit-autofill,
.input-box:-webkit-autofill,
.input-box:-webkit-autofill:hover,
.input-box:-webkit-autofill:focus,
.input-box:-webkit-autofill:active {
    border: 0.75px solid rgba(234, 209, 185, 0.30);
    background: #3B3937;
}

/* Start Login */
.body-login,
.body-signup {
    padding-top: 90px;
    display: flex;
}

.body-login #pageHeader,
.body-signup #pageHeader,
.body-expired #pageHeader {
    top: 0;
}

#loginForm,
#signupForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 570px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

#loginForm img,
#signupForm img {
    width: 160px;
    margin-bottom: 70px;
}

#loginForm .inputs-container,
#signupForm .inputs-container {
    width: 100%;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-container + .input-container {
    margin-top: 24px;
}

#loginForm .input-box,
#signupForm .input-box {
    width: 100%;
}

#signupForm .inputs-container {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 20px;
    row-gap: 32px;
    justify-content: space-between;
    align-items: center;
}

#rememberMeContainer {
    position: relative;
    margin-top: 22px;
}

#rememberMe {
    margin-right: 15px;
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#rememberMeContainer .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    border-radius: 6px;
    border: 1px solid #6C6A68;
}

#rememberMeContainer .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

#rememberMeContainer input:checked ~ .checkmark:after {
    display: block;
}

#rememberMeContainer .checkmark:after {
    left: 3px;
    top: 6px;
    width: 16px;
    height: 12px;
    background: url('../images/check.svg') no-repeat center / contain;
}

#rememberMeContainer label .checkbox-text {
    margin-left: 30px;
}

#registerLink {
    margin-top: 20px;
    font-size: 14px;
}

#registerLink a {
    color: #B86C21;
}

#loginForm button,
#signupForm button {
    margin-top: 40px;
}

.validation {
    margin-top: 20px;
    color: #c75337;
}

.validation:empty {
    margin: 0;
}

@media screen and (max-width: 750px) {
    #loginForm img,
    #signupForm img {
        margin-bottom: 60px;
    }
}

@media screen and (max-width: 550px) {
    #signupForm .inputs-container {
        grid-template-columns: auto;
        row-gap: 12px;
    }

    #signupForm .inputs-container .input-label {
        margin-top: 10px;
    }
}

@media screen and (max-height: 850px) {
    #signupForm img {
        display: none;
    }
}

#paymentExpiredMessage,
#signupSuccessfulMessage {
    text-align: center;
}

#paymentExpiredMessage p,
#signupSuccessfulMessage p {
    margin-bottom: 60px;
}

/* End Login */

/* Start Schedule */
.sidebar {
    width: 225px;
}

#updateSubjects {
    margin: 20px 0 0;
}

#wrapperScheduleAdmin, #wrapperSchedule {
    display: flex;
    flex-direction: column;
}

#activeUntil {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    margin-right: 15px;
    font-size: 14px;
    text-align: right;
}

#dateNextPaymentPicker {
    width: 24px;
    height: 24px;
    background: url('../images/calendar.svg') no-repeat center / contain;
}

div + #dateNextPaymentPicker {
    visibility: hidden;
    margin-right: 8px;
}

#activeUntil:hover #dateNextPaymentPicker {
    visibility: visible;
}

#dateNextPaymentPicker input {
    width: 100%;
    height: 100%;
    opacity: 0;
}

.row {
    display: flex;
    width: 100%;
}

.time-slot .menu-container,
.time-slot .add-btn {
    display: none;
}

.time-slot:hover .add-btn,
.time-slot:hover .menu-container {
    visibility: visible;
    display: block;
}

.add-btn, .menu-toggle.add-btn {
    display: block;
    visibility: hidden;
    width: 24px;
    height: 24px;
    background: url('../images/btn-add.svg') no-repeat center / cover;
}

.dropdown {
    position: absolute;
    top: 30px;
    left: 0;
    z-index: auto;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.time-slot .dropdown {
    display: none;
}

.dropdown.exercise-dropdown,
.dropdown.order-dropdown {
    display: block;
    top: 0;
    width: 100%;
    position: unset;
}

.dropdown.order-dropdown {
    width: 40px;
}

.single.selectize-dropdown {
    position: absolute;
    top: 63px !important;
    left: 0 !important;
    z-index: 10;
    transform: scale(1);
    max-height: 320px;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #2D2B29;
}

.single.selectize-dropdown .option {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 20px;
    border-bottom: 1px solid #F2E2D333;
    font-size: 12px;
    white-space: break-spaces;
    cursor: pointer;
}

.single.selectize-dropdown .option.active {
    background-color: #3A3632;
}

.dropdown select {
    width: 200px;
    padding: 5px;
    font-size: 14px;
}
.dropdown button {
    margin-top: 5px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.subject-entry {
    display: inline-block;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 2px 0;
    position: relative;
}

.subject-entry .remove-subject {
    display: none;
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    background: url('../images/btn-remove.svg') no-repeat center / cover;
    cursor: pointer;
}

.subject-entry:hover .remove-subject {
    display: inline-block;
}

.table-wrapper {
    flex-grow: 1;
    max-width: 1120px;
}

#scheduleTable, #subjectsTable {
    display: flex;
    flex-direction: column;
    border-radius: 7px;
}

#scheduleTable .schedule-day-sm {
    display: none;
}

#scheduleTable .table-cell,
#subjectsTable .table-cell {
    border-top: 1px solid #7D756D33;
    border-left: 1px solid #7D756D33;
}

#scheduleTable .table-cell:last-child,
#SubjectsTable .table-cell:last-child {
    border-right: 1px solid #7D756D33;
}

#scheduleTable .table-cell,
#subjectsTable .table-cell {
    display: flex;
    align-items: center;
}

#scheduleTable .table-head .table-cell {
    text-transform: uppercase;
}

#scheduleTable .table-head .table-cell,
#subjectsTable .table-head .table-cell {
    font-weight: 700;
}

#scheduleTable .table-head .table-cell:first-child {
    border-top-left-radius: 7px;
}

#scheduleTable .table-head .table-cell:last-child {
    border-top-right-radius: 7px;
}

#scheduleTable .table-body .table-row:last-child .table-cell:first-child {
    border-bottom-left-radius: 7px;
}

#scheduleTable .table-body .table-row:last-child .table-cell:last-child {
    border-bottom-right-radius: 7px;
}

#scheduleTable .table-body .table-row:last-of-type .table-cell,
#subjectsTable .table-body .table-row:last-of-type .table-cell {
    border-bottom: 1px solid #7D756D33;
}

#scheduleTable .table-cell:not(:first-child) {
    width: calc(50% - 80px);
}

.table-body {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: flex;
    min-height: 80px;
    height: auto;
}

.table-cell {
    padding: 12px 24px;
    flex-flow: wrap;
    gap: 12px;
}

#scheduleTable .table-row .table-cell:first-child {
    width: 145px;
}

#subjectForm #subjectsTable .table-cell:first-child {
    width: 470px;
}

.selectize-input.items.has-options.full.has-items {
    display: flex;
}

/* .order-select .selectize-input.items.has-options.full.has-items {
    padding-left: 11px;
} */

.order-select.selectize-control.single {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 100%;
}

#scheduleUpdateWrapper {
    margin-top: 20px;
}

@media screen and (max-width: 920px) {
    .wrapper,
    h1#subheader,
    header#pageHeader {
        padding-left: 18px;
        padding-right: 18px;
    }

    #scheduleTable .table-cell {
        font-size: 14px;
    }

    .subject-entry.label-main {
        padding: 6px 7px;
        font-size: 14px;
        white-space: normal;
        width: auto;
        height: fit-content;
    }

    #scheduleTable {
        margin-top: -25px;
    }

    #scheduleTable .schedule-day {
        display: none;
    }

    #scheduleTable .schedule-day-sm {
        display: flex;
    }

    #scheduleTable .table-row {
        display: grid;
        grid-template-columns: 50px 1fr 1fr;
    }

    #scheduleTable,
    #scheduleTable .table-head .table-cell:first-child,
    #scheduleTable .table-head .table-cell:last-child,
    #scheduleTable .table-body .table-row:last-child .table-cell:first-child,
    #scheduleTable .table-body .table-row:last-child .table-cell:last-child {
        border-radius: 0 !important;
    }

    #scheduleTable .table-head .table-cell {
        border-top: none;
    }

    #scheduleTable .table-row {
        min-height: 70px;
    }

    #scheduleTable .table-row .table-cell {
        width: unset;
        border-left: none;
        border-right: none;
    }

    #scheduleTable .table-row .table-cell:first-child {
        align-items: center;
        justify-content: center;
        width: unset;
    }

    #wrapperSchedule > .row:first-child,
    #wrapperScheduleAdmin > .row:first-child {
        flex-direction: column-reverse;
    }

    div.subject-buttons {
        gap: 14px;
    }

    .subject-buttons .subject-btn {
        font-size: 14px;
    }

    #activeUntil {
        margin-bottom: 15px;
    }
}

/* End Schedule */

/* Start Subjects */
#subjectsTable {
    border-left: none;
    border-right: none;
}

#subjectsTable .table-row {
    min-height: 63px;
}

#subjectsTable .table-cell:first-child {
    width: 432px;
    border-left: none;
}

#subjectsTable .table-cell:last-child {
    border-right: none;
}

.mini-label {
    display: none;
}

.body-admin:not(.body-report) #subjectsTable .table-cell:last-child {
    border: none !important;
}

.body-admin:not(.body-report) #subjectsTable .table-cell:nth-last-of-type(2) {
    border-right: none;
}

#subjectsTable .table-cell:nth-child(2),
#subjectsTable .table-cell:nth-child(3),
#subjectsTable .table-cell:nth-child(4) {
    width: 222px;
}

#subjectsTable .table-cell:nth-child(),
#subjectsTable .table-cell:nth-child(5) {
    width: 80px;
}

#subjectsTable .table-cell {
    position: relative;
    padding: 10px;
}

#subjectsTable .table-cell:has(.selectize-input.dropdown-active) {
    background-color: #2D2B29;
}

#subjectsTable .table-body .table-cell:first-child {
    flex-flow: nowrap;
}

#subjectUpdateWrapper {
    display: flex;
    width: 100%;
    margin-top: 30px;
}

.table-row .exercise-label {
    cursor: pointer;
}

#addFirstRow {
    margin-top: 30px;
}

#subjectsTable .menu-container {
    display: none;
    align-items: center;
    margin-left: 5px;
}

#subjectsTable .table-row:hover .menu-container {
    display: flex;
}

#subjectsTable.empty .table-head,
#subjectsTable.empty #updateSubject {
    display: none;
}

#noDetails {
    text-align: center;
}

.input-subject-label {
    display: none;
}

#requestReview {
    margin: 50px auto 0;
}

.empty #requestReview {
    display: none;
}

@media screen and (max-width: 920px) {
    .input-subject-label {
        display: flex;
    }

    #subjectsTable .table-body .table-cell .input-subject-label {
        width: 80px;
    } 

    #subjectsTable .table-body .table-cell .input-subject-label + .input-main {
        width: calc(100% - 110px) !important;
    }

    #subjectsTable .table-row {
        height: 84px;
        flex-direction: column;
    }

    .body-report #subjectsTable .table-row {
        border-bottom: 1px solid rgba(131, 123, 115, 0.30);
    }

    .table-row .exercise-label,
    #subjectsTable .dropdown.exercise-dropdown {
        height: auto;
        padding: 6px 7px;
        font-size: 13px;
        white-space: normal;
    }

    #subjectsTable .dropdown.exercise-dropdown {
        justify-content: flex-start;
    }

    #subjectsTable .dropdown.order-dropdown {
        padding: 4px 10px;
        width: 35px;
        height: 36px;
        font-size: 13px;
    }

    .order-dropdown .dropdown-active .item {
        margin-left: 4px;
        margin-top: 1px;
    }

    #subjectsTable .table-row:hover .menu-container {
        position: absolute;
        right: 0;
        top: calc(50% + 22px);
    }

    #subjectsTable .table-row:hover .menu-container .menu-options {
        top: 10px;
        transform: translateX(-100%);
    }

    .single.selectize-dropdown {
        top: 31px !important;
        overflow-x: hidden;
    }

    .single.selectize-dropdown .option {
        padding: 0 7px;
    }

    #subjectsTable .table-head {
        display: none;
    }

    .mini-label {
        display: flex;
        font-size: 12px;
        color: #D8812E;
    }

    .table-cell .label {
        display: inline-block;
        margin-top: 3px;
        font-size: 10px;
    }

    .table-cell .label.order-label {
        font-size: 16px;
    }

    #wrapperSubject #subjectsTable .table-row,
    #wrapperSubjectAdmin #subjectsTable .table-row {
        flex-direction: row;
        flex-flow: wrap;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
        height: auto;
        padding: 10px 0 10px 25px;
        position: relative;
        border-bottom: 1px solid rgba(234, 209, 185, 0.30);
        border-bottom: 1px solid rgba(131, 123, 115, 0.30);
    }

    #wrapperSubject #subjectsTable .table-cell,
    #wrapperSubjectAdmin #subjectsTable .table-cell {
        width: auto;
        padding: 0;
        border: none;
    }

    #wrapperSubject #subjectsTable .table-row .table-cell:first-child,
    #wrapperSubjectAdmin #subjectsTable .table-row .table-cell:first-child {
        width: 100%;
        max-width: calc(100% - 30px);
    }

    #wrapperSubject #subjectsTable .table-row .table-cell:first-child,
    #wrapperSubjectAdmin #subjectsTable .table-row .table-cell:first-child {
        margin-bottom: 8px;
    }

    #wrapperSubjectAdmin #subjectsTable .table-row .table-cell:first-child {
        max-width: calc(100% - 50px);
    }

    #wrapperSubject #subjectsTable .table-row .table-cell:last-child,
    #wrapperSubjectAdmin #subjectsTable .table-row .table-cell:last-of-type {
        position: absolute;
        top: 12px;
        right: 0;
    }

    #wrapperSubjectAdmin #subjectsTable .table-row .table-cell:last-of-type {
        top: 10px;
    }

    #wrapperSubject #subjectsTable .table-cell:not(:first-child):not(:last-of-type),
    #wrapperSubjectAdmin #subjectsTable .table-cell:not(:first-child):not(:last-of-type) {
        margin-right: 12px;
    }

    #wrapperSubject #subjectsTable .table-cell > div,
    #wrapperSubjectAdmin #subjectsTable .table-cell > div {
        display: flex;
        gap: 7px;
    }

    #wrapperSubject .table-row .light,
    #wrapperSubjectAdmin .table-row .light {
        position: absolute;
        left: -25px;
    }
}

/* End Subjects */

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* Start Video */

.video-section,
.upload-section {
    margin-bottom: 20px;
}

#user-video-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#user-video-section video {
    max-height: 500px;
}

#coach-video-section {
    flex-direction: column;
    align-items: flex-start;
}

#exerciseAudio,
#coachAudio {
    width: 100%;
}

.video-label {
    min-height: 36px;
    margin-bottom: 9px;
    font-size: 14px;
    font-style: italic;
}

#userVideoControls {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#upload-section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%; 
    background-image: url('data:image/svg+xml,%3csvg width=\'100%25\' height=\'100%25\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3crect width=\'100%25\' height=\'100%25\' fill=\'none\' rx=\'7\' ry=\'7\' stroke=\'%236C6A68FF\' stroke-width=\'3\' stroke-dasharray=\'9%2c 14\' stroke-dashoffset=\'0\' stroke-linecap=\'round\'/%3e%3c/svg%3e');
    border-radius: 7px;
}

#upload-section-wrapper + #user-video-section {
    grid-column: 2;
}

#upload-section-wrapper h3 {
    font-size: 27px;
}

#uploadModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#modalContent {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

#videoPreview {
    max-height: 60vh;
    margin: 15px auto;
    border-radius: 5px;
}

#confirmUpload {
    margin-top: 22px;
}

#admin-comments-textarea {
    margin-top: 0;
}

#admin-comments-textarea + #updateExerciseStatus {
    margin-top: 20px;
}

#adminComments {
    margin-top: 15px;
}

/* Style for the empty (background) part of the progress bar */
progress {
    width: 90%;
    height: 10px;
    margin-top: 10px;
    border: none;
    background-color: #534e4a; /* Light gray background */
    border-radius: 7px;
    overflow: hidden;
}

/* Webkit-based browsers (Chrome, Safari, Edge) */
progress::-webkit-progress-bar {
    background-color: #534e4a; /* Light gray */
    border-radius: 7px;
}

/* The filled progress (value) */
progress::-webkit-progress-value {
    background-color: #B86C21; /* Custom brown-orange */
    border-radius: 7px;
}

/* Mozilla Firefox */
progress::-moz-progress-bar {
    background-color: #B86C21; /* Custom brown-orange */
    border-radius: 7px;
}

@media screen and (max-width: 920px) {
    #wrapperSubjectVideoAdmin {
        margin-top: 20px;
    }

    div#video-container {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    #user-video-section {
        gap: 20px;
    }

    #admin-comments-textarea + #updateExerciseStatus {
        margin-top: 5px;
    }

    .admin-comments {
        font-size: 14px;
    }

    #video-container video {
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }

    div#upload-section-wrapper {
        width: 100%;
        max-width: unset;
        padding-bottom: 56.18%;
    }

    div#upload-section {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    #upload-section h3,
    #upload-section h3 + p {
        display: none;
    }

    div#user-video-section.video-only {
        width: 100%;
    }

    #wrapperSubjectVideo {
        margin-top: 20px;
    }

    #userCardsContainer {
        margin-top: -30px;
    }
}
/* Video End */

/*Menu Start*/

#menuItems {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 70px;
    padding: 0px 0px 0px 150px;
    align-items: center;
    gap: 62px;
    flex-shrink: 0;
    background: #B86C21 no-repeat center / 48px;
    background-image: url('../images/logo-black.svg');
    background-position-x: 24px;
}

#menuItems li {
    display: flex;
    padding: 10px 0px;
    align-items: center;
    gap: 140px;
    position: relative;
}

#menuItems li a {
    color: #252423;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 33px; /* 150% */
}

@media screen and (min-width: 921) {
    #menuItems li a {
        display: flex;
        align-items: center;
        height: 100%;
    }
}

#subjectSubMenu {
    display: none;
    position: absolute;
    top: 50px;
    left: -15px;
    z-index: 20;
    padding: 0 15px;
    background: #B86C21;
}

#menuItems li:hover #subjectSubMenu {
    display: block;
}

#subjectSubMenu li a {
    font-size: 16px;
    white-space: nowrap;
}

#unreadBadge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -7px;
    right: -3px;
    width: 17px;
    height: 17px;
    font-family: 'Oswald';
    font-size: 11px;
    background: #3B3937;
    color: #D8812E;
    border-radius: 50%;
}

.user-card #unreadBadge {
    width: 29px;
    height: 29px;
    top: 0;
    right: 0;
    transform: translateX(50%) translateY(-50%);
    font-size: 16px;
    line-height: 21px;
    background: #B86C21;
    color: #252423;
}

@media screen and (max-width: 920px) {
    body {
        padding-bottom: 75px;
    }

    #menuItems li:hover #subjectSubMenu {
        left: 50%;
        transform: translateX(-50%);
        top: unset;
        bottom: calc(50% + 12px);
        padding-bottom: 40px;
        text-align: left;
        border-radius: 0;
        border: none;
        background: none;
        box-shadow: none;
    }

    #menuItems li:hover #subjectSubMenu li {
        padding: 5px 10px;
        background: #252423;
        border: none;
        border-left: 0.75px solid #F2E2D333;
        border-right: 0.75px solid #F2E2D333;
    }

    #menuItems li:hover #subjectSubMenu li:first-of-type {
        border-top: 0.75px solid #F2E2D333;
        border-radius: 4px 4px 0 0;
    }

    #menuItems li:hover #subjectSubMenu li:last-of-type {
        border-bottom: 0.75px solid #F2E2D333;
        border-radius: 0 0 4px 4px;
    }

    #menuItems li #subjectSubMenu li:not(:last-of-type) {
        border-bottom: 0.75px solid #EAD1B933;
    }

    #menuItems li:hover #subjectSubMenu li a {
        font-size: 14px;
        align-items: flex-start;
    }

    #mobileMenu #notificationsBtn {
        display: none;
    }

    #hamburgerMenu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: #B86C21 no-repeat center / 48px;
        background-image: url('../images/logo-black.svg');
        background-position-x: 24px;
    }

    #menuItems {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        position: fixed;
        bottom: 0;
        top: unset;
        z-index: 1;
        height: 80px;
        padding: 0 20px;
        background: #2D2B29;
        border-top: 1px solid #3B3937
    }

    #menuItems.menu-items-hidden {
        display: none;
    }

    #menuItems li {
        padding: 0;
    }

    #menuItems li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;
        height: 100%;
        font-family: "Oswald";
        font-weight: 400;
        font-size: 10px;
        text-transform: uppercase;
        color: #F2E2D3;
    }

    #menuItems > li > a:before {
        content: '';
        display: flex;
        width: 24px;
        height: 24px;
        color: #F2E2D3;
        background: url('../images/schedule.svg') no-repeat center / contain;
    }

    #menuItems #scheduleLink.active:before {
        background-image: url('../images/schedule-active.svg');
    }

    #menuItems #subjectsLink:before {
        background-image: url('../images/subjects.svg');
    }

    #menuItems #subjectsLink.active:before {
        background-image: url('../images/subjects-active.svg');
    }

    #menuItems #reportLink:before {
        background-image: url('../images/report.svg');
    }

    #menuItems #reportLink.active:before {
        background-image: url('../images/report-active.svg');
    }

    #menuItems #infoLink:before {
        background-image: url('../images/info.svg');
    }

    #menuItems #infoLink.active:before {
        background-image: url('../images/info-active.svg');
    }

    #menuItems #chatLink.active:before {
        background-image: url('../images/chat-active.svg');
        background-size: 21px;
    }

    #menuItems #chatLink:before {
        background-image: url('../images/chat.svg');
    }

    #menuItems #usersLink:before {
        background-image: url('../images/users.svg');
    }

    #menuItems #usersLink.active:before {
        background-image: url('../images/users-active.svg');
    }

    #menuItems li a span {
        line-height: 15px;
        white-space: nowrap;
    }

    #menuItems li a.active {
        color: #B86C21;
    }

    #mobileMenu div#profileBtn {
        display: block;
        width: 37px;
        height: 26px;
        background: url("../images/hamburger.svg") no-repeat center / contain;
    }

    #mobileMenu div#profileBtn.has-unread-notifications:before {
        content: '';
        display: flex;
        width: 13px;
        height: 13px;
        position: absolute;
        right: 0;
        top: 0;
        transform: translateX(50%) translateY(-50%);
        border-radius: 50%;
        background: #8A2006;
    }

    #mobileMenu li#notificationsMenuItem {
        display: flex;
        position: relative;
    }

    #mobileMenu li#notificationsMenuItem #unreadBadge {
        right: unset;
        top: 50%;
        transform: translateY(-50%);
        left: 10px;
        width: 25px;
        height: 25px;
        background: #8A2006;
        color: #F2E2D3E5;
        font-size: 12px;
    }

    #mobileMenu #profileBtn:hover #profileSubMenuContainer {
        min-width: 170px;
    }

    #menuItems #infoLinkItem {
        display: none;
    }
}

#mobileMenu {
    position: absolute;
    right: 22px;
    top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 70px;
}

#mobileMenu li > div {
    position: relative;
    display: flex;
    width: 24px;
    height: 24px;
    font-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#mobileMenu a {
    display: flex;
    align-items: center;
    justify-content: right;
    text-align: right;
    width: 100%;
    height: 100%;
    padding-right: 15px;
}

#mobileMenu a:hover {
    background: #2D2B29;
}

#mobileMenu #notificationsBtn {
    background-image: url('../images/bell.svg');
}

#mobileMenu #profileBtn {
    background-image: url('../images/profile.svg');
}

#profileSubMenuContainer,
#notificationsSubMenuContainer {
    display: none;
}

#mobileMenu #profileBtn:hover #profileSubMenuContainer,
#mobileMenu #notificationsBtn:hover #notificationsSubMenuContainer {
    display: block;
    position: absolute;
    z-index: 1;
    min-width: 170px;
    top: 22px;
    right: 1px;
    padding-top: 6px;
}

#mobileMenu #profileSubMenu,
#mobileMenu #notificationsSubMenu {
    background: #252423;
    border: 1px solid #4C4741;
    border-radius: 4px;
}

#profileSubMenu li,
#notificationsSubMenu li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 44px;
}

#notificationsSubMenu li:first-child a,
#profileSubMenu li:first-child a {
    border-radius: 4px 4px 0 0;
}

#notificationsSubMenu li:last-child a,
#profileSubMenu li:first-child a {
    height: 40px;
    border-radius: 0 0 4px 4px;
}

#profileSubMenu li:not(:last-child),
#notificationsSubMenu li:not(:last-child) {
    border-bottom: 0.75px solid #EAD1B933;
}

#notificationsSubMenu {
    width: fit-content;
    min-width: 200px;
    max-width: 430px;
}

#notificationsSubMenu a {
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
}

#seeAllNotifications {
    justify-content: center;
    color: #D8812E;
}

.notifications {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
}

.notifications ul {
    width: 100%;
}

.notification-entry {
    display: block;
    padding: 8px 0;
    font-weight: 600;
    border-bottom: 0.75px solid #F2E2D316;
}

.notification-date {
    margin-bottom: 5px;
    font-size: 12px;
}

.notification-entry.read {
    font-weight: 300;
}

.notification-entry:not(.notification-link) {
    cursor: context-menu;
}

#mobileMenu #notificationsMenuItem {
    display: none;
}

@media (pointer: coarse) {
    /* Styles for touchscreen devices */
    #mobileMenu #profileBtn:hover #profileSubMenuContainer,
    #mobileMenu #notificationsBtn:hover #notificationsSubMenuContainer {
        padding-top: 26px;
    }
}

body.touchscreen #mobileMenu #profileBtn:hover #profileSubMenuContainer,
body.touchscreen #mobileMenu #notificationsBtn:hover #notificationsSubMenuContainer {
    padding-top: 26px;
}





@media screen and (max-width: 920px) {
    h1#subheader,
    div#phaseNumber {
        font-size: 14px;
    }

    div#phaseWeek {
        font-size: 10px;
    }

    #phaseInfo {
        gap: 2px;
    }

    .body-chat #phaseInfo, 
    .body-notifications #phaseInfo {
        display: none;
    }
}

/*Menu End*/

/*Header Start*/
#pageHeader {
    display: flex;
    width: 100%;
    height: 70px;
    padding: 0px 24px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    top: 70px;
    background: #2D2B29;
    color: #F2E2D3;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.25);
}

#backArrow {
    display: block;
    width: 12px;
    height: 20px;
    background: url("../images/back.svg") no-repeat center / cover;
}

#phaseInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    min-width: 66px;
}

#backArrowContainer,
#phaseInfo,
#headerFiller {
    flex-grow: 1;
    flex-basis: 0;
}

.phase-with-spinner {
    margin-right: -8px;
}

#phaseWeek {
    color: #F2E2D3B2;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    text-transform: uppercase;
    line-height: normal;
    white-space: nowrap;
}

#phaseNumber {
    color: #F2E2D3E5;
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
}

#subheader {
    text-align: left;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 54px;
    font-weight: 400;
    font-size: 16px;
}

.light {
    width: 17px;
    height: 17px;
    margin-right: 5px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
}

.light-red {
    background-image: url('../images/light-red.svg');
}

.light-green {
    background-image: url('../images/light-green.svg');
}

.light-neutral {
    background-image: url('../images/light-neutral.svg');
}
/*Header End*/

/* Schedule Start */
.subject-buttons {
    margin-right: 50px;
}

.subject-buttons {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 37px;
}

.label {
    color: #F2E2D3;
    font-family: Bitter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.input-main {
    height: 100%;
    background: transparent;
    appearance: none;
    color: inherit;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.subject-btn, .label-main, .dropdown {
    display: flex;
    height: 37px;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 7px;
    background: transparent;
    color: #F2E2D3;
    font-family: Oswald;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 80%;
}

.subject-btn.visible, .label-main, .dropdown {
    background: #211F1D;
    border: 1px solid #F2E2D3E5;
    opacity: 100%;
}
/* Schedule End */

/* Chat Start */
#wrapperChat {
    max-height: calc(100vh - 330px);
    margin-top: -10px;
    overflow-y: auto;
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

#subheader + #wrapperChat {
    margin-top: -30px;
}

#chat-container {
    width: 700px;
    max-width: 100%;
    margin: 0 auto;
}

#chat-input-container {
    width: 100%;
    bottom: 0;
    position: fixed;
    left: 0;
    background: #2D2B29;
    padding: 20px 0;
}

#chat-input {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 700px;
    max-width: 100%;
    margin: 0 auto;
}

#send-button {
    width: 84px;
    height: 40px;
    padding-left: 38px;
    background-image: url('../images/send.svg');
    background-repeat: no-repeat;
    background-position: 7.5px center;
    background-size: 24px;
    font-weight: 500;
}

#message-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.date-header, .sent-at {
    font-family: "Oswald";
    font-size: 13px;
    text-align: center;
}

.date-header {
    text-transform: uppercase;
}

.message-container {
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 8px;
    align-self: end;
}

.message {
    width: fit-content;
    padding: 12px;
    border-radius: 9px 0px 9px 9px;
    background: #2D2B29;
    box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.15);
}

.message p {
    word-break: break-word;
    white-space: pre-wrap;
}

.peer-message {
    align-self: start;
    align-items: start;
}

.peer-message .message{
    background: #B86C21;
    border-radius: 0px 9px 9px 9px;
}

#message-input,
#admin-comments-textarea {
    flex-grow: 1;
    resize: none;
    overflow-y: auto;
    height: 40px;
    max-height: calc(1.5em * 6); /* Adjust for line height (6 lines) */
    line-height: 1.5em;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    background: none;
    color: #F2E2D3;
    border: 1px solid #F2E2D3;
    border-radius: 7px;
    border: 1.5px solid #F2E2D366;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box; /* Include padding and border in height calculations */
    line-height: 20px; /* Define a consistent line-height */
    height: 40px; /* Default height for 1 line */
    max-height: 120px; /* Maximum height for 6 lines */
    overflow-y: hidden; /* Hide scrollbar initially */
    resize: none; /* Prevent manual resizing */
}

#message-input::placeholder,
#admin-comments-textarea::placeholder {
    color: #F2E2D399;
}

.no-messages {
    margin-top: 40px;
    text-align: center;
}

/* Chat video messages */

#attach-video-button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2E2D3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='13.5' height='12' rx='2.5'/%3E%3Cpath d='M15.5 10.7l5.3-3.2a.8.8 0 0 1 1.2.7v7.6a.8.8 0 0 1-1.2.7l-5.3-3.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    border: 1.5px solid #F2E2D366;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

#attach-video-button:hover {
    border-color: #B86C21;
    background-color: #B86C211A;
}

.message.video-message {
    padding: 6px;
    max-width: 280px;
}

.chat-video-wrap {
    position: relative;
    width: 260px;
    max-width: 100%;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    outline: none;
}

.chat-video-wrap video {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    pointer-events: none; /* Clicks go to the wrapper, which opens the player modal */
}

.chat-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}

.chat-video-overlay::after {
    content: '';
    width: 48px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='23' fill='rgba(0,0,0,0.55)' stroke='rgba(242,226,211,0.9)' stroke-width='1.5'/%3E%3Cpath d='M19 15.5v17l14-8.5z' fill='%23F2E2D3'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.2s ease;
}

.chat-video-wrap:hover .chat-video-overlay,
.chat-video-wrap:focus-visible .chat-video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.chat-video-wrap:hover .chat-video-overlay::after,
.chat-video-wrap:focus-visible .chat-video-overlay::after {
    transform: scale(1.08);
}

/* Compact variant of the exercise-page processing placeholder, sized for a chat bubble */
.chat-video-processing {
    width: 260px;
    max-width: 100%;
    max-height: none;
    padding: 16px 12px;
    gap: 10px;
}

.chat-video-processing .spinner {
    width: 30px;
    height: 30px;
}

.chat-video-processing p {
    font-size: 12px;
}

.video-caption {
    padding: 8px 6px 2px;
}

.upload-hint {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #F2E2D399;
}

/* Video playback modal */
#videoPlayerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#videoPlayerContent {
    position: relative;
    width: min(90vw, 900px);
}

#chatVideoPlayer {
    display: block;
    width: 100%;
    max-height: 80vh;
    border-radius: 7px;
    background: #000;
    box-shadow: 0px 4px 24px 4px rgba(0, 0, 0, 0.45);
}

#closeVideoPlayer {
    position: absolute;
    top: -38px;
    right: 0;
    width: 28px;
    height: 28px;
    background: url('../images/btn-close.svg') no-repeat center / cover;
    cursor: pointer;
}

@media screen and (max-width: 920px) {
    #chat-input-container {
        bottom: 80px;
        background: none;
    }

    #attach-video-button {
        width: 34px;
        height: 34px;
        margin-bottom: 3px;
        background-size: 19px;
    }

    .message.video-message {
        max-width: 240px;
    }

    .chat-video-wrap,
    .chat-video-processing {
        width: 220px;
    }

    #videoPlayerContent {
        width: 94vw;
    }

    #send-button {
        width: 26px;
        height: 26px;
        padding: 0;
        margin-bottom: 6px;
        background: url('../images/send-2.svg') no-repeat center / contain;
        font-size: 0;
        box-shadow: none;
        border: none;
    }

    #chat-input {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #message-input {
        background: #252423;
    }

    #subheader + #wrapperChat {
        margin-top: 0;
    }
}

/* Chat End */

/* Info Start */
.info-page {
    width: 80%;
    margin: 0 auto;
}

.spoiler {
    max-width: 800px;
    margin: 0 auto 10px;
    background: #2D2B29;
    border-radius: 7px;
    box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.15);
}

.spoiler-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    height: 50px;
    position: relative;
    cursor: pointer;
}

.spoiler-header h3 {
    margin: 0 0 0 15px;
    font-size: 20px;
    font-weight: 600;
}

.spoiler-header .arrow {
    width: 12px;
    height: 6px;
    background: url('../images/arrow-down.svg') no-repeat center center;
    transition: transform 0.3s ease;
}

.spoiler-header .arrow.open {
    transform: rotate(180deg);
}

.spoiler-content {
    display: none;
    padding: 10px 20px 20px;
}

.spoiler-content p + p {
    margin-top: 10px;
}

@media screen and (max-width: 750px) {
    .info-page {
        width: 100%;
    }
}
/* Info End */

/* Menu cell styling */
.menu-cell {
    position: relative;
    text-align: center;
}

/* Menu button (three dots) styling */
.menu-toggle {
    width: 23px;
    height: 6px;
    background: url('../images/menu-toggle.svg');
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #FFF;
}

.menu-toggle:focus {
    outline: none;
}

/* Menu options dropdown */
.menu-container {
    position: relative;
}

.menu-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    border-radius: 4px;
    border: 0.75px solid #F2E2D333;
    background: #252423;
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25);
}

.menu-options li {
    padding: 0;
}

.menu-options button {
    width: 100%;
    text-align: left;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.menu-options button:hover {
    background-color: #343332;
}

/* Show the menu when the toggle is clicked */
.menu-container.active .menu-options {
    display: block;
}

.time-slot .menu-options {
    margin-top: 10px;
    transform: none;
    left: 0;
}

.time-slot .menu-options button {
    font-family: "Oswald";
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
}

.visible-1 {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.3s;
}

.visible-0 {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s;
}

/*Start Dashboard*/

#userCardsContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 16px;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 240px;
    height: 170px;
    padding: 50px 0 20px;
    background-color: #2D2B29;
    color: #F2E2D3;
    border-radius: 8px;
    cursor: pointer;
    border-radius: 7px;
    border: 1px solid rgba(234, 209, 185, 0.90);
    box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease-in-out;
    font-family: "Oswald";
}

.user-card:hover {
    transform: scale(1.05);
    z-index: 1;
}

.user-card.inactive {
    opacity: 0.4;
}

.user-name {
    font-size: 32px;
}

.user-email {
    font-weight: 300;
    font-size: 14px;
}

.videos-uploaded {
    margin-top: -12px;
    font-weight: 300;
    font-size: 14px;
    color: rgba(242, 226, 211, 0.80);
}

@media screen and (max-width: 920px) {
    #userCardsContainer {
        flex-direction: column;
        gap: 0;
    }

    .user-card {
        display: flex;
        flex-direction: row;
        padding: 10px 0px;
        align-items: center;
        gap: 21px;
        align-self: stretch;
        width: 100%;
        height: 48px;
        padding-left: 30px;
        border: none;
        border-bottom: 0.5px solid rgba(234, 209, 185, 0.30);
        background: none;
        border-radius: 0;
        box-shadow: none;
    }

    .user-card:hover {
        transform: none;
        background: #2D2B29;
    }

    .user-name {
        font-size: 18px;
        line-height: 1;
    }

    .user-email {
        font-size: 14px;
    }

    .user-card #unreadBadge {
        right: unset;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* End Dashboard */

/* Video styles */
/* Video View Styles */
#video-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-auto-rows: 1fr; /* Ensures rows stretch equally */
    grid-auto-rows: auto;
    align-items: stretch; /* Ensures all items stretch to the full row height */
    gap: 50px; /* Space between the videos */
    max-width: 1800px;
    height: 100%; /* Full height */
}

#video-container video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    display: block;
    border-radius: 7px;
    background: #1a1a1a;
}

/* Left Section: User Video or Upload Section */
#upload-section-wrapper, #upload-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#upload-section-wrapper {
    max-width: 710px;
    height: unset;
    margin-top: 30px;
}

/* #upload-section-wrapper video,
#upload-section {
    max-width: 500px;
    margin-bottom: 15px;
} */

#upload-section {
    font-size: 27px;
    font-weight: 500;
}

#upload-section p {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
}

#upload-section em {
    font-weight: 300;
    font-size: 14px;
}

#upload-section #fileInput,
#upload-section #mediaUpload {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#upload-section-wrapper + #user-video-section {
    order: 1;
}

/* Video conversion in-progress notice.
   Mirrors the footprint of #video-container video (16/9, max 500px,
   7px radius) so the layout doesn't shift when the player appears. */
.video-processing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    padding: 20px;
    border-radius: 7px;
    border: 1px solid #F2E2D333;
    background: #1a1a1a;
    text-align: center;
}

.video-processing .spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #F2E2D31A;
    border-top-color: #B86C21;
    animation: video-processing-spin 0.9s linear infinite;
}

@keyframes video-processing-spin {
    to { transform: rotate(360deg); }
}

.video-processing p {
    font-size: 14px;
    font-style: italic;
    color: #F2E2D3B3;
    max-width: 320px;
}

.video-processing a {
    color: #B86C21;
    font-style: normal;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.video-processing a:hover {
    color: #D98A3A;
}


#uploadForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Right Section: Coach Video and Notes */
#coach-video-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    justify-content: flex-start;
    align-items: flex-start;
}

#notes-section {
    width: 100%;
    max-width: 500px;
    margin-top: 40px;
    text-align: left;
}

#notes-section h3 {
    text-align: left;
}

#modalContent {
    position: relative;
    padding: 20px 25px;
    background: #2D2B29;
    border-radius: 7px;
    border: 1px solid #F2E2D34D;
}

#modalContent h3 {
    margin-bottom: 25px;
}

#closeModal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: url('../images/btn-close.svg') no-repeat center / cover;
    width: 24px;
    height: 24px;
}

/* General Text Alignment */
h1, h2, h3 {
    text-align: center;
}

h2 {
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 10px;
}

.spinner-container {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding-top: 4px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: none;
    transition: width 0.8s ease;
}

#phaseWeek .spinner-container {
    height: 21px;
    padding-top: 8px;
}

#phaseNumber,
#phaseWeek {
    display: flex;
}

#phaseWeek:hover .spinner-box > span {
    padding-top: 2px;
}

#phaseWeek > span {
    display: flex;
    align-items: center;
}

#phaseNumber:hover .spinner-container,
#phaseWeek:hover .spinner-container {
    margin-left: 5px;
    border: 2px solid #F2E2D3E5;
    padding-top: 0;
}

.spinner-container:hover {
    width: 60px;
    border: 2px solid #F2E2D3E5;
}

.spinner-container .prev,
.spinner-container .next {
    position: absolute;
    top: 50%;
    right: 30px;
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #F2E2D3E5;
    border-left: 2px solid #F2E2D3E5;
    z-index: 1;
    transform: translateY(-50%) rotate(135deg);
    cursor: pointer;
    opacity: 0;
    transition: 0.5s;
}

.spinner-container .prev {
    transform: translateY(-50%) rotate(315deg);
}

.spinner-container:hover .prev {
    opacity: 1;
    left: 10px;
}


.spinner-container:hover .next {
    opacity: 1;
    right: 10px;
}

.spinner-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-box span {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    text-align: center;
    line-height: 1;
    user-select: none;
}

/* Start EoP Report */

#updateReport {
    margin-top: 30px;
}

@media screen and (max-width: 920px) {
    .body-report #subjectForm #subjectsTable .table-row,
    .body-report #wrapperScheduleAdmin #subjectsTable .table-row {
        flex-direction: row;
        justify-content: space-between;
    }

    .body-report #subjectForm #subjectsTable .table-cell,
    .body-report #wrapperScheduleAdmin #subjectsTable .table-cell {
        width: auto;
        border: none;
    }

    .body-report #subjectForm #subjectsTable .table-cell:nth-child(2),
    .body-report #wrapperScheduleAdmin #subjectsTable .table-cell:nth-child(2) {
        width: 120px;
    }

    .body-report .input-main,
    .body-subjects .table-cell > .input-main {
        width: 120px;
        height: 40px;
        padding: 0 10px;
        border-radius: 6px;
        background: #2D2B29;
        color: #F8ECE0;
        box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25) inset !important;
        border: 0.75px solid transparent !important;
        outline: none !important;
    }

    .body-report .table-cell .label {
        font-size: 12px;
    }
}
/* End EoP Report */

/* Start Notifications */

#noNotificationsMessage {
    text-align: center;
}

#markAllAsRead {
    margin-bottom: 15px;
    font-size: 14px;
    color: #B86C21;
}

#notificationPagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 200px;
    margin: 40px auto 0;
}

#notificationPagination li {
    color: #B86C21;
    font-size: 16px;
    font-weight: 400;
}

#notificationPagination li.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 25px;
    height: 25px;
    padding: 4px;
    border-radius: 25px;
    border: 1.5px solid #B86C21;
    background: #B86C21;
}

#notificationPagination li.active a {
    font-weight: 700;
    color: #252423;
}

.pagination-arrow {
    display: flex;
    width: 12px;
    height: 12px;
    background: url('../images/next.svg') no-repeat center / contain;
}

.pagination-arrow.hidden {
    opacity: 0;
}

#paginationNextDouble {
    background-image: url('../images/next-double.svg');
    width: 14px;
}

#paginationPrev {
    background-image: url('../images/prev.svg');
}

#paginationPrevDouble {
    background-image: url('../images/prev-double.svg');
    width: 14px;
}
/* End Notifications */

/* Start Error Page */
.error-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 730px;
    margin: 150px auto 0;
    padding: 0px 30px 30px 30px;
    font-family: Bitter;
    font-size: 16px;
    text-align: center;
    background: #B86C21;
    color: #211F1D;
    border-radius: 5px;
}

.error-page-container a {
    font-size: 14px;
    font-weight: bold;
    color: inherit !important;
    text-decoration: none;
}

.error-page-container h1 {
    padding-top: 15px;
    font-size: 36px;
    font-weight: normal;
}

.error-page-container img {
    width: 300px;
}

.error-page-options {
    margin-top: 25px;
}

.error-page-options div {
    display: inline-flex;
    padding: 7px 15px;
    background: #211F1D;;
    color: #B86C21;
    border-radius: 5px;
}

.error-page-options div:first-child {
    margin-right: 5px;
}

@media screen and (max-width: 480px) {
    .error-page-container {
        padding-right: 10px;
        padding-left: 10px;
        margin-top: -90px;
    }
    
    .error-page-options {
        display: flex;
        flex-direction: column;
    }

    .error-page-options div {
        justify-content: center;
        min-width: 200px;
        margin: 0 auto;
    }

    .error-page-options div:first-child {
        margin-right: auto;
        margin-bottom: 12px;
    }
}
/* End Error Page */

/* Start Exercises Page */
#subject-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
}

#subject-list a {
    font-family: "Oswald";
    font-size: 20px;
    text-transform: uppercase;
}

#exercise-list .exercise {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #7D756D33;
}

.exercise-description {
    max-width: 480px;
    font-family: inherit;
    text-overflow: ellipsis;
}

.exercise-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 610px;
    margin: 0 auto;
}

.exercise-details .input-container {
    margin: 0;
}

.exercise-details #upload-section-wrapper {
    height: 340px;
}

.exercise-details .upload-section-wrapper {
    height: 340px;
}

.admin-video-section {
    position: relative;
}

.exercise-details #upload-section-wrapper {
    margin-top: 0;
    margin-bottom: -30px;
}

.admin-video-section video {
    border-radius: 6px;
}

/* #updateVideoButton now uses the shared .video-action-btn styling
   (see "Per-video management actions" section at the end of this file) */

.admin-video-section progress {
    width: 100%;
    margin-top: 20px;
}

#exerciseDescription {
    height: 180px;
    padding-top: 8px;
    resize: none;
}

#exercise-details label {
    margin-left: 10px;
    font-weight: 300;
}
/* End Exercises Page */
/* ==========================================================================
   Per-video management actions (replace / delete) — user + admin video pages
   ========================================================================== */
.video-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    min-height: 36px;
}

.video-card-head .video-label {
    margin-bottom: 0;
}

.video-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.video-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    box-shadow: none;
    opacity: 0.45; /* quiet until the card is hovered or the button focused */
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.userVideoDisplay:hover .video-action-btn,
.userVideoDisplay:focus-within .video-action-btn,
.admin-video-section:hover .video-action-btn,
.admin-video-section:focus-within .video-action-btn,
.admin-media-section:hover .video-action-btn,
.admin-media-section:focus-within .video-action-btn,
.video-action-btn:hover,
.video-action-btn:focus-visible {
    opacity: 1;
}

.video-action-btn:hover {
    background-color: rgba(242, 226, 211, 0.08);
}

.video-action-btn:focus-visible {
    outline: 2px solid #D27A22;
    outline-offset: 2px;
}

.video-action-replace {
    background-image: url('../images/replace.svg');
}

.video-action-delete {
    background-image: url('../images/delete.svg');
}

.video-action-delete:hover,
.video-action-delete:focus-visible {
    background-color: rgba(217, 95, 76, 0.14);
}

.video-action-delete:focus-visible {
    outline-color: #D95F4C;
}

/* Touch devices: no hover, so keep actions fully visible with 44px targets */
@media (hover: none) {
    .video-action-btn {
        opacity: 1;
        width: 44px;
        height: 44px;
        background-size: 22px 22px;
    }
}

/* --- Confirm dialog ------------------------------------------------------ */
.vm-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
}

body.vm-dialog-open {
    overflow: hidden;
}

.vm-dialog {
    width: 100%;
    max-width: 420px;
    padding: 24px 25px;
    background: #2D2B29;
    border: 1px solid #F2E2D34D;
    border-radius: 7px;
    text-align: center;
}

.vm-dialog h3 {
    margin-bottom: 12px;
}

.vm-dialog p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere; /* long filenames must not overflow */
}

.vm-preview {
    display: block;
    max-width: 100%;
    max-height: 240px;
    margin: 0 auto 20px;
    border-radius: 6px;
}

.vm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.vm-btn {
    height: 40px;
    padding: 6px 22px;
    border-radius: 7px;
    font-size: 15px;
}

.vm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vm-btn-cancel {
    background: transparent;
    border: 1px solid #F2E2D34D;
    color: inherit;
}

.vm-btn-confirm {
    background-color: #B86C21;
    color: #fff;
}

.vm-btn-confirm.vm-btn-danger {
    background-color: #B2402F;
}

.vm-btn:focus-visible {
    outline: 2px solid #D27A22;
    outline-offset: 2px;
}

.vm-btn-danger:focus-visible {
    outline-color: #D95F4C;
}

.vm-progress {
    margin-bottom: 20px;
}

.vm-progress progress {
    width: 100%;
}

.vm-progress-text {
    margin: 8px 0 0;
    font-size: 14px;
}

/* ==========================================================================
   VideoTrimmer (upload modal) — dual-handle range over the preview timeline
   ========================================================================== */
#trimSection {
    margin: 0 auto 12px;
    max-width: 100%;
}

.vt-wrap {
    padding: 10px 12px 0;
}

.vt-track {
    position: relative;
    height: 8px;
    margin: 14px 0 10px;
    border-radius: 4px;
    background: #F2E2D34D;
    touch-action: none; /* handles manage their own pointer gestures */
}

.vt-range {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background: #F2E2D3;
}

.vt-playhead {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 16px;
    margin-left: -1px;
    background: #D95F4C;
    pointer-events: none;
}

.vt-handle {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 2px solid #2D2B29;
    background: #F2E2D3;
    cursor: grab;
    touch-action: none;
}

.vt-handle:active {
    cursor: grabbing;
}

.vt-handle:focus-visible {
    outline: 2px solid #D95F4C;
    outline-offset: 2px;
}

.vt-times {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #F2E2D3E5;
}

.vt-time-selected {
    font-weight: 600;
}
