@font-face {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400;
    font-style: normal;
    overflow: hidden;
}

p {
    color: var(--primary);
}

:root {
    --black: #000;
    --white: #fff;
    --primary: #00758C;
    --light-primary: #00969F;
    --dark-primary: #00547C;
    --red: #C72B2B;
    --green: #007C14;
    --orange: #BA571A;
    --btn-orange: #E05740;
    --blue: #1E6DC8;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: none;
    padding: 0;
    color: inherit;
}

    .blazor-error-boundary::after {
        content: none;
    }


.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.3);
    z-index: 99999;
    pointer-events: all;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Shared shimmer animation used by skeleton loaders and image placeholders */
.skeleton-shimmer,
.img-shimmer {
    background: linear-gradient(110deg, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s linear infinite;
}

.skeleton-shimmer {
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    to {
        background-position: -200% 0;
    }
}

/**  Global overrides start **/
.btn {
    border: 1px #ECECEC solid;
    border-radius: 50px !important;
    height: 44px;
}

textarea {
    height: 120px;
    padding: 16px;
    border: 1px #ECECEC solid;
    border-radius: 16px !important;
}


button.delete-btn {
    background-color: #C72B2B14;
    color: var(--red);
    gap: 8px;
    border: none;
    border-radius: 50px;
    height: 44px;
    font-size: 14px;
    padding: 10px 20px;
}

    button.delete-btn:hover {
        background-color: var(--red);
        color: var(--white);
    }

        button.delete-btn:hover img {
            filter: brightness(0) invert(1);
        }

/**  Global overrides end **/

.exercise-info-popup .video-js {
    background-color: transparent !important;
}

.exercise-info-popup .player-dimensions {
    width: 100% !important;
    height: 492px !important;
}

.exercise-info-popup .modal-body .video .video-js {
    width: 100% !important;
    height: 492px !important;
    border-radius: 32px;
    margin-top: 16px;
    overflow: hidden;
}

    .exercise-info-popup .modal-body .video .video-js .vjs-tech {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

#localVideo {
    transform: scaleX(-1);
}

.table-container {
    background-color: var(--white);
    border-radius: 24px;
    border: 1px #ECECEC solid;
    box-shadow: 0 4px 40px #D2ADA71A;
    overflow: scroll;
    scrollbar-width: none;
}

.tabs {
    gap: 8px;
    padding: 8px;
    background-color: var(--white);
    border-radius: 50px;
    border: 1px #ECECEC solid;
    box-shadow: 0 4px 40px #D2ADA71A;
}

    .tabs button {
        height: 44px;
        border: none;
        border-radius: 50px;
        background-color: var(--white);
        font-size: 14px;
        color: var(--dark-primary);
        gap: 8px;
    }

        .tabs button img {
            height: 20px;
        }

        .tabs button.active {
            background-color: var(--primary);
            color: var(--white);
        }

            .tabs button.active img {
                filter: brightness(0) invert(1);
            }

.two-line-content {
    -webkit-line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
    min-height: 3em;
}

span {
    white-space: nowrap;
}

.disabled {
    cursor: not-allowed !important;
}

.validation-message,
.error {
    color: var(--red);
    font-size: 14px;
}

.empty-exercise-drop-container {
    height: 200px;
    border: 1px dashed var(--primary);
    border-radius: 24px;
    display: grid;
    place-items: center;
}

/*sendprogram pdf model message*/

.pdf-sending-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #00969F;
}

    .pdf-sending-status .spinner-border {
        width: 14px;
        height: 14px;
        margin-left: 6px;
    }

