/* ═══════════════════════════════════════════════
   Virtual Break — Premium Education Design
   style.css
═══════════════════════════════════════════════ */

:root {
  --blue:       #0078d4;
  --blue-dk:    #004578;
  --blue-mid:   #0052a3;
  --blue-lt:    #deecf9;
  --purple:     #6366f1;
  --purple-dk:  #4338ca;
  --orange:     #f59e0b;
  --orange-dk:  #d97706;
  --green:      #10b981;
  --green-dk:   #059669;
  --red:        #ef4444;
  --teal:       #06b6d4;

  /* App dark background layers */
  --bg-1: #050f1c;
  --bg-2: #071527;
  --bg-3: #0d2137;

  /* Card / UI neutrals */
  --n10:  #fafaf9;
  --n20:  #f5f5f4;
  --n30:  #e7e5e4;
  --n60:  #a8a29e;
  --n90:  #78716c;
  --n160: #1c1917;

  --sidebar-w:  316px;
  --header-h:   66px;

  --card-shadow:     0 4px 24px rgba(0,0,0,0.22), 0 1px 6px rgba(0,0,0,0.14);
  --card-shadow-hov: 0 10px 40px rgba(0,0,0,0.32), 0 2px 10px rgba(0,0,0,0.16);
  --btn-shadow:      0 3px 12px rgba(0,120,212,0.38);
  --btn-shadow-hov:  0 6px 20px rgba(0,120,212,0.50);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-2);
  color: var(--n160);
  height: 100vh;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────
   ANIMATED STUDENT BACKGROUND SCENE
───────────────────────────────────────────────── */
.bg-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;

  /* Deep space base + twinkling star field embedded as repeating dots */
  background:
    radial-gradient(circle, rgba(255,255,255,0.90) 1px, transparent 1px)
      0 0 / 300px 300px,
    radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1px)
      70px 110px / 180px 180px,
    radial-gradient(circle, rgba(200,220,255,0.38) 1px, transparent 1px)
      30px 55px / 100px 100px,
    #020a16;
  animation: star-drift 80s linear infinite;
}

@keyframes star-drift {
  from { background-position: 0 0, 70px 110px, 30px 55px, 0 0; }
  to   { background-position: 300px 300px, 370px 410px, 130px 155px, 0 0; }
}

/* ★ Aurora Borealis — animated coloured light bands */
.bg-scene::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 140% 50% at 20% 70%, rgba(0,255,140,0.38) 0%, transparent 55%),
    radial-gradient(ellipse 120% 40% at 78% 25%, rgba(0,190,255,0.34) 0%, transparent 55%),
    radial-gradient(ellipse 100% 55% at 55% 88%, rgba(80,0,255,0.30)  0%, transparent 55%),
    radial-gradient(ellipse 90%  45% at 10% 40%, rgba(200,0,255,0.26) 0%, transparent 50%),
    radial-gradient(ellipse 80%  35% at 88% 70%, rgba(0,255,200,0.24) 0%, transparent 50%);
  filter: blur(36px);
  animation: aurora-shift 16s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes aurora-shift {
  0%   { transform: translate(0,    0)    scale(1.00) rotate(0deg);   opacity: 0.80; }
  20%  { transform: translate(4%,  -3%)   scale(1.07) rotate(0.6deg); opacity: 1.00; }
  45%  { transform: translate(-2%,  6%)   scale(0.96) rotate(-1.2deg);opacity: 0.88; }
  70%  { transform: translate(5%,   1%)   scale(1.05) rotate(0.8deg); opacity: 1.00; }
  100% { transform: translate(-3%, -5%)   scale(1.02) rotate(-0.4deg);opacity: 0.92; }
}

