body{
    margin: 0;
}

.navbar{
    background-color: var(--color-surface);
    height: 75px;
}

.navbar-brand img{
    max-width: 200px;
    width: 100%;
}

.navbar-toggler, .navbar-toggler:focus{
    border: none!important;
    box-shadow: none!important;
}

.navbar-toggler i{
    font-size: 35px;
    color: #242335;
}

.instructions-icon {
    background: rgba(0,0,0,0.9);
    width: 50px;
    height: 50px;
    border-radius: 25px;
    color: #FFF;
    font-size: 28px;
    line-height: 50px;
    text-align: center;
    position: fixed;
    right: 10px;
    bottom: 40px;
    z-index: 999;
}

/* Auth buttons styling */
.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-buttons .btn-outline-primary {
    font-family: "Archivo", sans-serif;
    border-color: #242335;
    color: #242335;
}

.auth-buttons .btn-outline-primary:hover {
    background-color: #242335;
    color: #FFF;
}

.auth-buttons .btn-primary {
    font-family: "Archivo", sans-serif;
    background-color: #242335;
    border-color: #242335;
    color: #FFF;
}

.auth-buttons .btn-primary:hover {
    background-color: #FFF;
    color: #242335;
}

.auth-buttons .btn-outline-secondary {
    font-family: "Archivo", sans-serif;
    border-color: #242335;
    color: #242335;
}

.auth-buttons .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.auth-buttons .dropdown-item:hover {
    background-color: #f8f9fa;
}

.hero-con{
    height: calc(100vh - 75px);
    position: relative;
}

.hero-container{
    position: relative;
}

.hero-bg{
    background-image: url(../img/hero_image.png);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;    
}

.hero-info{
    background-color: var(--color-page-bg);
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: var(--radius-round);
    left: 0;
    top: 100px;
    text-align: center;
    padding: var(--space-8);
}

.hero-info h1{
    font-family: var(--font-family-sans);
    color: var(--color-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    text-align: center;
    line-height: var(--line-height-tight);
}

.hero-info p{
    font-family: var(--font-family-sans);
    color: var(--color-text-body);
    font-size: var(--font-size-md);
    text-align: center;
    max-width: 330px;
    margin: 0 auto;
    line-height: var(--line-height-snug);
}

.hero-info a.btn-purple{
    font-family: "Archivo", sans-serif;
    background-color: #242335;
    border-radius: 50px;
    color: #FFF;
    padding: 15px 30px;
    margin-top: 30px;
    display: inline-block;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.page-content .btn-purple {
    color: #FFF;
}
.page-content .btn-purple:hover {
    color: #242335;
}


.btn-purple#webcamButton {
    background-color: #242335;
}
.btn-purple#webcamButton:hover {
    background-color: #FFF;
}

.videoView {
    background: #FAFAFA;
}