/***** Program Builder START *****/
.toggle-arrow img {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.toggle-arrow.collapsed img {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}


.program-builder-right2 .program-builder-right2-title button {
    gap: 8px;
    background-color: #00969F1A;
    border-radius: 50px;
    color: var(--dark-primary);
    height: 44px;
    padding: 0 16px;
    border: none;
}

    .program-builder-right2 .program-builder-right2-title button:hover {
        background-color: var(--primary);
        color: var(--white);
    }

        .program-builder-right2 .program-builder-right2-title button:hover img {
            filter: brightness(0) invert(1);
        }


.program-builder-right-data2 .edit-all-section {
    background-color: #FAF9F8;
    border: 1px #ECECEC solid;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 24px;
}

.program-builder-right-data2 .edit-all-header h4 {
    font-weight: 600;
}

button.toggle-arrow {
    height: 44px;
    width: 44px;
    border: none;
    background-color: #00969F1A;
    border-radius: 50px;
}

    button.toggle-arrow:hover {
        background-color: var(--primary);
    }

        button.toggle-arrow:hover img {
            filter: brightness(0) invert(1);
        }

    button.toggle-arrow.sm {
        height: 24px;
        width: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        button.toggle-arrow.sm img {
            width: 16px;
        }

button.toggle-arrow.sm.program-details-toggle {
    height: 32px;
    width: auto;
    padding: 8px 16px;
    border-radius: 99px;
    gap: 8px;
}

.program-details-toggle span {
    color: var(--dark-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.program-details-toggle:hover span {
    color: white !important;
}

.program-builder-right-data2 .edit-all-section .edit-all-content {
    margin-top: 12px;
}

    .program-builder-right-data2 .edit-all-section .edit-all-content p {
        font-weight: 700;
        color: var(--primary);
    }

    .program-builder-right-data2 .edit-all-section .edit-all-content .mode-toggle {
        background-color: var(--white);
        padding: 8px !important;
        border: 1px #ECECEC solid;
        border-radius: 50px;
        box-shadow: 0 4px 40px #D2ADA71A;
        gap: 8px;
        margin: 16px 0;
        justify-content: center;
    }

        .program-builder-right-data2 .edit-all-section .edit-all-content .mode-toggle button {
            width: 100%;
        }

.program-builder-right-data2 .edit-all-section .field {
    gap: 16px;
}

    .program-builder-right-data2 .edit-all-section .field input {
        background-color: var(--white);
        border: 1px #ECECEC solid;
        border-radius: 16px;
        box-shadow: 0 4px 40px #D2ADA71A;
        height: 44px;
        padding: 0 16px;
        color: var(--dark-primary);
        outline: none;
    }

.program-builder-right-data2 .mode-btn {
    color: var(--dark-primary);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

    .program-builder-right-data2 .mode-btn.active {
        background: var(--primary);
        color: #fff;
    }

    .program-builder-right-data2 .mode-btn img {
        height: 18px;
    }

    .program-builder-right-data2 .mode-btn.active img {
        filter: brightness(0) invert(1);
    }

.program-builder-right-data2 .edit-all-section .edit-all-content .apply-all {
    background-color: #00969F1A;
    border: none;
    height: 44px;
    color: var(--dark-primary);
    margin-top: 24px;
    border-radius: 50px;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

    .program-builder-right-data2 .edit-all-section .edit-all-content .apply-all:hover {
        background-color: var(--primary);
        color: var(--white);
    }

        .program-builder-right-data2 .edit-all-section .edit-all-content .apply-all:hover img {
            filter: brightness(0) invert(1);
        }

.program-builder-right-data2 .fields {
    gap: 10px;
    flex-wrap: wrap;
}

    .program-builder-right-data2 .fields .mode-toggle {
        background-color: var(--white);
        padding: 4px !important;
        border: 1px #ECECEC solid;
        border-radius: 16px;
        box-shadow: 0 4px 40px #D2ADA71A;
        width: fit-content;
    }

        .program-builder-right-data2 .fields .mode-toggle button {
            border: none;
            border-radius: 12px !important;
        }

    .program-builder-right-data2 .fields label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 4px;
        color: var(--dark-primary);
    }

    .program-builder-right-data2 .fields input {
        width: auto;
        padding: 8px;
        border: 1px #ECECEC solid;
        border-radius: 16px;
        outline: none;
        color: var(--dark-primary);
    }

        .program-builder-right-data2 .fields input:focus {
            border: 1px var(--primary) solid;
        }

.program-builder-right-data2 .exercise-header span {
    color: var(--primary);
    font-weight: 500;
}

.program-builder-right-data2 .exercise-header button {
    height: 20px;
    background-color: transparent;
    border: transparent;
    padding: 0;
}

.program-builder-right-data2 .exercise-card {
    background-color: #FAF9F8;
    border: 1px #ECECEC solid;
    border-radius: 24px;
    padding: 15px;
    margin-bottom: 1.5rem;
}

    .program-builder-right-data2 .exercise-card .exercise-card-top {
        border-top: 1px #ECECEC solid;
        border-bottom: 1px #ECECEC solid;
        margin-top: 15px;
    }

        .program-builder-right-data2 .exercise-card .exercise-card-top img.model {
            height: 84px;
            width: 84px;
            object-fit: cover;
        }

        .program-builder-right-data2 .exercise-card .exercise-card-top h5 {
            margin-left: 16px;
            font-weight: 700;
        }

        .program-builder-right-data2 .exercise-card .exercise-card-top span {
            padding: 6px 0;
            background-color: #00969F1A;
        }

        .program-builder-right-data2 .exercise-card .exercise-card-top button {
            background-color: transparent;
            border: none;
        }

    .program-builder-right-data2 .exercise-card:last-of-type {
        margin-bottom: 0;
    }

/***** Program Builder END *****/
.input-wrapper {
    position: relative;
    width: 300px;
}

    .input-wrapper input {
        width: 100%;
        padding-left: 40px;
        height: 40px;
        box-sizing: border-box;
    }

.input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}


/* Bootstrap Modal for create-new-exercise */

.create-new-exercise .name-input span {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.create-new-exercise .name-input label {
    color: var(--dark-primary);
    font-size: 14px;
    font-weight: 500;
}

.create-new-exercise .name-input input {
    height: 44px;
    background-color: var(--white);
    border: 1px #ECECEC solid;
    box-shadow: 0 4px 40px #D2ADA71A;
    border-radius: 16px;
    color: var(--dark-primary);
    margin-top: 4px;
    padding: 0 16px;
    outline: none;
}

.create-new-exercise .two-option {
    background-color: var(--white);
    padding: 24px;
    box-shadow: 0 4px 40px #D2ADA71A;
    border: 1px #ECECEC solid;
    border-radius: 32px;
    margin-top: 32px;
}

    .create-new-exercise .two-option .btn {
        gap: 4px;
        background-color: #FAF9F8;
        border: 1px #ECECEC solid;
        border-radius: 50px;
        padding: 8px;
    }

        .create-new-exercise .two-option .btn button {
            height: 44px;
            border: none;
            border-radius: 50px;
            background-color: transparent;
            gap: 8px;
            font-size: 14px;
            color: var(--primary);
        }

            .create-new-exercise .two-option .btn button.active {
                background-color: var(--primary);
                color: var(--white);
            }

            .create-new-exercise .two-option .btn button img {
                height: 20px;
            }

            .create-new-exercise .two-option .btn button.active img {
                filter: brightness(0) invert(1);
            }

    .create-new-exercise .two-option .two-option-data {
        gap: 16px;
        margin-top: 16px;
    }

        .create-new-exercise .two-option .two-option-data label {
            color: var(--dark-primary);
            font-size: 14px;
            font-weight: 500;
        }

        .create-new-exercise .two-option .two-option-data input {
            height: 44px;
            border: 1px #ECECEC solid;
            border-radius: 16px;
            background-color: #FAF9F8;
            padding: 0 16px;
            margin-top: 4px;
            outline: none;
            color: var(--dark-primary);
        }

.create-new-exercise .filter {
    margin-top: 42px;
}

    .create-new-exercise .filter h5 {
        font-size: 18px;
        font-weight: 700;
        color: var(--dark-primary);
    }

.create-new-exercise .filter-data {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

    .create-new-exercise .filter-data .filter-btn {
        border: 1px solid #ECECEC;
        box-shadow: 0 4px 40px #D2ADA71A;
        border-radius: 9999px;
        padding: 8px 16px;
        background: #fff;
        color: #00547C;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .create-new-exercise .filter-data .filter-btn.active {
            background-color: var(--primary);
            color: #fff;
            position: relative;
            padding-left: 30px;
        }

            .create-new-exercise .filter-data .filter-btn.active::before {
                content: "✕";
                position: absolute;
                left: 12px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 12px;
                color: var(--white);
            }

        .create-new-exercise .filter-data .filter-btn:hover {
            background-color: var(--primary);
            color: var(--white);
        }

.create-new-exercise .guid {
    margin-top: 32px;
}

    .create-new-exercise .guid h4 {
        font-size: 20px;
        font-weight: 700;
        color: var(--dark-primary);
        margin-bottom: 24px;
    }

    .create-new-exercise .guid div {
        gap: 16px;
    }

    .create-new-exercise .guid > div + div {
        margin-top: 16px;
    }

.create-new-exercise .guid div h6 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.create-new-exercise .guid div textarea {
    height: 120px;
    border: 1px #ECECEC solid;
    border-radius: 16px;
    box-shadow: 0 4px 40px #D2ADA71A;
    padding: 16px;
    outline: none;
    color: #00547C;
}

.create-new-exercise .guid div textarea::placeholder {
    color: #00557c30;
}

.create-new-exercise .guid div .close-btn {
    width: auto;
    margin: 0;
}

.create-new-exercise .guid div button {
    height: 44px;
    width: 44px;
    background-color: #C72B2B14;
    border-radius: 50px;
    box-shadow: 0 4px 40px #D2ADA71A;
    border: none;
    display:flex;
    justify-content: center;
    align-items: center;
}

.create-new-exercise .guid div button:hover {
    background-color: var(--red);
}

.create-new-exercise .guid div button:hover img {
    filter: brightness(0) invert(1);
}

.create-new-exercise .upload-section {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 32px;
}

.create-new-exercise .upload-box {
    width: 48%;
}

    .create-new-exercise .upload-box h5 {
        font-weight: 400;
        margin-bottom: 8px;
        font-size: 16px;
        color: var(--dark-primary);
    }

.create-new-exercise .upload-area {
    border: 1px dashed var(--primary);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    background-color: #fff;
    transition: 0.3s;
}

.create-new-exercise .upload-video-area {
    border: 1px dashed var(--primary);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    background-color: #fff;
    transition: 0.3s;
}

.create-new-exercise .upload-area.dragover {
    border-color: #00969F;
    background-color: var(--white);
}

.create-new-exercise .upload-content img {
    width: 24px;
    height: 24px;
}

.create-new-exercise .upload-content p {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-primary);
    margin-top: 8px;
}

.create-new-exercise .upload-content span {
    display: block;
    color: var(--light-primary);
    font-size: 14px;
    margin-bottom: 24px;
}

.create-new-exercise .browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background-color: #00969F1A;
    border-radius: 50px;
    padding: 12px 16px;
    font-weight: 500;
    color: #00547C;
    cursor: pointer;
    font-size: 14px;
    border: none;
}
.create-new-exercise .browse-btn p {
    color: #00547C;
}

.create-new-exercise .browse-btn:hover {
    background-color: #00969F;
    color: var(--white);
}
.create-new-exercise .browse-btn:hover p {
    color: var(--white);
}

.create-new-exercise .browse-btn:hover img {
    filter: brightness(0) invert(1);
}

.create-new-exercise .error-message,
.error-message {
    color: var(--red);
    font-size: 14px;
    margin-top: 10px;
}

.create-new-exercise .check {
    gap: 12px;
    margin-top: 32px;
}

    .create-new-exercise .check p {
        font-size: 16px;
        font-weight: 500;
        color: var(--dark-primary);
    }

    .create-new-exercise .check input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 24px;
        height: 24px;
        border: 2px solid var(--primary);
        border-radius: 8px;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
    }

        .create-new-exercise .check input[type="checkbox"]:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }

            .create-new-exercise .check input[type="checkbox"]:checked::after {
                content: "✓";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: var(--white);
                font-size: 14px;
                font-weight: bold;
            }

.create-new-exercise .save-btn {
    background-color: var(--btn-orange);
    color: var(--white);
    gap: 8px;
    height: 44px;
    border: none;
    border-radius: 50px;
    margin: 32px 0;
}

    .create-new-exercise .save-btn:hover {
        opacity: 0.9;
    }


/* End popup */

.training-program-equipments {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type="text"],
.textarea {
    width: 100%;
    background-color: #FAF9F8;
    padding: 10px 15px;
    border-radius: 16px;
    border: 1px solid #ECECEC;
    font-size: 14px;
    outline: none;
}

/* Give the user clear visual feedback that the header is draggable */
.exercise-header {
    cursor: grab;
    cursor: -webkit-grab;
}

    .exercise-header:active {
        cursor: grabbing;
        cursor: -webkit-grabbing;
    }

#sortable2 {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
}

    /* The Placeholder layout */
    #sortable2 .ui-state-highlight {
        background-color: #FAF9F8 !important;
        border: 1px dashed #ECECEC !important;
        border-radius: 24px;
        height: 56px !important;
        min-height: 56px !important;
        margin: 12px 0 !important;
        visibility: visible !important;
        display: block !important;
    }

/* Force all items (including the flying helper) to collapse layout strictly */
.list-is-dragging li,
.exercise-card-wrapper .ui-sortable-helper {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    margin: 12px 0 !important;
    padding: 0 !important; /* Strips framework padding that pushes content down */
}

    /* Ensure the wrapper details are hidden completely */
    .list-is-dragging li .exercise-details-container {
        display: none !important;
    }

    /* The Header Layout Correction */
    .list-is-dragging .exercise-header,
    .exercise-card-wrapper .ui-sortable-helper .exercise-header {
        display: flex !important;
        align-items: center !important; /* Fixes downward content shift */
        justify-content: space-between !important;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

        /* Normalize inner components inside the compressed header bar */
        .list-is-dragging .exercise-header > div,
        .list-is-dragging .exercise-header > button {
            margin: 0 !important;
            display: flex !important;
            align-items: center !important; /* Centers text strings and SVG wrappers */
            height: 100% !important;
        }

.exercise-header .title {
    display: none;
}

.list-is-dragging .indexValue {
    margin-right: 12px;
}

.list-is-dragging .middle {
    margin-right: auto;
    display: flex !important;
    align-items: center !important;
}

.list-is-dragging .exercise-header .title {
    display: inline-block !important;
}