/* GEA watermark + edge vignette */
.bg-scene::after {
  content: 'GEA';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(140px, 20vw, 320px);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  letter-spacing: 28px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* Floating icons */
.bp {
  position: absolute;
  bottom: -100px;
  opacity: 0;
  animation: bp-rise linear infinite;
  will-change: transform, opacity;
  user-select: none;
}

@keyframes bp-rise {
  0%   { transform: translateY(0)     rotate(0deg)   scale(0.75); opacity: 0;    }
  7%   { opacity: 0.08; }
  50%  { transform: translateY(-52vh) rotate(85deg)  scale(1.0);  opacity: 0.07; }
  93%  { opacity: 0.04; }
  100% { transform: translateY(-115vh) rotate(195deg) scale(1.25); opacity: 0;   }
}

/* ─────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────── */
.header {
  height: var(--header-h);
  background: linear-gradient(95deg, #00336e 0%, #004fa8 55%, #280055 100%);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 28px rgba(0,0,0,0.55);
}

/* Shimmer accent line at base of header */
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(80,160,255,0.55) 30%,
    rgba(160,100,255,0.45) 65%,
    transparent 100%);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo svg {
  width: 34px; height: 34px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.22));
}

.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name  { font-size: 17px; font-weight: 800; color: white; letter-spacing: 0.2px; }
.logo-sub   { font-size: 11px; color: rgba(255,255,255,0.58); letter-spacing: 0.3px; }

/* ── Analog Clock ── */
.analog-clock-wrap {
  padding: 0 18px;
  border-left:  1px solid rgba(255,255,255,0.13);
  border-right: 1px solid rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  margin-left: 14px;
}

.analog-clock {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 10px rgba(255,210,80,0.18));
}

/* User identity chip in header */
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-left:  1px solid rgba(255,255,255,0.14);
  border-right: 1px solid rgba(255,255,255,0.14);
  margin-left: 18px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #0086ef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(99,102,241,0.45);
  flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; gap: 1px; }
.user-name  { font-size: 13px; font-weight: 700; color: white; }
.user-role  { font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.3px; }

/* IST clock in header */
.header-clock { margin-left: auto; text-align: right; }

.clock-time {
  font-size: 30px;
  font-weight: 900;
  color: white;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 0 28px rgba(80,160,255,0.50);
}

.clock-date  { font-size: 11px; color: rgba(255,255,255,0.70); margin-top: 3px; }
.clock-label {
  font-size: 9px;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-top: 1px;
}

/* ─────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────── */
.app-layout {
  display: flex;
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(255,255,255,0.975);
  border-right: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
  box-shadow: 4px 0 32px rgba(0,0,0,0.30);
  scrollbar-width: auto;
  scrollbar-color: #cbd5e0 rgba(0,0,0,0.03);
}

.sidebar::-webkit-scrollbar { width: 12px; }
.sidebar::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); }
.sidebar::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 6px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

.sidebar-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--n30);
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--n60);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 14px;
}

/* Form */
.form-group { margin-bottom: 13px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--n160);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid var(--n30);
  border-radius: 7px;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  color: var(--n160);
  background: var(--n10);
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,120,212,0.12);
}

/* Duration buttons */
.duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.dur-btn {
  padding: 8px 4px;
  border: 1.5px solid var(--n30);
  border-radius: 7px;
  background: var(--n10);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  font-family: 'Segoe UI', sans-serif;
  color: var(--n160);
}

.dur-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-lt);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,120,212,0.15);
}

.dur-btn.active {
  background: linear-gradient(135deg, #0086ef, #0052a3);
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(0,120,212,0.42);
  transform: translateY(-1px);
}

/* Return preview */
.return-preview {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #fcd34d;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(245,158,11,0.15);
}

.rp-label { font-size: 10px; color: #92400e; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; }
.rp-value { font-size: 26px; font-weight: 900; color: var(--orange-dk); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Segoe UI', sans-serif;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #0086ef, #0052a3);
  color: white;
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hov);
  background: linear-gradient(135deg, #0095ff, #005fc0);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: white;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover { background: var(--blue-lt); transform: translateY(-1px); }

/* QR wrap */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  margin-bottom: 10px;
}

.qr-note { font-size: 11px; color: #1e40af; font-weight: 700; text-align: center; }

/* Session mini list */
.session-mini {
  background: var(--n10);
  border: 1.5px solid var(--n30);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 6px;
}

.session-mini:hover {
  border-color: var(--blue);
  background: var(--blue-lt);
  transform: translateX(3px);
  box-shadow: 2px 0 8px rgba(0,120,212,0.14);
}

.session-mini.is-active {
  border-color: var(--green);
  background: #ecfdf5;
  box-shadow: 2px 0 10px rgba(16,185,129,0.18);
}

.sm-name { font-size: 13px; font-weight: 700; color: var(--n160); }
.sm-time { font-size: 11px; color: var(--n90); margin-top: 3px; }

/* ── Notes Textarea ── */
.notes-textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1.5px solid var(--n30);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Segoe UI', sans-serif;
  color: var(--n160);
  background: var(--n10);
  resize: vertical;
  min-height: 90px;
  transition: all 0.2s;
  line-height: 1.7;
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,120,212,0.12);
}

.notes-saved-ind {
  font-size: 12px;
  color: var(--green-dk);
  font-weight: 700;
  text-align: center;
  padding: 5px;
  background: #d1fae5;
  border-radius: 6px;
  margin-top: 6px;
}

/* ─────────────────────────────────────────────────
   MAIN CONTENT
───────────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.main-content::-webkit-scrollbar { width: 5px; }
.main-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* Empty state */
.empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.es-card {
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 52px 44px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}

.es-icon  { font-size: 58px; margin-bottom: 18px; }
.es-title { font-size: 24px; font-weight: 900; color: white; margin-bottom: 10px; }
.es-desc  { font-size: 14px; color: rgba(255,255,255,0.60); line-height: 1.75; max-width: 360px; margin: 0 auto; }

.es-tip {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0,120,212,0.18);
  border: 1px solid rgba(0,120,212,0.28);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  text-align: left;
}