.page-content {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.page-title {
    font-family: var(--font-family-sans);
    color: var(--color-heading);
    font-size: var(--font-size-lg);
    text-transform: none;
    font-weight: var(--font-weight-bold);
}

h1, h2, h3 {
    text-transform: none;
    font-weight: 500;
}

.text-right{
    text-align: right;
}

.assessment-vid{
    width: 100%;
    max-width: 550px;
}

.assessment-vid[poster]{
    cursor: pointer;
}

.btn-purple, .btn-white:hover {
    font-family: "Archivo", sans-serif;
    background-color: #242335;
    border-radius: 50px;
    color: #FFF;
    border: 1px solid #242335;
    padding: 15px 40px;
    display: inline-block;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    width: auto;
}



.btn-white, .btn-purple:hover
{
    font-family: "Archivo", sans-serif;
    background-color: #FFF;
    border-radius: 50px;
    color: #242335;
    border: 1px solid #242335;
    padding: 15px 40px;
    display: inline-block;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    min-height: calc(100vh - 75px);
}

.videoView {
    min-height: 400px;
    overflow: hidden;
}

footer {
    text-align: center;
    margin-top: auto;
    padding-top: 16px;
}

.assessment-img{
    width: 100%;
}

.status-step {
    height: 10px;
    background-color: #E5E5E5;
    width: 100%;
    border-radius: 50px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    background-color: #1BFD3D;
    transform: 1s;
    width: 0%;
    max-width: 100%;
}

    h3.page-title {
        font-size: 25px;
        text-align: center;
    }

.tab-content{
    padding-top: 20px;
}

.flex-info label{
    font-size: 20px;
    text-align: center;
    line-height: 1;
    margin-bottom: 5px;
    white-space: pre;
    display: block;
}

.flexion-image{
    text-align: center;
    padding: 80px 0;
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.hand-img{
    width: 100%;
    max-width: 250px;
    text-align: center;
}

/* The connector-line PNGs must stay anchored to the hand image no matter how tall or
   wide the info block gets (TAM badge vs bars vs exact measurements). A fixed info
   width plus flex-start alignment makes the line position independent of content. */
.flexion-image .flex-info {
    width: 92px;
    flex: 0 0 92px;
}

.ring-finger
{
    position: absolute;
    display: flex;
    align-items: flex-start;
    top: 28px;
    left: -52px;
}

.middle-finger{
    position: absolute;
    display: flex;
    align-items: flex-start;
    top: 7px;
    left: 112px;
}

.index-finger{
    position: absolute;
    display: flex;
    align-items: flex-start;
    top: 99px;
    right: -39px;
}

/* The index line's label-side segment is at the bottom of its PNG — drop the info
   block so the label sits beside it instead of floating at the top. */
.index-finger .flex-info {
    margin-top: 38px;
}

.thumb-finger{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 248px;
    right: -37px;
    flex-direction: column;
}

.pinky-finger{
    position: absolute;
    display: flex;
    align-items: flex-start;
    top: 143px;
    left: -10px;
    flex-direction: column;
}

/* Center the LITTLE data under the line's bottom dot. The line image sits at
   the callout's left edge (rom-results.css forces align-items: flex-start to
   keep connectors anchored); the unflipped PNG's dot is at x≈13 of the image
   box while the 92px data block centers at x=46, so shift the data 33px left.
   position:relative so the shift can't resize the flex container and move the
   line. The flipped left-hand PNG puts the dot at x≈46 — already centered. */
.pinky-finger .flex-info {
    position: relative;
    left: -33px;
}
.flexion-image.left-hand .pinky-finger .flex-info {
    left: 0;
}

.thumb-finger .flex-info{
    padding-left: 40px;
}

.color-red{
    color: red!important;
}


.middle-finger img, .index-finger img, .thumb-finger img, .pinky-finger img{
    padding: 10px;
}

.ring-finger img{
    padding: 10px;
}

/*LEFT HAND FLIP*/
.flexion-image.left-hand img {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.flexion-image.left-hand .middle-finger {
    flex-direction: row-reverse;
    z-index: 2;
    left: -29px;
}
.flexion-image.left-hand .ring-finger {
    flex-direction: row-reverse;
    left: auto;
    right: -52px;
    z-index: 2;
}
.flexion-image.left-hand .index-finger {
    flex-direction: row-reverse;
    z-index: 2;
    right: auto;
    left: -39px;
}
.flexion-image.left-hand .pinky-finger {
    z-index: 2;
    left: auto;
    right: -53px;
}
.flexion-image.left-hand .thumb-finger {
    z-index: 2;
    right: auto;
    left: -37px;
}

.flexion-image.left-hand .thumb-finger .flex-info {
    padding-left: 0;
    padding-right: 40px;
}

.nav-tabs .nav-link {
    border-radius: 50px;
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    border: 0px;
}


.result-bg {
    background-image: url(../img/dark-hand.png);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
}


.result-info{
    background-color: #FFF;
    position: absolute;
    width: 450px;
    border-radius: 32px; 
    left: 0; 
    right: 0; 
    margin-inline: auto; 
    top: 100px;
    text-align: center;
    padding: 40px;
}

.result-info h1{
    font-family: "Arima", system-ui;
    color: #242335;
    font-weight: 500;
    font-size: 35px;
    text-align: center;
    line-height: 1.2;
}

.result-info p{
    font-family: "Archivo", sans-serif;
    color: #242335;
    font-size: 18px;
    text-align: center;
    margin: 0 auto;
    line-height: 1.3;
}

.result-info a.btn-purple{
    font-family: "Archivo", sans-serif;
    background-color: #242335;
    border-radius: 50px;
    color: #FFF;
    padding: 15px 30px;
    margin-top: 30px;
    display: inline-block;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    min-width: 250px;
}

.result-info .form-control{
    margin-top: 20px;
    margin-bottom: 20px;
}

.result-info .form-control label{
    font-size: 12px;
    text-align: left;
    display: block;
}

.result-info .form-control input{
    font-size: 14px;
    text-align: left;
    border: none;
    width: 100%;
    margin-top: 0;
}

.footer-dark{
    position: absolute;
    bottom: 10px;
    width: 100%;
    color: white;
}

.success-btn{
    max-width: 100%;
    min-width: 100%;
}

.success-info{
    height: auto;
}

.dashboard-kpi {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-kpi-val {
    font-size: 40px;
    font-weight: bold;
    color: #DEE2E6;
}

.dashboard-kpi-desc {
    font-size: 12px;
    font-weight: bold;
    color: #333333;
}

    .range-title {
        font-size: 35px !important;
    }

.insight {
    font-weight: bold;
    display: inline-block;
}
.insight.ql-color-red {
    color: red;
}
.insight.ql-color-green {
    color: green;
}

/* Care Provider Overrides */
.action-items-con {
    margin-top: 0;
}

.provider-sidebar .week-schedule-con #week-schedule .fc-toolbar, .week-schedule-con #care-provider-week-schedule .fc-toolbar {
    padding: 0;
}

.provider-sidebar .week-schedule-con #week-schedule .fc-col-header-cell-cushion, .week-schedule-con #care-provider-week-schedule .fc-col-header-cell-cushion {
    font-size: 12px;
}

.provider-sidebar .fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 1em;
    margin-bottom: 0px;
}

.patients.list-view p {
    margin-bottom: 0;
}


.action-items-con, .recently-viewed-con {
    height: auto;
    border-radius: 0;
}

.action-items-con h4, .recently-viewed-con h4 {
    background: #424649;
}

.action-search-con {
    background: rgba(0,0,0,0.1);
}

.recently-viewed-con {
    margin-top: 15px;
}

.form-control {
    border: 1px solid #424649;
}

.recently-viewed-items {
    background: #f7f9fc;
    border: 1px solid #dee6ed;
}

.week-schedule-con #week-schedule .fc-toolbar, .week-schedule-con #care-provider-week-schedule .fc-toolbar {
    background: #424649;
    color: #FFF;
}

