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

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #EEF2FF;
  --work: #3B82F6;
  --work-bg: rgba(59,130,246,0.08);
  --pleasure: #22C55E;
  --pleasure-bg: rgba(34,197,94,0.08);
  --text: #1E293B;
  --text-2: #64748B;
  --bg: #F1F5F9;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ── LOGIN ─────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 60%, #4338CA 100%);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(79,70,229,0.25);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.logo-name span { color: var(--primary); }

.login-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.login-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #EF4444;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── FORMS ─────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #94A3B8; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── BUTTONS ───────────────────────────────── */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary.btn-full { width: 100%; padding: 13px; font-size: 15px; }

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s;
}
.btn-secondary:hover { border-color: #94A3B8; }

.btn-danger {
  background: #FEF2F2;
  color: #EF4444;
  border: 1.5px solid #FECACA;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-danger:hover { background: #FEE2E2; border-color: #FCA5A5; }

/* ── APP LAYOUT ────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: 20% 40% 40%;
  height: 100vh;
  overflow: hidden;
}

/* grid children fill full viewport height */
.app-layout > * { height: 100vh; }

/* ── SIDEBAR ───────────────────────────────── */
.nav-sidebar {
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

.nav-header {
  background: linear-gradient(160deg, #3730A3 0%, #4F46E5 100%);
  padding: 22px 18px 20px;
  min-height: 22%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

/* Row wrapping logo + username (used on mobile) */
.nav-top-row {
  display: contents; /* transparent on desktop — children behave as direct nav-header children */
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-logo .logo-badge {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 9px;
  font-size: 12px;
}

.nav-logo .logo-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
}
.nav-logo .logo-name span { color: rgba(255,255,255,0.7); }

.nav-username {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.nav-username strong {
  display: block;
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary-dark);
  border: none;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.btn-add:hover { background: #EEF2FF; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-add:active { transform: translateY(1px); }

.btn-add-icon {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-links {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .15s;
  user-select: none;
}
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-link.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.nav-icon { display: flex; align-items: center; justify-content: center; width: 20px; flex-shrink: 0; }

.nav-bottom {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  transition: color .15s;
}
.btn-logout:hover { color: #EF4444; }

/* ── MAIN CONTENT ──────────────────────────── */
.main-content {
  background: var(--bg);
  overflow-y: auto;
  padding: 28px 24px;
  height: 100vh;
  box-sizing: border-box;
}

.main-content--calendar {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.content-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.content-header h1 { font-size: 21px; font-weight: 700; }
.today-full { font-size: 13px; color: var(--text-2); }

/* ── MINI CALENDAR ─────────────────────────── */
.mini-calendar {
  background: white;
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mini-cal-header span { font-size: 13px; font-weight: 600; }

.mini-cal-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 15px;
  line-height: 1;
  transition: background .15s;
}
.mini-cal-nav:hover { background: var(--bg); }

.mini-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.mini-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 4px 6px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  background: white;
  border: 1.5px solid var(--border);
}
.mini-day:hover { border-color: var(--primary); box-shadow: 0 2px 6px rgba(79,70,229,0.1); }
.mini-day.selected:not(.today) { border-color: var(--primary); background: var(--primary-light); }
.mini-day.today { border-color: var(--primary); background: var(--primary); }

.day-label { font-size: 9px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.3px; }
.mini-day.today .day-label { color: rgba(255,255,255,0.75); }

.day-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.mini-day.today .day-num { color: white; font-weight: 700; }
.mini-day.selected:not(.today) .day-num { color: var(--primary); }

.day-dots { display: flex; gap: 2px; height: 5px; align-items: center; }
.day-dot { width: 4px; height: 4px; border-radius: 50%; }
.day-dot.work { background: var(--work); }
.day-dot.pleasure { background: var(--pleasure); }

/* ── TASK LIST ─────────────────────────────── */
.tasks-card {
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tasks-card-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.tasks-card-header h2 { font-size: 14px; font-weight: 600; }
.tasks-date-label { font-size: 12px; color: var(--text-2); }

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  transition: background .1s;
  cursor: default;
}
.task-item:hover { background: #FAFAFA; }
.task-item + .task-item { border-top: 1px solid #F8FAFC; }

.task-checkbox {
  width: 22px;
  height: 22px;
  border: 2.5px solid #CBD5E1;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  background: white;
}
.task-checkbox:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.task-item.work .task-checkbox { border-color: var(--work); }
.task-item.pleasure .task-checkbox { border-color: var(--pleasure); }
.task-item.done .task-checkbox { background: #10B981; border-color: #10B981; }
.task-item.done .task-checkbox::after { content: '✓'; color: white; font-size: 13px; font-weight: 700; }

.task-item.work    { background: var(--work-bg);    border-left: 3px solid var(--work);    padding-left: 17px; }
.task-item.pleasure{ background: var(--pleasure-bg); border-left: 3px solid var(--pleasure); padding-left: 17px; }

.task-name { flex: 1; font-size: 14px; color: var(--text); transition: all .2s; cursor: pointer; }
.task-name:hover { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.task-item.done .task-name { text-decoration: line-through; color: #94A3B8; cursor: default; }

.task-time { font-size: 12px; color: var(--text-2); flex-shrink: 0; }

.tasks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  color: var(--text-2);
  gap: 6px;
  text-align: center;
}
.empty-icon { font-size: 36px; opacity: 0.35; line-height: 1; margin-bottom: 4px; }
.tasks-empty p { font-size: 13px; }
.tasks-empty small { font-size: 12px; opacity: 0.7; }

/* ── RIGHT PANEL ───────────────────────────── */
.right-panel {
  background: var(--bg);
  border-left: 1px solid var(--border);
}

/* ── CALENDAR PAGE ─────────────────────────── */
#calendarView {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cal-page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.cal-page-header h1 { font-size: 21px; font-weight: 700; flex: 1; }

.cal-nav-btn {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s, color .15s;
}
.cal-nav-btn:hover { border-color: var(--primary); color: var(--primary); }

.cal-grid {
  flex: 1;
  min-height: 0;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.cal-weekdays {
  display: flex;
  background: #F8FAFC;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}
.cal-weekday {
  flex: 1;
  padding: 11px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* calendar body = flex column of week rows */
.cal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* each week row fills equal share of height */
.cal-week {
  flex: 1;
  display: flex;
  min-height: 0;
  border-top: 1px solid var(--border);
}

.cal-day {
  flex: 1;
  min-width: 0;
  padding: 7px 6px 4px;
  border-right: 1px solid var(--border);
  transition: background .1s;
  background: white;
  overflow: hidden;
}
.cal-day:last-child { border-right: none; }
.cal-day:hover { background: #F8FAFF; }
.cal-day.today { background: #F5F3FF; }
.cal-day.other-month { background: #FAFAFA; }
.cal-day.other-month .cal-day-num { color: #CBD5E1; }

.cal-day-num {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.cal-day.today .cal-day-num { background: var(--primary); color: white; }

.cal-event {
  display: flex;
  border-radius: 4px;
  margin-bottom: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity .1s;
  min-width: 0;
}
.cal-event:hover { opacity: 0.8; }

.cal-event-bar { width: 3px; flex-shrink: 0; }
.cal-event-bar.work { background: var(--work); }
.cal-event-bar.pleasure { background: var(--pleasure); }

.cal-event-label {
  padding: 2px 5px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  line-height: 1.5;
  min-width: 0;
}
.cal-event.work .cal-event-label { background: var(--work-bg); color: #1E40AF; }
.cal-event.pleasure .cal-event-label { background: var(--pleasure-bg); color: #166534; }

.cal-more {
  font-size: 11px;
  color: #94A3B8;
  padding: 1px 4px;
  margin-top: 1px;
  font-weight: 500;
}

.tasks-more {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
}

/* ── MODAL ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.modal {
  background: white;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  max-height: 92vh;
  overflow-y: auto;
  animation: modalIn .18s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  z-index: 1;
}
.modal-header h2 { font-size: 17px; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-2);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.modal-close:hover { color: var(--text); background: var(--bg); }

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.type-selector { display: flex; gap: 10px; }

.type-option { flex: 1; cursor: pointer; }
.type-option input[type="radio"] { display: none; }

.type-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  cursor: pointer;
}
.type-badge::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.type-badge.work::before { background: var(--work); }
.type-badge.pleasure::before { background: var(--pleasure); }

.type-option input:checked + .type-badge.work { border-color: var(--work); background: rgba(59,130,246,0.06); color: #1E40AF; }
.type-option input:checked + .type-badge.pleasure { border-color: var(--pleasure); background: rgba(34,197,94,0.06); color: #166534; }

.file-input-wrap {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
  font-size: 13px;
  color: var(--text-2);
}
.file-input-wrap:hover { border-color: var(--primary); color: var(--primary); }
.file-input-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* ── MOBILE DRAWER ─────────────────────────── */

/* Hamburger button — hidden on desktop, shown on mobile */
.hamburger-btn {
  display: none;
}

/* Drawer backdrop */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 1999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.drawer-backdrop.open { display: block; }

/* Drawer panel */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: white;
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-drawer.open { transform: translateX(0); }

/* Drawer header (colored gradient, same as sidebar) */
.drawer-header {
  background: linear-gradient(160deg, #3730A3 0%, #4F46E5 100%);
  padding: 22px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-header .nav-logo .logo-badge {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 9px;
  font-size: 12px;
}
.drawer-header .nav-logo .logo-name { color: white; font-size: 15px; font-weight: 700; }
.drawer-header .nav-logo .logo-name span { color: rgba(255,255,255,0.7); }

.drawer-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.drawer-close:hover { background: rgba(255,255,255,0.28); }

/* Drawer nav links */
.drawer-links {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .15s;
  user-select: none;
}
.drawer-link:hover { background: var(--bg); color: var(--text); }
.drawer-link.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

/* Drawer bottom (logout) */
.drawer-bottom {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 220px 1fr; }
  .right-panel { display: none; }
}

@media (max-width: 640px) {
  /* Layout: sidebar on top, content below — single column, auto height */
  .app-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
  }

  /* Sidebar becomes a sticky top bar */
  .nav-sidebar {
    height: auto !important;
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  /* Header compact */
  .nav-header {
    min-height: auto;
    padding: 10px 14px 12px;
    gap: 10px;
    justify-content: flex-start;
  }

  /* Top row: hamburger | logo (centered) | username */
  .nav-top-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  /* Hamburger button */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    padding: 7px 8px;
    border-radius: 7px;
    flex-shrink: 0;
    transition: background .15s;
  }
  .hamburger-btn:hover { background: rgba(255,255,255,0.25); }
  .hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
  }

  /* Logo centered in remaining space */
  .nav-top-row .nav-logo {
    flex: 1;
    justify-content: center;
  }

  /* Username right-aligned, smaller */
  .nav-username {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
  }
  .nav-username strong {
    display: inline;
    font-size: 13px;
    font-weight: 600;
    margin-top: 0;
  }

  /* "Dodaj aktywność" full width below top row */
  .btn-add {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
  }

  /* Hide sidebar nav links — navigation is via drawer */
  .nav-links { display: none; }
  .nav-bottom { display: none; }

  /* Right panel hidden */
  .right-panel { display: none; }

  /* Main content */
  .main-content { padding: 14px 16px; height: auto !important; }

  /* Calendar on mobile: block layout + scrollable (not full-height flex) */
  .main-content--calendar {
    overflow-y: auto !important;
    display: block !important;
    padding: 14px 16px !important;
  }
  #calendarView {
    flex: none;
    height: auto;
  }
  .cal-page-header { margin-bottom: 12px; }
  .cal-grid {
    flex: none;
    height: auto;
    overflow: visible;
  }
  .cal-body { flex: none; height: auto; }
  .cal-week { flex: none; min-height: 72px; }
  .cal-day { min-height: 72px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Mini calendar compact */
  .mini-cal-days { gap: 3px; }
  .mini-day { padding: 5px 2px; }
  .day-num { width: 24px; height: 24px; font-size: 12px; }
}