/* Sessions grid */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  align-content: start;
}

/* Break card */
.break-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
  transition: box-shadow 0.25s, transform 0.25s;
}

.break-card:hover {
  box-shadow: var(--card-shadow-hov);
  transform: translateY(-3px);
}

.card-head {
  padding: 18px 22px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #003d8f 0%, #0078d4 100%);
  position: relative;
  overflow: hidden;
}

/* Gloss shine on header */
.card-head::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
}

.card-head.soon { background: linear-gradient(135deg, #92400e, #d97706); }
.card-head.done { background: linear-gradient(135deg, #3d3835, #78716c); }

.card-name { font-size: 17px; font-weight: 800; }
.card-meta { font-size: 12px; color: rgba(255,255,255,0.78); margin-top: 3px; }

.card-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

.end-btn {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.32);
  color: white;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Segoe UI', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.end-btn:hover { background: rgba(255,255,255,0.28); transform: scale(1.03); }

.del-btn {
  background: rgba(239,68,68,0.20);
  border: 1px solid rgba(239,68,68,0.40);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.del-btn:hover { background: rgba(239,68,68,0.45); transform: scale(1.06); }

.card-body { padding: 20px 22px; }

/* Countdown ring */
.countdown-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.ring {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.ring svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.ring-mins { font-size: 19px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-sub  { font-size: 9px; color: var(--n90); margin-top: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }

.return-info {}
.ri-label { font-size: 10px; color: var(--n90); text-transform: uppercase; letter-spacing: 0.7px; font-weight: 800; }
.ri-time  { font-size: 34px; font-weight: 900; color: var(--orange-dk); font-variant-numeric: tabular-nums; line-height: 1.05; }
.ri-ist   { font-size: 10px; color: var(--n90); margin-top: 1px; }
.ri-warn  { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--orange-dk); }
.ri-end   { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--red); }

/* Stats bar */
.stats-bar { display: flex; gap: 8px; margin-bottom: 14px; }

.stat {
  flex: 1;
  background: var(--n10);
  border: 1.5px solid var(--n30);
  border-radius: 9px;
  padding: 10px;
  text-align: center;
  transition: all 0.18s;
}

.stat:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.08); }

.stat-n { font-size: 26px; font-weight: 900; line-height: 1; }
.stat-l { font-size: 9px; color: var(--n90); margin-top: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.stat-out .stat-n { color: var(--orange-dk); }
.stat-ret .stat-n { color: var(--green-dk); }
.stat-ov  .stat-n { color: var(--red); }

/* Student table */
.stu-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.stu-table th {
  background: var(--n20);
  padding: 8px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  color: var(--n90);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--n30);
}

.stu-table td { padding: 9px 12px; border-bottom: 1px solid var(--n20); }
.stu-table tr:last-child td { border-bottom: none; }
.stu-table tbody tr:hover td { background: #f9fafb; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge-out { background: #fef3c7; color: #92400e; }
.badge-ret { background: #d1fae5; color: #065f46; }
.badge-ov  { background: #fee2e2; color: #991b1b; }

.no-students {
  text-align: center;
  padding: 22px;
  font-size: 13px;
  color: var(--n90);
  background: linear-gradient(135deg, var(--n10), var(--n20));
  border-radius: 9px;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: white;
  border-radius: 18px;
  padding: 32px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.42);
  animation: modal-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
  from { transform: scale(0.80); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-title  { font-size: 20px; font-weight: 900; color: var(--n160); margin-bottom: 4px; }
.modal-sub    { font-size: 13px; color: var(--n90); margin-bottom: 18px; }
.modal-return { font-size: 14px; color: var(--orange-dk); font-weight: 800; margin-top: 14px; }

.modal-close {
  margin-top: 20px;
  padding: 11px 36px;
  background: linear-gradient(135deg, #0086ef, #0052a3);
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: var(--btn-shadow);
  transition: all 0.2s;
}

.modal-close:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow-hov); }

/* ─────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: rgba(10,18,38,0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.10);
  color: white;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  z-index: 300;
  box-shadow: 0 10px 32px rgba(0,0,0,0.50);
  animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toast-in {
  from { transform: translateY(18px) scale(0.93); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Pulse animation */
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.42; }
}
.pulse { animation: pulse 0.85s ease-in-out infinite; }

/* ────────────────────────────────────────────────
   TEACHER MAIN — Health Message Watermark
──────────────────────────────────────────────── */
.notes-watermark {
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 22px 26px 24px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.18);
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nw-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nw-pin   { font-size: 20px; }
.nw-title {
  font-size: 16px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.2px;
  flex: 1;
}
.nw-byline {
  font-size: 11px;
  color: rgba(255,255,255,0.50);
  font-style: italic;
}

.nw-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.nw-item {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid rgba(245,158,11,0.60);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  transition: background 0.15s;
}

.nw-item:hover {
  background: rgba(255,255,255,0.10);
}

.nw-item strong { color: #fcd34d; font-weight: 800; }

/* ─────────────────────────────────────────────────
   WELLNESS TIPS CARD  (teacher + student, permanent)
───────────────────────────────────────────────── */
.wellness-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.5);
}

.wc-header {
  background: linear-gradient(135deg, #059669, #10b981);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wc-icon  { font-size: 22px; }
.wc-title { font-size: 15px; font-weight: 800; color: white; flex: 1; letter-spacing: 0.2px; }
.wc-badge { font-size: 11px; color: rgba(255,255,255,0.72); font-style: italic; white-space: nowrap; }

.wc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.wc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0fdf4;
  border-right: 1px solid #f0fdf4;
  font-size: 13px;
  color: var(--n160);
  line-height: 1.45;
  transition: filter 0.15s;
}

.wc-item:hover { filter: brightness(0.96); }
.wc-item:nth-child(even) { border-right: none; }
.wc-item:nth-last-child(-n+2):not(.wc-full) { border-bottom: none; }
.wc-full { grid-column: 1 / -1; border-right: none; border-bottom: none; }

.wc-num  { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.wc-item strong { font-weight: 800; display: block; margin-bottom: 2px; font-size: 13px; }

/* Per-tip colour tints */
.wc-green  { background: #f0fdf4; }
.wc-blue   { background: #eff6ff; }
.wc-teal   { background: #f0fdfa; }
.wc-purple { background: #faf5ff; }
.wc-orange { background: #fff7ed; }
.wc-red    { background: #fef2f2; }
.wc-amber  { background: #fffbeb; }
.wc-indigo { background: #eef2ff; }
.wc-rose   { background: #fff1f2; }

.wc-footer {
  padding: 13px 20px;
  font-size: 13px;
  color: #065f46;
  background: #d1fae5;
  text-align: center;
  border-top: 1px solid #a7f3d0;
  line-height: 1.55;
}

/* 3-column compact variant for teacher dashboard */
.wc-3col .wc-grid {
  grid-template-columns: repeat(3, 1fr);
}

.wc-3col .wc-item {
  padding: 10px 12px;
  font-size: 12.5px;
}

.wc-3col .wc-num { font-size: 20px; }

.wc-3col .wc-item:nth-child(3n) { border-right: none; }
.wc-3col .wc-item:nth-last-child(-n+3) { border-bottom: none; }

.hidden { display: none !important; }
