/* Versie 2 van de vormgeving: "Aurora". Diepe kleuren met een zacht bewegende gloed, glazen vlakken,
   ronde vormen en verende beweging. Staat aan met data-stijl="aurora" op <html> (Instellingen > Vormgeving).
   Alleen kleuren en vormen: de schermen en de werking zijn dezelfde als in de scheurkalender. */

:root[data-stijl="aurora"] {
  --papier: #f2edff;
  --vel: rgb(255 255 255 / .7);
  --vel-2: rgb(255 255 255 / .95);
  --vast: #fbf9ff;          /* ondoorzichtig vlak voor formulieren */
  --inkt: #22124a;
  --grijs: #6b6090;
  --lijn: rgb(70 40 140 / .14);
  --rood: #ef2f88;          /* het accent is hier roze */
  --rood-diep: #c71a6e;
  --op-rood: #fff;
  --werk: #2b7cf5;
  --prive: #0ea677;
  --stift: rgb(239 47 136 / .14);
  --schaduw: 50 20 110;
  --gloed: linear-gradient(135deg, #ff5a9e 0%, #9b5cff 100%);
  --vlek-1: rgb(255 120 180 / .55);
  --vlek-2: rgb(140 110 255 / .5);
  --vlek-3: rgb(90 220 220 / .45);
  --r-1: 14px; --r-2: 14px; --r-3: 26px;
}
:root[data-stijl="aurora"][data-thema="donker"] {
  --papier: #140a2e;
  --vel: rgb(255 255 255 / .075);
  --vel-2: rgb(255 255 255 / .14);
  --vast: #24164d;
  --inkt: #ffffff;
  --grijs: rgb(255 255 255 / .64);
  --lijn: rgb(255 255 255 / .14);
  --rood: #ff5a9e;
  --rood-diep: #ff8fbd;
  --werk: #62c9ff;
  --prive: #5cf0b4;
  --stift: rgb(255 90 158 / .26);
  --schaduw: 6 2 24;
  --vlek-1: rgb(255 60 150 / .42);
  --vlek-2: rgb(110 70 255 / .5);
  --vlek-3: rgb(30 200 210 / .3);
}

/* ---------- De gloed op de achtergrond ---------- */
[data-stijl="aurora"] body::before, [data-stijl="aurora"] body::after {
  content: ""; position: fixed; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none;
  width: 70vmax; height: 70vmax; animation: drijf 26s ease-in-out infinite alternate;
}
[data-stijl="aurora"] body::before { left: -25vmax; top: -30vmax; background: radial-gradient(circle, var(--vlek-1), transparent 62%), radial-gradient(circle at 80% 70%, var(--vlek-2), transparent 55%); }
[data-stijl="aurora"] body::after { right: -30vmax; bottom: -35vmax; background: radial-gradient(circle, var(--vlek-2), transparent 60%), radial-gradient(circle at 20% 30%, var(--vlek-3), transparent 55%); animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes drijf { to { transform: translate(9vmax, 7vmax) scale(1.15) rotate(25deg); } }
[data-stijl="aurora"] #app { z-index: 1; }

[data-stijl="aurora"] h1, [data-stijl="aurora"] h2, [data-stijl="aurora"] h3 { font-stretch: 100%; letter-spacing: -.025em; }

/* ---------- Glazen vlakken ---------- */
[data-stijl="aurora"] :is(.blaadje, .project, .notitie, .welkom, .veld, .rond, .gebied, .keuze button, .kies, .schrijfveld, .lees, .gereedschap button, .etiketten button, .code) {
  border: 1px solid var(--lijn); background: var(--vel);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 12px 32px rgb(var(--schaduw) / .14);
}
[data-stijl="aurora"] :is(.veld, .kies, .keuze button, .gereedschap button, .etiketten button, .rond) { box-shadow: 0 1px 0 rgb(255 255 255 / .16) inset; }
[data-stijl="aurora"] .veld:focus { border-color: var(--rood); box-shadow: 0 0 0 4px rgb(239 47 136 / .18); }
[data-stijl="aurora"] select option { color: #22124a; }
[data-stijl="aurora"] :is(.project, .notitie, .blaadje, .welkom, .schrijfveld, .lees) { border-radius: var(--r-3); }
[data-stijl="aurora"] .project::before { width: 5px; top: 18px; bottom: 18px; left: 9px; border-radius: 9px; }
[data-stijl="aurora"] .project { padding-left: 26px; }
[data-stijl="aurora"] :is(.project, .notitie):hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 22px 44px rgb(var(--schaduw) / .26); border-color: var(--lijn); }
[data-stijl="aurora"] .notitie.is-vast::after { background: var(--gloed); right: 20px; }
[data-stijl="aurora"] .welkom { box-shadow: 0 24px 60px rgb(var(--schaduw) / .25); }

/* ---------- Alles wat "actief" of een hoofdknop is, krijgt de kleurverloop ---------- */
[data-stijl="aurora"] :is(.knop, .zij__knop.is-actief, .gebied button.is-actief, .keuze button.is-actief, .week button.is-gekozen b, .zij__knop--nieuw) {
  background: var(--gloed); color: #fff; border-color: transparent;
}
[data-stijl="aurora"] .gereedschap .knop { background: var(--gloed); color: #fff; border-color: transparent; }
[data-stijl="aurora"] .knop { border-radius: 999px; box-shadow: 0 10px 24px rgb(239 47 136 / .32); }
[data-stijl="aurora"] .knop:hover { filter: brightness(1.08); }
[data-stijl="aurora"] :is(.knop--lijn, .knop--stil) { background: var(--vel); color: var(--inkt); border: 1px solid var(--lijn); box-shadow: none; }
[data-stijl="aurora"] .knop--stil { background: transparent; border-color: transparent; color: var(--grijs); }
[data-stijl="aurora"] .gebied { border-radius: 999px; padding: 3px; }
[data-stijl="aurora"] .gebied button { border: 0 !important; border-radius: 999px; padding: 6px 12px; }
[data-stijl="aurora"] .zij__knop { border-radius: 14px; }
[data-stijl="aurora"] .merk img { border-radius: 10px; }
[data-stijl="aurora"] .zij__knop--nieuw { border-radius: 999px; box-shadow: 0 10px 24px rgb(239 47 136 / .35); }
[data-stijl="aurora"] .zij__knop.is-actief kbd { color: #fff; border-color: rgb(255 255 255 / .5); }

/* ---------- Navigatie ---------- */
[data-stijl="aurora"] #zij { border-right: 1px solid var(--lijn); background: var(--vel); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
[data-stijl="aurora"] #tabs {
  left: 12px; right: 12px; bottom: calc(10px + var(--onder)); height: var(--tabhoogte); padding-bottom: 0;
  border: 1px solid var(--lijn); border-radius: 26px; background: var(--vel-2);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); box-shadow: 0 18px 40px rgb(var(--schaduw) / .3);
}
[data-stijl="aurora"][data-thema="donker"] #tabs { background: rgb(40 24 84 / .78); }
[data-stijl="aurora"] .tab.is-actief { color: var(--rood); }
[data-stijl="aurora"] .tab.is-actief::before { top: auto; bottom: 5px; left: 50%; right: auto; width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%); }
[data-stijl="aurora"] .plus { background: var(--gloed); box-shadow: 0 10px 26px rgb(239 47 136 / .5); position: relative; }
/* De plus "ademt": een halo die zacht uitdijt. */
[data-stijl="aurora"] .plus::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gloed); z-index: -1; animation: adem 2.8s ease-out infinite; }
@keyframes adem { from { transform: scale(1); opacity: .55; } to { transform: scale(1.75); opacity: 0; } }
[data-stijl="aurora"] #melding { background: var(--vast); color: var(--inkt); border: 1px solid var(--lijn); border-radius: 999px; box-shadow: 0 16px 40px rgb(var(--schaduw) / .35); bottom: calc(var(--tabhoogte) + var(--onder) + 34px); }
[data-stijl="aurora"] #melding button { color: var(--rood); }