.week-schedule-con #week-schedule .fc-toolbar-title, .week-schedule-con #care-provider-week-schedule .fc-toolbar-title {
    color: #FFF;
}

.week-schedule-con #week-schedule .fc-toolbar .fc-icon, .week-schedule-con #care-provider-week-schedule .fc-toolbar .fc-icon {
    color: #FFF;
}

.week-schedule-con #week-schedule .fc-col-header-cell-cushion, .week-schedule-con #care-provider-week-schedule .fc-col-header-cell-cushion {
    color: #424649;
}

.week-schedule-con #week-schedule, .week-schedule-con #care-provider-week-schedule {
    background: #f7f9fc;
    border: 1px solid #dee6ed;
}

.dropdown-item.active, .dropdown-item:active {
    background: rgba(0,0,0,0.1);
    color: #424649;
}

.header-row .patient-btns {
    background: #424649;
}

.add-exercise {
    background: #424649;
}

.header-row .patient-btns:hover {
    background: #242335;
}
    .dropdown-item a {
        color: #495057;
    }

.patients {
    background: #f7f9fc;
}

.exercise.grid-view .exercise-column {
    background: #f7f9fc;
}

.exerciseCreator {
    background: #f7f9fc;
}

.patient-profile-links .active {
    background: #424649;
}

