/* _content/SeeLOS/Pages/HeatMap.razor.rz.scp.css */
/* ---- toolbar (title + range switch) ---- */
.heat-toolbar[b-0l6eqzuecm] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.heat-range[b-0l6eqzuecm] {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent);
}

.heat-range__btn[b-0l6eqzuecm] {
    border: 0;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.heat-range__btn:hover[b-0l6eqzuecm] {
    color: var(--mud-palette-text-primary);
}

.heat-range__btn.active[b-0l6eqzuecm] {
    background: #ef4444;
    color: #fff;
}

/* ---- the grid: col 1 = month gutter, cols 2-8 = Mon..Sun ---- */
.heatgrid[b-0l6eqzuecm] {
    display: grid;
    grid-template-columns: 40px repeat(7, 26px);
    grid-auto-rows: 26px;
    gap: 5px;
    margin-bottom: 24px;
    padding-bottom: 4px;
    justify-content: start;
}

.weekday-head[b-0l6eqzuecm],
.corner-head[b-0l6eqzuecm] {
    grid-row: 1;
    font-size: 12px;
    line-height: 26px;
    text-align: center;
    color: var(--mud-palette-text-secondary);
    opacity: 0.7;
}

.month-head[b-0l6eqzuecm] {
    font-size: 11px;
    line-height: 26px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--mud-palette-text-secondary);
    opacity: 0.75;
}

.heatcell[b-0l6eqzuecm] {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s ease, box-shadow .12s ease;
}

.heatcell:hover[b-0l6eqzuecm] {
    transform: scale(1.18);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
    z-index: 1;
}

/* Task count printed inside the cell — only legible on the darker steps, so it
   fades in with the heat level. */
.heatcell__n[b-0l6eqzuecm] {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, .92);
    opacity: 0;
    transition: opacity .12s ease;
}

.medium .heatcell__n[b-0l6eqzuecm],
.hot .heatcell__n[b-0l6eqzuecm] {
    opacity: .85;
}

.heatcell:hover .heatcell__n[b-0l6eqzuecm] {
    opacity: 1;
}

.heatcell.today[b-0l6eqzuecm] {
    outline: 2px solid var(--mud-palette-text-primary);
    outline-offset: 1px;
}

.legend-cell[b-0l6eqzuecm] {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
}

/* Heat ramp mixed against the theme surface so it reads correctly in both
   light and dark mode (dark → deep reds, light → soft pinks, GitHub-style).
   Solid fallbacks first for browsers without color-mix support. */
.cold[b-0l6eqzuecm] {
    background-color: #ececec;
    background-color: color-mix(in srgb, var(--mud-palette-surface) 100%, transparent);
    border: 1px solid var(--mud-palette-lines-default);
}

.low[b-0l6eqzuecm] {
    background-color: #f4a3a3;
    background-color: color-mix(in srgb, #ef4444 35%, var(--mud-palette-surface));
}

.medium[b-0l6eqzuecm] {
    background-color: #e05555;
    background-color: color-mix(in srgb, #ef4444 65%, var(--mud-palette-surface));
}

.hot[b-0l6eqzuecm] {
    background-color: #ef4444;
}

/* ---- weekday rhythm bars ---- */
.wk-bars[b-0l6eqzuecm] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wk-row[b-0l6eqzuecm] {
    display: grid;
    grid-template-columns: 34px 1fr 32px;
    align-items: center;
    gap: 10px;
}

.wk-name[b-0l6eqzuecm] {
    font-size: .78rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}

.wk-track[b-0l6eqzuecm] {
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 8%, transparent);
    overflow: hidden;
}

.wk-fill[b-0l6eqzuecm] {
    height: 100%;
    border-radius: 999px;
    background: color-mix(in srgb, #ef4444 55%, transparent);
    transition: width .3s ease;
}

.wk-fill.best[b-0l6eqzuecm] {
    background: #ef4444;
}

.wk-val[b-0l6eqzuecm] {
    font-size: .78rem;
    font-weight: 700;
    text-align: right;
    color: var(--mud-palette-text-primary);
}

/* ---- monthly volume bars ---- */
.mo-bars[b-0l6eqzuecm] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
}

.mo-col[b-0l6eqzuecm] {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    gap: 6px;
    min-width: 0;
}

.mo-barwrap[b-0l6eqzuecm] {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
}

.mo-bar[b-0l6eqzuecm] {
    width: 100%;
    max-width: 34px;
    min-height: 3px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #ef4444, color-mix(in srgb, #ef4444 35%, transparent));
    transition: height .3s ease, filter .12s ease;
}

.mo-col:hover .mo-bar[b-0l6eqzuecm] {
    filter: brightness(1.25);
}

.mo-label[b-0l6eqzuecm] {
    font-size: .7rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

/* MudText renders inside a child component, so its element doesn't carry this
   page's scope attribute — ::deep lets the rule reach it. */
[b-0l6eqzuecm] .year-label {
    font-weight: 600;
    margin-bottom: 4px;
}