/* ---------- Vandaag: de dag als gloeiende ring die volloopt ---------- */
[data-stijl="aurora"] .blaadje { overflow: visible; }
[data-stijl="aurora"] .blaadje__band { background: none; color: var(--grijs); border: 0; padding: 16px 20px 0; font-stretch: 100%; text-transform: capitalize; }
[data-stijl="aurora"] .blaadje__band button { color: var(--rood); text-decoration: none; background: var(--stift); padding: 4px 12px; border-radius: 999px; }
[data-stijl="aurora"] .gaatjes { display: none; }
[data-stijl="aurora"] .blaadje__nummer {
  position: relative; width: 168px; height: 168px; margin: 6px auto 10px; display: grid; place-items: center;
  font-size: 4.6rem; font-stretch: 100%; color: var(--inkt); letter-spacing: -.04em;
}
[data-stijl="aurora"] .blaadje__nummer::before, [data-stijl="aurora"] .blaadje__nummer::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%); mask: radial-gradient(circle, transparent 64%, #000 65%);
}
[data-stijl="aurora"] .blaadje__nummer::before { background: var(--lijn); }
[data-stijl="aurora"] .blaadje__nummer::after { background: conic-gradient(#ff5a9e, #9b5cff var(--deel, 0%), transparent 0); filter: drop-shadow(0 0 14px rgb(239 47 136 / .7)); animation: vul 1s var(--glij) both; }
@keyframes vul { from { transform: rotate(-90deg); opacity: 0; } }
[data-stijl="aurora"] .blaadje__stand { display: block; }
[data-stijl="aurora"] .week { border-top: 1px solid var(--lijn); }
[data-stijl="aurora"] .week button.is-vandaag b { box-shadow: inset 0 0 0 1.5px var(--rood); }
[data-stijl="aurora"] .week button.is-gekozen b { box-shadow: 0 6px 16px rgb(239 47 136 / .45); }
[data-stijl="aurora"] .scheur-weg { animation: zweef-weg .35s ease-in both; }
[data-stijl="aurora"] .val-terug { animation: zweef-in .45s var(--veer) both; }
@keyframes zweef-weg { to { opacity: 0; transform: translateX(-40px) scale(.94); } }
@keyframes zweef-in { from { opacity: 0; transform: translateX(-40px) scale(.94); } }
[data-stijl="aurora"] .focus input { background: var(--stift); border-radius: 14px; padding: 10px 14px; }
[data-stijl="aurora"] .focus input:placeholder-shown { background: var(--vel); border: 1px dashed var(--lijn); border-radius: 14px; }

/* ---------- Taken: ronde vinkjes die opspringen ---------- */
[data-stijl="aurora"] .taak { border-bottom-color: var(--lijn); }
[data-stijl="aurora"] .vink span { border-radius: 50%; width: 26px; height: 26px; position: relative; }
[data-stijl="aurora"] .vink svg { stroke: #fff; }
[data-stijl="aurora"] .taak.is-klaar .vink span { background: var(--gloed); border-color: transparent; animation: spring .5s var(--veer); }
[data-stijl="aurora"] .taak.gaat-weg .vink span::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--rood); animation: kring .6s ease-out both; }
@keyframes spring { 40% { transform: scale(1.45); } }
@keyframes kring { to { transform: scale(2.6); opacity: 0; } }
[data-stijl="aurora"] .erbij .icoon { background: var(--gloed); color: #fff; border-radius: 50%; padding: 3px; }
[data-stijl="aurora"] :is(.tabjes, .groep h3) { border-bottom: 1px solid var(--lijn); }
[data-stijl="aurora"] .groep--laat h3 { border-color: var(--rood); }
[data-stijl="aurora"] .tabjes button.is-actief::after { height: 3px; border-radius: 3px; background: var(--gloed); }
[data-stijl="aurora"] .regel__punt i { background: var(--papier); }
[data-stijl="aurora"] .ring circle + circle { filter: drop-shadow(0 0 5px var(--kleur)); }
[data-stijl="aurora"] .stempel { border-radius: 999px; transform: none; background: var(--stift); border: 0; padding: 3px 10px; }
[data-stijl="aurora"] .herkend span { background: var(--gloed); color: #fff; border-radius: 999px; }
[data-stijl="aurora"] .wenken button { border-radius: 999px; border-style: solid; }
[data-stijl="aurora"] .lees .afvink i { border-radius: 50%; }
[data-stijl="aurora"] .lees .afvink.is-aan i { background: var(--gloed); border-color: transparent; color: #fff; }
[data-stijl="aurora"] .gereedschap { background: none; }
[data-stijl="aurora"] .staafjes i { background: var(--gloed); border-radius: 8px 8px 0 0; }
[data-stijl="aurora"] .cijfers div b { background: var(--gloed); -webkit-background-clip: text; background-clip: text; color: transparent; font-stretch: 100%; }
[data-stijl="aurora"] .treffer.is-gekozen, [data-stijl="aurora"] .treffer:hover { background: var(--vel-2); }
[data-stijl="aurora"] .zoekveld { border-bottom-color: var(--lijn); }

/* ---------- Bladen ---------- */
[data-stijl="aurora"] .blad__achter { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[data-stijl="aurora"] .blad__vel { background: var(--vast); border: 1px solid var(--lijn); border-radius: 30px 30px 0 0; animation-timing-function: var(--veer); animation-duration: .5s; }
@media (min-width: 700px) { [data-stijl="aurora"] .blad__vel { border-radius: 30px; box-shadow: 0 40px 90px rgb(var(--schaduw) / .5); } }

/* ---------- Een scherm komt binnen: de onderdelen schuiven na elkaar omhoog ---------- */
[data-stijl="aurora"] #scherm.komt-binnen :is(.blok, .focus, .sectie, .groep, .project, .notitie, .tabjes, .kop) { animation: binnen .55s var(--glij) both; }
[data-stijl="aurora"] #scherm.komt-binnen :is(.sectie, .groep, .project, .notitie):nth-of-type(2) { animation-delay: .06s; }
[data-stijl="aurora"] #scherm.komt-binnen :is(.sectie, .groep, .project, .notitie):nth-of-type(3) { animation-delay: .12s; }
[data-stijl="aurora"] #scherm.komt-binnen :is(.sectie, .groep, .project, .notitie):nth-of-type(n+4) { animation-delay: .18s; }
@keyframes binnen { from { opacity: 0; transform: translateY(22px) scale(.98); } }
