.feather-16{
    width: 16px;
    height: 16px;
    margin-top:-3px;
}

.feather-24{
    width: 24px;
    height: 24px;
}

.feather-32{
    width: 32px;
    height: 32px;
}

.pause {
  color: #999;
  font-style: italic;
}

.hesitation {
  background: #fff3cd;
  border-radius: 4px;
  padding: 2px 4px;
}

#statusCircle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: gray; /* idle */
    margin: 10px 0;
    border-color: black;
    border-style: dashed;
}

canvas {
    margin-bottom: 20px;
    width:100%!important;
}

.chart-wrapper {
  height: 200px;
  flex: 0 0 200px;   /* 👈 prevents flex growth loop */
    margin-bottom: 20px;
}

.chart-wrapper-large {
  height: 400px;
  flex: 0 0 200px;   /* 👈 prevents flex growth loop */
    margin-bottom: 20px;
    width: 100%;
}

.dropzone {
    background: #f8f9fa;
    cursor: pointer;
}

.dropzone:hover {
    background: #e9ecef;
}

.vh-75{
    height: 75vh !important;
}

.min-vh-75 {
    min-height: 75vh !important;
}

body {
    padding-top: 48px; /* slightly bigger than navbar height */
    background-color: #f5f7fb;
}


.overflowhidden{
    overflow: hidden;
}
.narrow-container {
    max-width: 1300px;
}

.exercise-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.speech-stat-row .col {
    padding: 0.5rem 0.75rem;
}

.progress {
    background-color: #edf0f3;
    border-radius: 999px;
}

.progress-bar {
    border-radius: 999px;
}
.metric-tile {
    border: 1px solid #e5e7eb;
    background: #fff;
}

.metric-tile.bad {
    background: #fff5f5;
    border-color: #f1aeb5;
}

.metric-tile.ok {
    background: #fff9e6;
    border-color: #ffe69c;
}

.metric-tile.good {
    background: #eef8ff;
    border-color: #9eeaf9;
}

.metric-tile.excellent {
    background: #eefaf3;
    border-color: #a3cfbb;
}

.metric-good {
    background-color: #84cc16 !important;
}

.metric-good-badge {
    background-color: #84cc16 !important;
    color: white !important;
}



.teleprompter-text {
    font-size: 3rem;
    line-height: 1.6;

    white-space: pre-wrap;

    transform: translateY(100%);
}

.teleprompter-box {
    height: calc(80vh - 160px);
    overflow: hidden;
    background: #050505;
    color: white;
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
}
body.teleprompter-active {
    background-color: #000;
}
body.teleprompter-active {
    background-color: #111827 !important;
    transition: background-color 0.7s ease;
}

.teleprompter-text {
    font-size: 4rem;
    line-height: 1.6;
    white-space: pre-wrap;
    will-change: transform;
}

.profile-picture-upload {
    cursor: pointer;
}

.profile-picture-preview {
    width: 140px;
    height: 140px;
    object-fit: cover;
    transition: 0.2s ease;
}

.profile-picture-overlay {
    position: absolute;
    inset: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: 0.2s ease;
    font-weight: 600;
}

.profile-picture-upload:hover .profile-picture-overlay {
    opacity: 1;
}

.activity-heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.heatmap-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    background: #ebedf0;
}

.level-0 {
    background: #ebedf0;
}

.level-1 {
    background: #c6e48b;
}

.level-2 {
    background: #7bc96f;
}

.level-3 {
    background: #239a3b;
}

.level-4 {
    background: #196127;
}

.heatmap-grid {
    display: flex;
    gap: 4px;
}

.heatmap-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heatmap-cell {
    width: 20px;
    height: 15px;
    border-radius: 3px;
}

.heatmap-months {
    display: flex;
    gap: 0px;
    margin-left: 33px;
    margin-bottom: 6px;
}

.heatmap-month-label {
    font-size: 12px;
    color: #6c757d;
    min-width: 24px;
}

.heatmap-weekdays {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #6c757d;
}

.heatmap-day-label {
    width: 20px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

.heatmap-month-label {
    width: 36px;
    font-size: 12px;
    color: #6c757d;
}

.heatmap-cell {
    width: 21px;
    height: 20px;
    border-radius: 3px;
}

.min-width-0 {
    min-width: 0;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 90px;
}

.range-position-widget {
    width: 100%;
}

.range-position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.range-position-label {
    font-weight: 600;
}

.range-position-score {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.range-position-track {
    position: relative;
    height: 14px;
    border-radius: 999px;

    /*
        Pale → yellow → green ideal range
        → yellow → pale
    */
    background: linear-gradient(
        to right,

        #f2f3f4 0%,
        #f6d96b calc(var(--ideal-start) * 0.7),

        #7aa874 var(--ideal-start),
        #4f7f52 calc(
            var(--ideal-start) +
            ((var(--ideal-end) - var(--ideal-start)) / 2)
        ),
        #7aa874 var(--ideal-end),

        #f6d96b calc(
            var(--ideal-end) +
            ((100% - var(--ideal-end)) * 0.3)
        ),
        #f2f3f4 100%
    );

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.08);
}

.range-position-marker {
    position: absolute;
    left: var(--marker-position);
    top: 50%;

    width: 18px;
    height: 18px;

    background: var(--bs-body-color);
    border: 3px solid var(--bs-body-bg);
    border-radius: 50%;

    transform: translate(-50%, -50%);

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.25);
}

.range-position-markers::after {
    content: "";
    position: absolute;

    left: 50%;
    top: calc(100% + 5px);

    width: 0;
    height: 0;

    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid var(--bs-body-color);

    transform: translateX(-50%) rotate(180deg);
}

