/* Vrtić: tjedni plan za odgojiteljicu. Tablet prvi (768+), mobitel harmonika. Sve je pod body.teacher. */
.teacher #app { max-width: 1160px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.teacher .screen.narrow { width: 100%; max-width: 520px; margin: 0 auto; }
.teacher .hero { width: 100%; max-width: 620px; margin: 0 auto; }
.teacher h1 { font-size: 26px; line-height: 1.2; text-wrap: balance; }
.teacher .hero h1 { font-size: 30px; margin-top: 0; }
@media (min-width: 768px) {
  .teacher h1 { font-size: 32px; }
  .teacher .hero h1 { font-size: 38px; }
  .teacher .hero { padding-top: 14vh; }
}

/* Obrazac grupe */
.field select {
  width: 100%; min-height: 48px; padding: 12px 40px 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232CC3F4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  color: #fff; font: inherit; font-size: 16px; color-scheme: dark; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.field select:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: transparent; }
.field select[aria-invalid="true"] { border-color: #FF7D9C; }
.age-range { margin: 0 0 4px; padding: 0; border: 0; min-width: 0; }
.age-range legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--soft); }
.age-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; }
.age-row .field > span { font-size: 12px; color: var(--muted); }
.age-dash { padding-top: 34px; color: var(--muted); }
.note { margin: 0 0 10px; font-size: 13.5px; color: var(--soft); }

/* Zaglavlje plana */
.plan-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-top: 6px; }
.plan-head h1 { margin-top: 8px; }
.plan-meta { margin: 4px 0 0; font-size: 14px; color: var(--soft); }
.print-btn svg { width: 18px; height: 18px; }
@media (max-width: 767px) { .print-btn { width: 100%; } }

.weeknav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 18px 0 4px; }
.weeknav .navbtn:first-child { justify-self: start; }
.weeknav .navbtn:last-child { justify-self: end; }
.weeknav-mid { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.weeknav-range { font-size: 17px; font-weight: 600; white-space: nowrap; }
.weeknav-sub { font-size: 12px; color: var(--soft); }
.weeknav-rel { font-size: 12px; color: var(--lime); font-weight: 500; }
.weeknav-rel.link { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; font-size: 12px; }
@media (max-width: 400px) { .nav-word { display: none; } .weeknav .navbtn { min-width: 44px; } }
.hint { margin: 10px 0 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Dan */
.day-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.day-date { font-size: 13px; color: var(--soft); }
.day-sum { font-size: 12.5px; font-weight: 500; color: var(--lime); }
.today-badge { padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: 11px; font-weight: 600; }

/* Blokovi "Pokret" i "Misao" */
.block + .block { margin-top: 14px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.block-name { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.block-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.block-misao .block-name::before { background: var(--magenta); box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.block-min { font-size: 12px; color: var(--muted); }
.block-empty { margin: 0; font-size: 13px; color: var(--muted); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* Sažeta vježba */
.slot { position: relative; display: flex; align-items: stretch; border-radius: 12px; background: var(--card); color: var(--ink); overflow: hidden; box-shadow: 0 4px 14px rgba(8, 12, 40, .22); }
.slot::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--cyan); }
.slot-misao::before { background: var(--magenta); }
.slot-open {
  flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 8px 10px 14px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer;
}
.slot-open:hover { background: #F6F7FB; }
.slot-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-text); }
.slot-misao .slot-sub { color: var(--magenta); }
.slot-title { font-size: 14.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.slot-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 12px; color: #4A5180; }
.slot-min { font-weight: 600; color: var(--ink); white-space: nowrap; }
.slot-tag { margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: #FFF3E5; color: #9A4A00; font-size: 11px; font-weight: 500; }
.slot-swap {
  flex: 0 0 44px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line);
  background: transparent; color: var(--blue); cursor: pointer;
}
.slot-misao .slot-swap { color: var(--magenta); }
.slot-swap:hover { background: var(--tint); }
.slot-swap svg { width: 18px; height: 18px; }
.slot :focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }

/* Tablet: dani kao retci tablice (Dan | Pokret | Misao) */
.week-grid { display: grid; gap: 12px; }
.wday { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.wday.is-today { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.wday-head { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 768px) and (max-width: 1099px) {
  .wday { display: grid; grid-template-columns: 118px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .wday-body { display: contents; }
  .wday .block + .block { margin-top: 0; }
}
/* Široki zaslon: pet dana kao stupci */
@media (min-width: 1100px) {
  .week-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
  .wday-head { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* Mobitel: harmonika */
.week-acc { display: grid; gap: 10px; }
.aday { border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.aday.is-today { border-color: var(--lime); }
.aday-h { margin: 0; font-size: inherit; font-weight: inherit; }
.aday-btn {
  width: 100%; min-height: 64px; display: grid; grid-template-columns: 1fr auto 24px; grid-template-areas: 'name sum chev' 'date sum chev';
  align-items: center; column-gap: 10px; padding: 12px 14px 12px 16px; border: 0; border-radius: 18px; background: transparent; color: #fff; text-align: left; cursor: pointer;
}
.aday-btn .day-name { grid-area: name; }
.aday-btn .day-date { grid-area: date; }
.aday-btn .day-sum { grid-area: sum; text-align: right; }
.aday-btn .chev { grid-area: chev; width: 22px; height: 22px; color: var(--cyan); transition: transform .2s; }
.aday.open .chev { transform: rotate(180deg); }
.aday-body { padding: 2px 12px 14px; }

/* Detalj vježbe */
.sheet {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px;
  background: var(--navy); color: #fff; overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.sheet::backdrop { background: rgba(10, 14, 40, .72); }
.sheet-inner { padding: 16px; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-ctx { font-size: 13px; color: var(--soft); }
.sheet .card.ex { margin-bottom: 0; }
@media (max-width: 767px) {
  .sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}
