/* ════════════════════════════════════════════════════════════
   FamilyHub — style.css
   Font: Outfit (modern, geometric, sveden)
   Primary: 1080×1920 portrait FHD
   Secondary: mobile-first responsive
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Mono:wght@300;400&display=swap');

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════════
   THEMES
   ════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --bg:             #0d0f14;
  --bg-secondary:   #13161d;
  --bg-card:        #1a1e27;
  --bg-card-alt:    #1e2330;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.14);
  --text-primary:   #e8eaf0;
  --text-secondary: #7a8494;
  --text-muted:     #40485a;
  --accent:         #4a9eff;
  --accent-soft:    rgba(74,158,255,0.12);
  --accent-2:       #2dd4bf;
  --danger:         #ef4444;
  --navbar-bg:      rgba(13,15,20,0.95);
  --shadow-card:    0 2px 16px rgba(0,0,0,0.45);
  --glow:           0 0 24px rgba(74,158,255,0.18);
  --pri-imp-bg:     rgba(239,68,68,0.08);
  --pri-imp-bar:    #ef4444;
  --pri-med-bg:     rgba(245,158,11,0.08);
  --pri-med-bar:    #f59e0b;
  --pri-low-bg:     rgba(34,197,94,0.06);
  --pri-low-bar:    #22c55e;
}
[data-theme="light"] {
  --bg:             #f2f5fb;
  --bg-secondary:   #e8edf5;
  --bg-card:        #ffffff;
  --bg-card-alt:    #f7faff;
  --border:         rgba(0,0,0,0.08);
  --border-hover:   rgba(0,0,0,0.15);
  --text-primary:   #14192e;
  --text-secondary: #4a5568;
  --text-muted:     #94a3b8;
  --accent:         #2563eb;
  --accent-soft:    rgba(37,99,235,0.08);
  --accent-2:       #0891b2;
  --danger:         #dc2626;
  --navbar-bg:      rgba(255,255,255,0.95);
  --shadow-card:    0 2px 12px rgba(0,0,0,0.07);
  --glow:           0 0 24px rgba(37,99,235,0.08);
  --pri-imp-bg:     rgba(220,38,38,0.05);
  --pri-imp-bar:    #dc2626;
  --pri-med-bg:     rgba(217,119,6,0.06);
  --pri-med-bar:    #d97706;
  --pri-low-bg:     rgba(22,163,74,0.04);
  --pri-low-bar:    #16a34a;
}
[data-theme="neon"] {
  --bg:             #050710;
  --bg-secondary:   #080b15;
  --bg-card:        #0a0d1c;
  --bg-card-alt:    #0d1122;
  --border:         rgba(255,0,128,0.14);
  --border-hover:   rgba(255,0,128,0.32);
  --text-primary:   #dde8ff;
  --text-secondary: #8898c0;
  --text-muted:     #3a4468;
  --accent:         #ff0080;
  --accent-soft:    rgba(255,0,128,0.1);
  --accent-2:       #00ffaa;
  --danger:         #ff2244;
  --navbar-bg:      rgba(5,7,16,0.97);
  --shadow-card:    0 2px 20px rgba(255,0,128,0.07);
  --glow:           0 0 32px rgba(255,0,128,0.22);
  --pri-imp-bg:     rgba(255,34,68,0.08);
  --pri-imp-bar:    #ff2244;
  --pri-med-bg:     rgba(255,200,0,0.07);
  --pri-med-bar:    #ffc800;
  --pri-low-bg:     rgba(0,255,170,0.05);
  --pri-low-bar:    #00ffaa;
}

/* ════════════════════════════════════════════════════════════
   GLOBALS
   ════════════════════════════════════════════════════════════ */

.accent  { color: var(--accent); }
.hidden  { display: none !important; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s;
}
.card:hover { border-color: var(--border-hover); }