.range-position-scale {
    display: flex;
    justify-content: space-between;

    margin-top: 0.55rem;

    color: var(--bs-secondary-color);
    font-size: 0.72rem;
}

.range-position-track {
    position: relative;
    height: 14px;
    border-radius: 999px;

    background: linear-gradient(
        to right,

        /* Far below ideal */
        #f5f3e8 0%,

        /* Approaching ideal */
        #f4d86a calc(var(--ideal-start) - 8%),

        /* Start of ideal range */
        #87ad79 var(--ideal-start),

        /* Darkest point in the middle of the ideal range */
        #3f7047 calc(
            (
                var(--ideal-start) +
                var(--ideal-end)
            ) / 2
        ),

        /* End of ideal range */
        #87ad79 var(--ideal-end),

        /* Moving above ideal */
        #f4d86a calc(var(--ideal-end) + 8%),

        /* Far above ideal */
        #f5f3e8 100%
    );

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.08);
}

.range-position-widget {
    width: 100%;
}

.range-position-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.range-position-label {
    font-weight: 600;
}

.range-position-score {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.range-position-chart {
    position: relative;

    /*
        Extra space is needed underneath the bar for:
        - the marker pointer
        - dotted ideal-zone boundaries
        - labels
    */
    padding-bottom: 2.25rem;
}

.range-position-track {
    position: relative;
    height: 14px;
    overflow: visible;
    border-radius: 999px;

    background: linear-gradient(
        to right,

        /* Far below ideal */
        #f5f3e8 0%,

        /* Approaching ideal */
        #f4dc72 calc(var(--ideal-start) - 8%),

        /* Ideal zone */
        #6f9c68 var(--ideal-start),
        #3f7047 calc(
            var(--ideal-start) +
            ((var(--ideal-end) - var(--ideal-start)) / 2)
        ),
        #6f9c68 var(--ideal-end),

        /* Moving above ideal */
        #f4dc72 calc(var(--ideal-end) + 8%),

        /* Far above ideal */
        #f5f3e8 100%
    );

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.08);
}
.min-vh-90 {
    min-height: 90vh !important;
}
.min-vh-85 {
    min-height: 85vh !important;
}
.min-vh-80 {
    min-height: 80vh !important;
}
/* Dotted boundaries under the beginning and end of the ideal zone */
.ideal-boundary {
    position: absolute;
    z-index: 1;
    height: 27px;

    border-left: 1px dashed rgba(80, 80, 80, 0.6);
}

.ideal-boundary-start {
    left: var(--ideal-start);
}

.ideal-boundary-end {
    left: var(--ideal-end);
}

.range-position-scale {
    position: absolute;

    left: 0;
    right: 0;
    height: 1.25rem;

    color: var(--bs-secondary-color);
    font-size: 0.75rem;
}

.range-position-scale span {
    position: absolute;
    white-space: nowrap;
}

.range-scale-low {
    left: 0;
}

.range-scale-high {
    right: 0;
}

/*
    Center "Ideal" between --ideal-start and --ideal-end.
*/
.range-scale-ideal {
    left: calc(
        var(--ideal-start) +
        ((var(--ideal-end) - var(--ideal-start)) / 2)
    );

    transform: translateX(-50%);
}

.range-position-track {
    position: relative;
    height: 14px;
    overflow: visible;
}

.range-label {
    position: absolute;
    top: 26px;               /* directly under the bar */
    font-size: .75rem;
    color: #6c757d;
    white-space: nowrap;
}

.range-label-low {
    left: 0;
    transform: translateX(-10%);
}

.range-label-high {
    left: 100%;
    transform: translateX(-90%);
}

.range-label-ideal {
    left: calc(
        var(--ideal-start) +
        ((var(--ideal-end) - var(--ideal-start)) / 2)
    );
    transform: translateX(-50%);
    font-weight: 600;
}

.ideal-boundary {
    position: absolute;
    height: 22px;
    border-left: 1px dashed rgba(80,80,80,.5);
}

.ideal-boundary-start {
    left: var(--ideal-start);
}

.ideal-boundary-end {
    left: var(--ideal-end);
}

.range-position-track {
    position: relative;
    height: 24px;
    border-radius: 999px;
    overflow: visible;

    background: linear-gradient(
        to right,
        #f5f3e8 0%,
        #f4dc72 calc(var(--ideal-start) - 8%),
        #6f9c68 var(--ideal-start),
        #3f7047 calc(
            var(--ideal-start) +
            ((var(--ideal-end) - var(--ideal-start)) / 2)
        ),
        #6f9c68 var(--ideal-end),
        #f4dc72 calc(var(--ideal-end) + 8%),
        #f5f3e8 100%
    );

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.08);
}

.range-overlay-label {
    position: absolute;
    z-index: 2;
    top: 50%;

    transform: translateY(-50%);

    font-size: 0.7rem;
    line-height: 1;
    color: rgba(30, 30, 30, 0.8);
    white-space: nowrap;
    pointer-events: none;
}

.range-overlay-low {
    left: 10px;
}

.range-overlay-high {
    right: 10px;
}

.range-overlay-ideal {
    left: calc(
        var(--ideal-start) +
        ((var(--ideal-end) - var(--ideal-start)) / 2)
    );

    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.section-text {
    overflow-y: hidden;
    resize: none;
}

.section-text-display {
    white-space: pre-line;
}

.table-topic-content {
    max-width: 1050px;
}

.table-topic-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.table-topic-sidebar .nav-link {
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
}

.table-topic-sidebar .nav-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
}

.table-topic-question {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
    font-weight: 600;
}

.recording-time {
    font-size: 2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 145px;
}

#statusCircle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #adb5bd;
}

#statusCircle-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #adb5bd;
}

.transcript-content {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: left;
}

.chart-wrapper-large {
    width: 100%;
    min-height: 350px;
}