.nav-tabs .nav-link {
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.form-control-con label {
    color: #424649;
}

.patient-profile-con {
    background: #f7f9fc;
}

.action-items-con, .treatment-creator {
    background: #f7f9fc;
}

h2 {
    color: #424649;
}

.exercise .exercise-item {
    padding: 20px 0;
}

.accordion .accordion-header .accordion-button {
    background: #f7f9fc !important;
    color: #424649;
}

.treatment {
    background: #f7f9fc;
}

.progress-con {
    background: #f7f9fc;
}

.btn-purple {
    background-image: none;
}

.patient-profile .tab-content {
    background: #f7f9fc;
}

.patient-profile .nav-item .nav-link {
    background: rgba(0,0,0,0.1);
}

.patient-profile .nav-item .nav-link.active {
    background: #f7f9fc;
}

.content {
    padding: 0px;
}


@media only screen and (max-width:768px) {
    /* CSS rules here */
    .hero-bg{
        position: relative;
        height: 300px;
    }
    .hero-info{
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
    }
    .content {
        padding: 0px;
    }
    .page-title{
        text-align: center!important;
        font-size: var(--font-size-lg);
    }
    .navbar .btn-dark {
        display: none;
    }

    .videoView {
        min-height: 400px;
        overflow: hidden;
        height: 400px;
    }
    .button-container {
        text-align: center;
    }
    .page-content .btn-purple {
        font-size: 15px;
        display: inline-flex;
        max-width: 230px;
        min-width: 230px;
        text-align: center;
        margin: 10px auto;
        height: 44px;
        align-items: center;
        justify-content: center;
        color: #FFF;
    }

    .flex-info label {
        font-size: 14px;
    }
    /* Finger-callout positions are NOT re-tuned per breakpoint: the connector lines are
       pixel-anchored to the hand image, so the whole graphic scales down uniformly
       instead (see .flexion-image transform below). Only the thumb callout, which the
       ROM partial does not render, keeps its legacy mobile nudge. */
    .flexion-image.left-hand .thumb-finger {
        top: 250px;
        left: 0;
    }

    .page-content .btn-white {
        font-size: 15px;
        display: inline-flex;
        max-width: 230px;
        text-align: center;
        margin: 10px auto;
        min-width: 230px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }  
    
    h3.page-title{
        text-align: center!important;
        font-size: 20px;
    }

    .navbar-brand img{
        max-width: 150px;
    }

    footer{
        padding-top: 60px;
    }    

    .result-info{
        width: 90%;
        height: auto;
        padding: 30px;
        top: 50px;
    }
    .fixed-button-container {
        background: #FFF;
        position: fixed;
        bottom: 0;
        border-top: 1px solid #DDD;
    }

    .page-content p{
        font-size: 15px;
    }

    .thumb-finger{

        top: 212px;
        right: -37px;

    }

    .hero-info h1{
        font-size: var(--font-size-lg);
    }

    /* Shrink the whole hand graphic (image + anchored callouts) uniformly so the
       widest labels stay on-screen without breaking the line-to-fingertip anchoring. */
    .flexion-image{
        transform: scale(0.78);
        transform-origin: top center;
    }

}


@media only screen and (min-width:2200px) { 
	/* CSS rules here */
    .hero-info{
        width: 600px;
        height: 600px;
    }

    .hero-info h1{
        font-size: var(--font-size-2xl);
    }    

    .hero-info p{
        max-width: 530px;
        font-size: var(--font-size-md);
    }

    .hero-info a.btn-purple{
        font-size: 1.3rem;

    }
}

/* =============================================================================
   First-visit tour prompt — centered modal with backdrop
   ============================================================================= */

/* Backdrop */
.fvp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9499;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.fvp-backdrop.fvp-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modal card */
.fvp-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    background: var(--color-surface, #fff);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    padding: 2.25rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    z-index: 9500;
    max-width: 420px;
    width: calc(100% - 32px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.fvp-toast.fvp-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Heading */
.fvp-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-heading, #111);
    margin: 0;
    line-height: 1.3;
}

/* Body text */
.fvp-text {
    font-size: 1.05rem;
    color: var(--color-text, #444);
    line-height: 1.55;
    margin: 0;
}

/* Buttons */
.fvp-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.5rem;
}
.fvp-btn-start {
    background: var(--color-primary, #165C84);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 8px);
    padding: 0.85rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.02em;
    transition: opacity 0.15s ease;
}
.fvp-btn-start:hover { opacity: 0.88; }
.fvp-btn-dismiss {
    background: none;
    border: none;
    color: var(--color-text-muted, #888);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.3rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.fvp-btn-dismiss:hover { color: var(--color-text, #333); }

}