.btn-save {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-save:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-cancel {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cancel:hover { border-color: var(--border-hover); color: var(--text-primary); }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.form-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; }

/* ════════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════════ */

.login-body {
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.theme-switcher-fixed {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: flex;
  gap: 6px;
}

.login-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 60px 22px;
  width: 100%;
  max-width: 460px;
}

.login-header { text-align: center; animation: fadeUp 0.6s ease both; }
.login-logo   { margin-bottom: 10px; }
.login-logo img {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 14px var(--accent));
  border-radius: 20px;
}
.login-title  {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.login-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 7px;
  font-weight: 300;
}

.login-card {
  width: 100%;
  animation: fadeUp 0.6s 0.12s ease both;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-card), var(--glow);
}
.login-card-inner {
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-heading { font-size: 1.4rem; font-weight: 600; }
.card-subheading { font-size: 0.86rem; color: var(--text-secondary); margin-top: -12px; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 12px; font-size: 0.85rem; pointer-events: none; z-index: 1; }
.input-wrapper .form-input { padding-left: 36px; }
.toggle-pw {
  position: absolute; right: 11px;
  background: none; border: none; cursor: pointer;
  font-size: 0.82rem; opacity: 0.45; transition: opacity 0.2s; padding: 4px;
}
.toggle-pw:hover { opacity: 1; }

.login-error {
  background: rgba(239,68,68,0.09);
  border: 1px solid rgba(239,68,68,0.28);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--danger);
  font-size: 0.87rem;
  text-align: center;
}

.login-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.login-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.login-btn.loading { opacity: 0.65; pointer-events: none; }
.btn-arrow { transition: transform 0.2s; }
.login-btn:hover .btn-arrow { transform: translateX(4px); }
.login-hint { text-align: center; font-size: 0.76rem; color: var(--text-muted); }

.login-footer { animation: fadeUp 0.6s 0.24s ease both; }
.footer-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: var(--text-muted);
}
.footer-dot { opacity: 0.3; }

/* Login theme buttons */
.theme-switcher-fixed .theme-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.7rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.theme-switcher-fixed .theme-btn:hover,
.theme-switcher-fixed .theme-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ════════════════════════════════════════════════════════════
   SCREENSAVER
   ════════════════════════════════════════════════════════════ */

.screensaver {
  position: fixed; inset: 0; z-index: 900;
  background: #000; cursor: pointer;
}
.ss-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.5s ease;
}
.ss-slide.active { opacity: 1; }
.ss-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}
.ss-clock {
  position: absolute; bottom: 140px; left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  white-space: nowrap;
}
.ss-tap {
  position: absolute; bottom: 72px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem; color: rgba(255,255,255,0.38);
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap; animation: pulse 2.2s infinite;
}

/* ════════════════════════════════════════════════════════════
   SETTINGS PANEL (slide-in from right)
   ════════════════════════════════════════════════════════════ */

.settings-backdrop {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 810;
  width: min(340px, 90vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(0,0,0,0.35);
  display: flex; flex-direction: column;
  animation: slideInRight 0.25s ease;
  overflow-y: auto;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.settings-panel.hidden { display: none; }

.settings-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-card);
  z-index: 1;
}
.settings-title { font-size: 1.05rem; font-weight: 600; }
.settings-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 1rem;
  padding: 4px 8px; border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.settings-close:hover { background: var(--bg-secondary); color: var(--text-primary); }

