/* Daybook dashboard extras: colour per page, edit-layout mode, drag to rearrange. Loaded after dash.css. */

/* ---------- colour per page (animated) ---------- */
@property --fx-a { syntax: '<color>'; inherits: true; initial-value: #f5b841; }
@property --fx-b { syntax: '<color>'; inherits: true; initial-value: #f08a5d; }
@property --fx-c { syntax: '<color>'; inherits: true; initial-value: #e0607e; }
@property --fx-d { syntax: '<color>'; inherits: true; initial-value: #b8456f; }
@property --fx-base { syntax: '<color>'; inherits: true; initial-value: #24101b; }
body { transition: --fx-a 1.2s ease, --fx-b 1.2s ease, --fx-c 1.2s ease, --fx-d 1.2s ease, --fx-base 1.2s ease; background: var(--fx-base); }
.bg { background:
  radial-gradient(55% 48% at 14% 16%, color-mix(in srgb, var(--fx-a) 34%, transparent) 0%, transparent 70%),
  radial-gradient(48% 42% at 86% 12%, color-mix(in srgb, var(--fx-b) 34%, transparent) 0%, transparent 70%),
  radial-gradient(55% 45% at 80% 90%, color-mix(in srgb, var(--fx-c) 32%, transparent) 0%, transparent 70%),
  radial-gradient(50% 42% at 14% 92%, color-mix(in srgb, var(--fx-d) 34%, transparent) 0%, transparent 70%),
  linear-gradient(160deg, color-mix(in srgb, var(--fx-base) 80%, #6b1d3a), var(--fx-base) 58%, color-mix(in srgb, var(--fx-base) 88%, var(--fx-d))) !important; }
.bg::before { background: radial-gradient(circle, color-mix(in srgb, var(--fx-a) 80%, transparent), transparent 65%) !important; }
.bg::after { background: radial-gradient(circle, color-mix(in srgb, var(--fx-b) 90%, transparent), transparent 65%) !important; }

body[data-fx="home-training"], body[data-fx="courses"]   { --fx-a: #ffd27a; --fx-b: #e0607e; --fx-c: #f08a5d; --fx-d: #9b3a62; --fx-base: #26101d; }
body[data-fx="home-readiness"], body[data-fx="people"]   { --fx-a: #f5b841; --fx-b: #ffcf6e; --fx-c: #c4553a; --fx-d: #e0607e; --fx-base: #2a1016; }
body[data-fx="home-practice"], body[data-fx="practice"]  { --fx-a: #e0607e; --fx-b: #f5b841; --fx-c: #ffb38a; --fx-d: #8e2a52; --fx-base: #251021; }
body[data-fx="tracks"]   { --fx-a: #ffd27a; --fx-b: #f08a5d; --fx-c: #e0607e; --fx-d: #c4553a; --fx-base: #27111a; }
body[data-fx="pipeline"] { --fx-a: #f08a5d; --fx-b: #f5b841; --fx-c: #b8456f; --fx-d: #e0607e; --fx-base: #22101c; }
body[data-fx="inbox"]    { --fx-a: #ffe3a3; --fx-b: #e0607e; --fx-c: #f5b841; --fx-d: #9b3a62; --fx-base: #231019; }
body[data-fx="calendar"] { --fx-a: #ffb38a; --fx-b: #e0607e; --fx-c: #f5b841; --fx-d: #b8456f; --fx-base: #26111c; }
body[data-fx="reports"]  { --fx-a: #d9a441; --fx-b: #b8456f; --fx-c: #f08a5d; --fx-d: #7a2a44; --fx-base: #1c0c15; }
body[data-fx="billing"]  { --fx-a: #f5b841; --fx-b: #ffd27a; --fx-c: #f08a5d; --fx-d: #c0392b; --fx-base: #29111b; }

/* ---------- different arrangement per top tab ---------- */
.ov.ov--training  { grid-template-columns: minmax(0, 1.55fr) minmax(230px, 1fr) minmax(0, 1.3fr); }
.ov.ov--readiness { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.55fr) minmax(230px, 1fr); }
.ov.ov--practice  { grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr) minmax(0, 1.45fr); }
@media (max-width: 1180px) { .ov.ov--training, .ov.ov--readiness, .ov.ov--practice { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .ov.ov--training, .ov.ov--readiness, .ov.ov--practice { grid-template-columns: 1fr; } }

/* ---------- tool buttons ---------- */
.fx-tool { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s; }
.fx-tool:hover { background: var(--glass-2); }
.fx-tool:active { transform: scale(.94); }
.fx-tool[aria-pressed="true"] { background: #fff; color: #1f1d1c; border-color: #fff; }
.fx-tool .fx-off { display: none; }
.fx-tool[data-muted="true"] .fx-on { display: none; }
.fx-tool[data-muted="true"] .fx-off { display: block; }

/* ---------- edit mode ---------- */
@keyframes fxWiggle { 0% { rotate: -.55deg; } 50% { rotate: .55deg; } 100% { rotate: -.55deg; } }
@keyframes fxWiggleBig { 0% { rotate: -4deg; } 50% { rotate: 4deg; } 100% { rotate: -4deg; } }
.fx-edit [data-fx-item] { animation: fxWiggle .32s ease-in-out infinite; animation-delay: var(--fx-d, 0s); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: 1.5px dashed rgb(255 255 255 / .28); outline-offset: 3px; }
.fx-edit .side__nav [data-fx-item] { animation-name: fxWiggleBig; outline-offset: 1px; border-radius: 14px; }
.fx-edit [data-fx-item] * { pointer-events: none; }
.fx-edit [data-fx-item] [data-fx-item] { pointer-events: auto; }
.fx-edit [data-fx-item]:focus-visible { outline: 2px solid var(--accent); }
.fx-edit [data-fx-item].fx-drag { animation: none; rotate: 0deg; scale: 1.04; z-index: 60; cursor: grabbing; outline: 2px solid rgb(255 255 255 / .7); box-shadow: 0 30px 70px rgb(0 0 0 / .45); transition: none !important; position: relative; }
.fx-edit [data-fx-item].fx-settle { transition: transform .32s cubic-bezier(.2,.8,.2,1), scale .32s !important; }
.fx-edit .side__btn::after { display: none; }

.fx-bar { position: fixed; z-index: 140; left: 50%; bottom: 22px; translate: -50% 140%; display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 99px; background: rgb(52 22 38 / .92); border: 1px solid var(--line-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 20px 50px rgb(0 0 0 / .4); font-size: 13px; color: var(--ink); transition: translate .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s; white-space: nowrap; visibility: hidden; }
.fx-edit .fx-bar { translate: -50% 0; visibility: visible; transition: translate .45s cubic-bezier(.2,.8,.2,1); }
.fx-bar span { color: var(--ink-2); margin-right: 4px; }
.fx-bar button { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.fx-bar button:hover { background: var(--glass-2); }
.fx-bar .fx-done { background: #fff; color: #1f1d1c; border-color: #fff; font-weight: 600; }
.fx-hint { position: fixed; z-index: 141; left: 50%; top: 18px; translate: -50% -160%; padding: 8px 14px; border-radius: 99px; background: rgb(255 255 255 / .92); color: #1f1d1c; font-size: 12.5px; font-weight: 500; box-shadow: 0 12px 30px rgb(0 0 0 / .3); transition: translate .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s; pointer-events: none; visibility: hidden; }
.fx-hint.is-on { translate: -50% 0; visibility: visible; transition: translate .45s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 760px) {
  .fx-bar { bottom: 84px; padding-left: 12px; }
  .fx-bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-edit [data-fx-item] { animation: none; }
  body { transition: none; }
}

/* ---------- v10: a livelier, bigger dashboard ---------- */
/* stronger, more saturated light so each page feels like its own room */
.bg { background:
  radial-gradient(55% 50% at 12% 14%, color-mix(in srgb, var(--fx-a) 40%, transparent) 0%, transparent 70%),
  radial-gradient(50% 45% at 88% 10%, color-mix(in srgb, var(--fx-b) 36%, transparent) 0%, transparent 70%),
  radial-gradient(55% 48% at 82% 92%, color-mix(in srgb, var(--fx-c) 32%, transparent) 0%, transparent 70%),
  radial-gradient(50% 45% at 12% 94%, color-mix(in srgb, var(--fx-d) 30%, transparent) 0%, transparent 70%),
  linear-gradient(155deg, color-mix(in srgb, var(--fx-base) 62%, #9b2f55), var(--fx-base) 55%, color-mix(in srgb, var(--fx-base) 70%, var(--fx-b))) !important; }
.bg::before, .bg::after { opacity: .3 !important; animation-duration: 60s !important; }

/* a different light for every page: warm hues with one cooler friend each */
body[data-fx="home"]                                   { --fx-a: #ffb84d; --fx-b: #ff6f91; --fx-c: #ffd27a; --fx-d: #c04eb0; --fx-base: #2a0f22; }
body[data-fx="home-training"], body[data-fx="courses"]  { --fx-a: #ffcf5c; --fx-b: #2ec4b6; --fx-c: #ff8a5c; --fx-d: #6a4cd6; --fx-base: #1f1029; }
body[data-fx="home-readiness"], body[data-fx="people"]  { --fx-a: #9be15d; --fx-b: #ffcf5c; --fx-c: #ff7e67; --fx-d: #2bb3a3; --fx-base: #241322; }
body[data-fx="home-practice"], body[data-fx="practice"] { --fx-a: #ff6f91; --fx-b: #b47cff; --fx-c: #ffc36b; --fx-d: #ff8a5c; --fx-base: #26102a; }
body[data-fx="tracks"]   { --fx-a: #ffd166; --fx-b: #ef476f; --fx-c: #06d6a0; --fx-d: #f78c6b; --fx-base: #24101f; }
body[data-fx="pipeline"] { --fx-a: #c77dff; --fx-b: #ff9e64; --fx-c: #ff5d8f; --fx-d: #7bdff2; --fx-base: #1f0f2a; }
body[data-fx="inbox"]    { --fx-a: #7bdff2; --fx-b: #ffcf5c; --fx-c: #ff8fab; --fx-d: #b2f7ef; --fx-base: #1d1226; }
body[data-fx="calendar"] { --fx-a: #ff8fab; --fx-b: #ffd166; --fx-c: #9b5de5; --fx-d: #f15bb5; --fx-base: #27101f; }
body[data-fx="reports"]  { --fx-a: #06d6a0; --fx-b: #ffd166; --fx-c: #ef476f; --fx-d: #118ab2; --fx-base: #1c1224; }
body[data-fx="billing"]  { --fx-a: #ffd166; --fx-b: #ff6f91; --fx-c: #ffb38a; --fx-d: #9b5de5; --fx-base: #29101d; }

/* glassier, slightly brighter cards that lift a little */
.card { background: linear-gradient(160deg, rgb(255 255 255 / .11), rgb(255 255 255 / .06)), rgb(28 8 20 / .38) !important; border-color: rgb(255 228 196 / .14) !important; transition: background .25s, opacity .3s, transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(0 0 0 / .22), 0 1px 0 rgb(255 255 255 / .1) inset; }
.fx-edit .card:hover { transform: none; }

/* colour instead of grey */
.bar i { background: linear-gradient(180deg, rgb(255 207 92 / .75), rgb(255 138 92 / .2)) !important; }
.bar:hover i { background: linear-gradient(180deg, rgb(255 225 140 / .9), rgb(255 138 92 / .3)) !important; }
.bar.is-on i { background: linear-gradient(180deg, #ff9e7a, #ef476f) !important; box-shadow: 0 10px 30px rgb(239 71 111 / .35); }
.minibars i { background: linear-gradient(180deg, rgb(255 207 92 / .8), rgb(255 111 145 / .2)) !important; }
.minibars i:last-child { background: linear-gradient(180deg, #ff9e7a, #ef476f) !important; }
.lines div:nth-child(1) i::after { background: #ffcf5c; } .lines div:nth-child(2) i::after { background: #ff8a5c; }
.lines div:nth-child(3) i::after { background: #c77dff; } .lines div:nth-child(4) i::after { background: #06d6a0; }
.ico { background: rgb(255 207 92 / .18); color: #ffe1a0; }
.kpis .card:nth-child(2) .ico, .quad > :nth-child(2) .ico { background: rgb(255 111 145 / .2); color: #ffb3c6; }
.kpis .card:nth-child(3) .ico, .quad > :nth-child(3) .ico { background: rgb(6 214 160 / .18); color: #8ff0d0; }
.kpis .card:nth-child(4) .ico, .quad > :nth-child(4) .ico { background: rgb(123 223 242 / .18); color: #b8f0fa; }
.kpis .card:nth-child(2)::after { background: radial-gradient(circle, rgb(255 111 145 / .3), transparent 65%) !important; }
.kpis .card:nth-child(3)::after { background: radial-gradient(circle, rgb(6 214 160 / .26), transparent 65%) !important; }
.kpis .card:nth-child(4)::after { background: radial-gradient(circle, rgb(123 223 242 / .26), transparent 65%) !important; }

/* bigger everything (desktop and laptop screens) */
@media (min-width: 761px) {
  body { font-size: 15px; }
  .app { padding: clamp(8px, 1.2vw, 18px); }
  .shell { grid-template-columns: 72px 1fr; gap: 16px; padding: 16px; }
  .side__btn { width: 50px; height: 50px; border-radius: 16px; }
  .side__btn svg { width: 21px; height: 21px; }
  .card { padding: 18px 20px; border-radius: 22px; }
  .ov .card { padding: 17px 19px; }
  .card h3 { font-size: 16.5px; }
  .card .sub, .k { font-size: 13px; }
  .big { font-size: 34px; }
  .kpi .big { font-size: 30px; }
  .ico { width: 36px; height: 36px; border-radius: 12px; }
  .tabs button { font-size: 18.5px; }
  .top__title h1 { font-size: 25px; }
  .round, .avatar, .fx-tool { width: 42px; height: 42px; }
  .chip { font-size: 12px; padding: 3px 9px; }
  .btn { height: 40px; font-size: 14px; padding: 0 16px; }
  .ov, .kpis, .quad, .pair, .ov__left, .ov__mid, .ov__right { gap: 14px; }
  .bars { min-height: 220px; }
  .ws-grid { gap: 16px; }
  .ws-grid > .card { padding: 22px; }
  .ws-hero h2 { font-size: clamp(28px, 3vw, 40px); }
}


/* ---------- v11: calm inside: easier to read for long days ---------- */
:root { --ink-2: rgb(255 248 236 / .82); --ink-3: rgb(255 248 236 / .62); --accent: #F5B841; --accent-2: #FFD27A; }
.shell { -webkit-backdrop-filter: blur(14px) saturate(1.15) !important; backdrop-filter: blur(14px) saturate(1.15) !important; background: rgb(255 255 255 / .05) !important; }
body { transition-duration: 2s !important; }
.tg[aria-checked="true"] { background: #F5B841 !important; }

/* "today" focus strip: what needs you right now */
.fx-today { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px 12px 18px; border-radius: 20px;
  background: linear-gradient(100deg, rgb(245 184 65 / .2), rgb(255 111 145 / .1) 60%, rgb(255 255 255 / .05)); border: 1px solid rgb(245 184 65 / .3); }
.fx-today__t { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-right: auto; }
.fx-today__t i { width: 10px; height: 10px; border-radius: 50%; background: #F5B841; box-shadow: 0 0 0 5px rgb(245 184 65 / .22); animation: fxPulse 2.4s ease-in-out infinite; }
@keyframes fxPulse { 50% { box-shadow: 0 0 0 9px rgb(245 184 65 / .05); } }
.fx-today__chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .07); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, transform .15s; }
.fx-today__chip:hover { background: rgb(255 255 255 / .14); }
.fx-today__chip b { font-size: 16px; font-weight: 700; color: #FFD27A; font-variant-numeric: tabular-nums; }
.fx-today__chip.is-hot b { color: #ffb3c6; }
.fx-flash { animation: fxFlash 1.4s ease 1; }
@keyframes fxFlash { 0%, 100% { box-shadow: none; } 20%, 60% { box-shadow: 0 0 0 3px #F5B841, 0 0 40px rgb(245 184 65 / .4); } }
@media (max-width: 760px) { .fx-today__t { width: 100%; } }