.settings-section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.settings-label {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Theme buttons inside settings */
.theme-switcher-inline {
  display: flex; gap: 7px;
}
.theme-switcher-inline .theme-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
}
.theme-switcher-inline .theme-btn:hover,
.theme-switcher-inline .theme-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Toggle row (screensaver on/off) */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; cursor: pointer;
}
.toggle-desc { display: flex; flex-direction: column; gap: 2px; }
.toggle-name { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.toggle-sub  { font-size: 0.76rem; color: var(--text-muted); }

.toggle-switch {
  width: 44px; height: 26px; flex-shrink: 0;
  background: var(--border-hover);
  border-radius: 13px;
  position: relative; cursor: pointer;
  transition: background 0.25s;
}
.toggle-switch.on { background: var(--accent); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.25s;
}
.toggle-switch.on .toggle-knob { transform: translateX(18px); }

.ss-timer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.ss-schedule-divider {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 0 2px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.ss-time-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.settings-time {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--text-primary);
  font-family: 'DM Mono', monospace;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  width: 110px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.settings-time:focus { border-color: var(--accent); }

#ssScheduleOptions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#ssOptions { display: flex; flex-direction: column; gap: 12px; }

.ss-schedule-status {
  font-size: 0.75rem;
  color: var(--accent);
  padding: 7px 12px;
  background: var(--accent-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 500;
}
.settings-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 130px;
}

.settings-logout {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  color: var(--danger);
  padding: 10px 18px;
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  align-self: flex-start;
}
.settings-logout:hover { background: rgba(239,68,68,0.15); }

/* ════════════════════════════════════════════════════════════
   DASHBOARD — NAVBAR
   ════════════════════════════════════════════════════════════ */

.dashboard-body {
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 58px;
  gap: 12px;
}
.nav-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo  { height: 32px; width: auto; display: block; border-radius: 8px; }
.nav-brand { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.nav-center { display: flex; gap: 2px; }
.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.86rem; font-weight: 500;
  padding: 6px 13px; border-radius: 9px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--text-primary); background: var(--accent-soft); }
.nav-link.active  { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-user  { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--text-secondary); }
.user-name { font-weight: 500; color: var(--text-primary); }
.nav-settings-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-secondary);
  width: 34px; height: 34px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.2s; flex-shrink: 0;
}
.nav-settings-btn:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-secondary); }

/* ════════════════════════════════════════════════════════════
   DASHBOARD — MAIN LAYOUT
   ════════════════════════════════════════════════════════════ */

.dash-main {
  flex: 1;
  padding: 18px 16px 24px;
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 680px;
  margin: 0 auto;
}

/* ─── Clock section ────────────────────────────────────────── */
.clock-section {
  text-align: center;
  padding: 28px 20px 20px;
  animation: fadeUp 0.5s ease both;
}
.clock-time {
  font-family: 'DM Mono', monospace;
  font-size: clamp(3rem, 14vw, 5.5rem);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: var(--glow);
}
.clock-date {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 6px;
}
.clock-loc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Announcement card ────────────────────────────────────── */
.announce-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 0.5s 0.08s ease both;
}
.announce-inner { display: flex; flex-direction: column; gap: 6px; }
.announce-label {
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em;
}
.announce-text { font-size: 0.96rem; color: var(--text-primary); line-height: 1.55; }
.announce-edit-btn {
  align-self: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.78rem; font-family: inherit; font-weight: 500;
  padding: 4px 12px; cursor: pointer; transition: all 0.2s;
}
.announce-edit-btn:hover { background: var(--accent); color: #fff; }
.announce-textarea {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px;
  color: var(--text-primary); font-family: inherit; font-size: 0.92rem;
  resize: none; outline: none; width: 100%;
}
.announce-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.announce-actions { display: flex; gap: 8px; }
.announce-edit { display: flex; flex-direction: column; gap: 9px; }

/* ─── Weather card ─────────────────────────────────────────── */
.weather-card {
  padding: 20px;
  display: flex; flex-direction: column; gap: 18px;
  animation: fadeUp 0.5s 0.16s ease both;
}
.weather-now {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.weather-left { display: flex; flex-direction: column; gap: 3px; }
.weather-temp-big {
  font-family: 'DM Mono', monospace;
  font-size: clamp(2.8rem, 10vw, 4rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.weather-desc { font-size: 0.9rem; color: var(--text-secondary); font-weight: 400; }
.weather-city-row { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.weather-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.weather-icon-big { font-size: clamp(2.4rem, 8vw, 3.5rem); line-height: 1; }
.weather-stats {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px; font-size: 0.78rem; color: var(--text-secondary);
}

/* ─── Forecast swiper — full width single card ─────────────── */
.forecast-wrapper {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.forecast-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fc-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-secondary);
  width: 34px; height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.fc-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.fc-nav-btn:disabled { opacity: 0.25; cursor: default; }

.forecast-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex: 1;
}
.fc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: pointer;
  transition: all 0.2s;
}
.fc-dot.active { background: var(--accent); transform: scale(1.25); }

/* The track is just a container — one card at a time */
.forecast-track {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.fc-fullcard {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fc-fullcard.visible {
  opacity: 1;
  transform: translateY(0);
}

.fc-full-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.fc-full-day  { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.fc-full-date { font-size: 0.78rem; color: var(--text-muted); }

.fc-full-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.fc-full-icon { font-size: clamp(2.4rem, 8vw, 3.2rem); line-height: 1; }
.fc-full-temps {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.fc-full-hi  { font-family: 'DM Mono', monospace; font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 300; color: var(--text-primary); }
.fc-full-sep { font-size: 1rem; color: var(--text-muted); }
.fc-full-lo  { font-family: 'DM Mono', monospace; font-size: clamp(1.1rem, 3.5vw, 1.4rem); color: var(--text-muted); font-weight: 300; }

.fc-full-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.fc-detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
}
.fc-detail-icon { font-size: 1rem; line-height: 1; }
.fc-detail-val  { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); text-align: center; }
.fc-detail-lbl  { font-size: 0.65rem; color: var(--text-muted); text-align: center; }

/* ─── Message Board ────────────────────────────────────────── */
.message-board {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeUp 0.5s 0.24s ease both;
}
.board-header {
  display: flex; align-items: center; justify-content: space-between;
}
.board-title { font-size: 1.05rem; font-weight: 700; }
.btn-add-msg {
  background: var(--accent); color: #fff;
  border: none; border-radius: 9px;
  padding: 8px 16px;
  font-family: inherit; font-size: 0.86rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-add-msg:hover { opacity: 0.85; transform: translateY(-1px); }

.msg-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  animation: fadeUp 0.22s ease;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg-form-actions { display: flex; gap: 8px; }

.msg-list { display: flex; flex-direction: column; gap: 9px; }
.msg-empty { text-align: center; color: var(--text-muted); padding: 32px; font-size: 0.9rem; }

.msg-item {
  display: flex; align-items: stretch;
  border-radius: 13px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.2s;
}
.msg-item:hover { transform: translateX(2px); border-color: var(--border-hover); }

.msg-priority-bar { width: 4px; flex-shrink: 0; }
.pri-important { background: var(--pri-imp-bg); }
.pri-important .msg-priority-bar { background: var(--pri-imp-bar); }
.pri-medium    { background: var(--pri-med-bg); }
.pri-medium    .msg-priority-bar { background: var(--pri-med-bar); }
.pri-low       { background: var(--pri-low-bg); }
.pri-low       .msg-priority-bar { background: var(--pri-low-bar); }

.msg-body {
  flex: 1; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.msg-text { font-size: 0.91rem; font-weight: 400; color: var(--text-primary); line-height: 1.5; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg-meta span { font-size: 0.72rem; color: var(--text-secondary); }

.msg-badge {
  font-size: 0.67rem !important;
  padding: 2px 9px; border-radius: 20px;
  font-weight: 600 !important; border: 1px solid;
  white-space: nowrap;
}
.msg-badge.pri-important { border-color: var(--pri-imp-bar); color: var(--pri-imp-bar) !important; background: var(--pri-imp-bg); }
.msg-badge.pri-medium    { border-color: var(--pri-med-bar); color: var(--pri-med-bar) !important; background: var(--pri-med-bg); }
.msg-badge.pri-low       { border-color: var(--pri-low-bar); color: var(--pri-low-bar) !important; background: var(--pri-low-bg); }

/* ★ Edit/Delete buttons — always visible, permission check goes in JS later */
.msg-actions {
  display: flex; flex-direction: column;
  gap: 2px; padding: 6px; justify-content: center;
}
.btn-msg-edit, .btn-msg-del {
  background: none; border: none; cursor: pointer;
  font-size: 0.92rem; padding: 6px; border-radius: 7px;
  transition: background 0.15s; line-height: 1;
}
.btn-msg-edit:hover { background: var(--accent-soft); }
.btn-msg-del:hover  { background: rgba(239,68,68,0.1); }

/* ─── Footer ───────────────────────────────────────────────── */
.dash-footer {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem; color: var(--text-muted);
}
.footer-dot { opacity: 0.3; }

/* ════════════════════════════════════════════════════════════
   NEON EXTRAS
   ════════════════════════════════════════════════════════════ */

[data-theme="neon"] .clock-time {
  text-shadow: 0 0 22px rgba(255,0,128,0.65), 0 0 50px rgba(255,0,128,0.25);
}
[data-theme="neon"] .weather-temp-big {
  color: var(--accent-2);
  text-shadow: 0 0 22px rgba(0,255,170,0.55);
}
[data-theme="neon"] .navbar { border-bottom-color: rgba(255,0,128,0.18); }
[data-theme="neon"] .nav-link.active { color: var(--accent); }
[data-theme="neon"] .nav-brand .accent { text-shadow: 0 0 12px rgba(255,0,128,0.7); }
[data-theme="neon"] .btn-add-msg { box-shadow: 0 0 14px rgba(255,0,128,0.28); }
[data-theme="neon"] .fc-card.active { box-shadow: 0 0 14px rgba(255,0,128,0.18); }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.75; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* ── FHD Portrait 1080×1920 ── PRIMARY TARGET ─────────────── */
@media (min-width: 900px) {
  html { font-size: 18px; }
  .navbar { height: 68px; padding: 0 36px; }
  .dash-main { padding: 32px 36px; gap: 22px; max-width: 1080px; }
  .clock-section { padding: 36px 24px 24px; }
  .clock-time { font-size: 5.5rem; }
  .weather-temp-big { font-size: 4rem; }
  .weather-icon-big { font-size: 3.5rem; }
  .announce-card { padding: 24px 28px; }
  .weather-card  { padding: 24px 28px; }
  .message-board { padding: 24px 28px; }
  .board-title   { font-size: 1.2rem; }
  .msg-text      { font-size: 1rem; }
  .msg-meta span { font-size: 0.8rem; }
  .fc-card { flex: 0 0 calc(20% - 8px); } /* show all 5 on FHD */
  .fc-card-day  { font-size: 0.74rem; }
  .fc-card-icon { font-size: 1.9rem; }
  .fc-hi { font-size: 1rem; }
}

/* ── Tablet 600–899px ─────────────────────────────────────── */
@media (min-width: 600px) and (max-width: 899px) {
  .nav-center { display: flex; }
  .fc-card { flex: 0 0 calc(25% - 8px); }
}

/* ── Mobile < 600px ─────────────────────────────────────────── */
@media (max-width: 599px) {
  .nav-center { display: none; }
  .user-name  { display: none; }
  .navbar { padding: 0 14px; height: 52px; }

  .dash-main { padding: 12px 12px 20px; gap: 12px; }
  .clock-section { padding: 20px 16px 14px; }

  .form-row { grid-template-columns: 1fr; }
  .fc-card  { flex: 0 0 calc(40% - 6px); }

  /* Login page */
  .login-wrapper     { padding: 28px 16px; gap: 20px; }
  .login-logo        { margin-bottom: 6px; }
  .login-logo img    { height: 48px; }
  .login-title       { font-size: 1.9rem; }
  .login-subtitle    { font-size: 0.82rem; }
  .login-card-inner  { padding: 22px; gap: 16px; }
  .card-heading      { font-size: 1.1rem; }
  .card-subheading   { font-size: 0.78rem; margin-top: -8px; }
  .login-btn         { padding: 12px; font-size: 0.94rem; }
  .theme-switcher-fixed { top: 10px; right: 10px; }
  .theme-switcher-fixed .theme-btn { width: 28px; height: 28px; font-size: 0.62rem; }
  .footer-inner      { font-size: 0.7rem; gap: 6px; }
}

/* ── Very small phones < 360px ────────────────────────────────── */
@media (max-width: 359px) {
  .login-wrapper    { padding: 20px 12px; gap: 16px; }
  .login-title      { font-size: 1.6rem; }
  .login-card-inner { padding: 16px; gap: 14px; }
  .footer-inner      { flex-direction: column; gap: 4px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
