/* =========================================================================
   Job Time Tracker — Theme
   Customize the app's look by editing the variables below.
   ========================================================================= */
:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #122033;
  --muted: #6b7686;
  --line: #e5eaf1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #16a34a;
  --green-dark: #15803d;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --nav: #0b1324;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --radius-sm: 11px;
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

a { text-decoration: none; color: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

/* ---------------------------------------------------------------------- */
/* Layout: sidebar + main                                                  */
/* ---------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  background: linear-gradient(180deg, var(--nav), #111c31);
  color: #fff;
  padding: 20px 14px 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand {
  padding: 6px 10px 10px;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.brand-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }

/* ---- Bangladesh clock widget (sidebar, analog only) -------------------- */
.bd-clock {
  width: 150px;
  height: 150px;
  margin: 8px auto 14px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bd-clock-face {
  display: block;
  width: 150px;
  height: 150px;
}
.bd-face-ring { fill: #0c1424; stroke: rgba(255, 255, 255, 0.28); stroke-width: 2.5; }
.bd-ticks line { stroke: rgba(255, 255, 255, 0.4); stroke-width: 2.5; stroke-linecap: round; }
.bd-numbers text {
  fill: #dbe3f3;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}
.bd-hand { stroke-linecap: round; fill: none; }
.bd-hand-hour { stroke: #fff; stroke-width: 6; }
.bd-hand-min { stroke: #fff; stroke-width: 4; }
.bd-hand-sec { stroke: #ef4444; stroke-width: 2; }
.bd-center-dot { fill: #ef4444; stroke: #0c1424; stroke-width: 1.5; }

.nav { display: flex; flex-direction: column; margin-top: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  margin: 2px 0;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-icon { width: 18px; text-align: center; opacity: 0.9; }
.nav a:hover { background: #1e2a42; color: #fff; }
.nav a.active { background: #1e2a42; color: #fff; box-shadow: inset 3px 0 0 var(--primary); }
.nav-section {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 13px 6px;
  font-weight: 700;
}

.main {
  margin-left: 252px;
  padding: 28px 30px 60px;
  max-width: 1600px;
}

.top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.top h1 { margin: 0; font-size: 27px; letter-spacing: -0.01em; }
.top p { margin: 6px 0 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tz-badge {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.user {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.avatar-fallback {
  display: grid;
  place-items: center;
  background: #eef2f7;
  font-size: 15px;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------------- */
/* Persistent mini timer (sidebar)                                        */
/* ---------------------------------------------------------------------- */
.mini-timer {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 4px 4px 14px;
}
.mini-timer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-clock {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.02em;
}
.mini-timer-actions { display: flex; gap: 6px; margin-top: 10px; }
.btn.sm { padding: 7px 10px; font-size: 12px; flex: 1; border-radius: 8px; }

/* ---------------------------------------------------------------------- */
/* Cards, grids, buttons                                                  */
/* ---------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.stat { position: relative; overflow: hidden; }
.stat::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #eff6ff;
}
.stat .label { font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.stat .value { font-size: 27px; font-weight: 800; margin-top: 8px; position: relative; z-index: 1; }
.status-value { display: flex; align-items: center; height: 34px; margin-top: 8px; }

.timer-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  margin-top: 18px;
}
.clock {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 12px 0;
}
.date { color: var(--muted); font-size: 13.5px; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #e8edf5;
  color: #172033;
  font-size: 13px;
  transition: filter 0.12s ease, transform 0.05s ease, box-shadow 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12); }
.btn:active:not(:disabled) { transform: translateY(1px); filter: brightness(0.97); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }

.btn.primary { background: var(--primary); color: #fff; } .btn.primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn.green   { background: var(--green); color: #fff; }   .btn.green:hover:not(:disabled)   { background: var(--green-dark); }
.btn.orange  { background: var(--orange); color: #fff; }  .btn.orange:hover:not(:disabled)  { background: var(--orange-dark); }
.btn.red     { background: var(--red); color: #fff; }     .btn.red:hover:not(:disabled)     { background: var(--red-dark); }
.btn.purple  { background: var(--purple); color: #fff; }  .btn.purple:hover:not(:disabled)  { background: var(--purple-dark); }
.btn.dark    { background: #172033; color: #fff; }         .btn.dark:hover:not(:disabled)    { background: #0b1220; }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.status-pill.running  { background: #dcfce7; color: #166534; }
.status-pill.paused   { background: #fef3c7; color: #92400e; }
.status-pill.completed{ background: #dbeafe; color: #1e40af; }
.status-pill.idle     { background: #eef2f7; color: #475569; }
.status-pill.running::before { content: "●"; margin-right: 5px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.quick { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

h2 { font-size: 17.5px; margin: 0 0 15px; }
p { color: var(--muted); }

/* ---------------------------------------------------------------------- */
/* Forms                                                                  */
/* ---------------------------------------------------------------------- */
label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 6px; color: #334155; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d7dee9;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #b9c4d6; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
input:disabled, select:disabled, textarea:disabled { background: #f4f6f9; color: var(--muted); }
textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.full { grid-column: 1 / -1; }
.hint { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.checkbox-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #475569; }
.checkbox-row input { width: auto; }

.weekday-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.weekday-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafcff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.weekday-chip:hover { border-color: #b9c4d6; }
.weekday-chip input { width: auto; margin: 0; }
.weekday-chip:has(input:checked) { background: #eff6ff; border-color: var(--primary); color: var(--primary-dark); }

/* ---------------------------------------------------------------------- */
/* Tables                                                                 */
/* ---------------------------------------------------------------------- */
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
td.wrap-cell { white-space: normal; min-width: 180px; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; }
tbody tr:hover { background: #fafcff; }
.day-row td { font-weight: 600; }

.status-working-day  { background: #f0fdf4; }
.status-weekend       { background: #f8fafc; }
.status-govt-holiday  { background: #fff7ed; }
.status-casual-leave  { background: #f5f3ff; }
.status-sick-leave    { background: #fff1f2; }
.status-absent        { background: #fef2f2; }

.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #94a3b8; }
.status-working-day .status-dot { background: #16a34a; }
.status-weekend .status-dot { background: #64748b; }
.status-govt-holiday .status-dot { background: #f59e0b; }
.status-casual-leave .status-dot { background: #7c3aed; }
.status-sick-leave .status-dot { background: #e11d48; }
.status-absent .status-dot { background: #dc2626; }

/* ---------------------------------------------------------------------- */
/* History / filters / charts                                            */
/* ---------------------------------------------------------------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters > div { min-width: 150px; }
.range-buttons { display: flex; gap: 7px; flex-wrap: wrap; }
.range-buttons a { padding: 9px 12px; border-radius: 9px; background: #eef2f7; font-size: 12px; font-weight: 700; transition: background 0.12s ease; }
.range-buttons a:hover { background: #e2e8f4; }
.range-buttons a.active { background: #dbeafe; color: #1d4ed8; }

.summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0; }
.mini { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafcff; }
.mini small { color: var(--muted); display: block; }
.mini b { font-size: 19px; display: block; margin-top: 4px; }

.chart { height: 210px; display: flex; align-items: flex-end; gap: 6px; padding: 15px 5px 0; overflow-x: auto; }
.bar-wrap { flex: 1; min-width: 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar { width: 100%; max-width: 26px; background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 6px 6px 2px 2px; min-height: 2px; transition: filter 0.12s ease; }
.bar-wrap:hover .bar { filter: brightness(1.12); }
.bar-label, .bar-hours { font-size: 9px; color: var(--muted); }
.bar-hours { font-weight: 800; }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 30px 15px;
  font-size: 13.5px;
  background: #fafcff;
  border: 1px dashed var(--line);
  border-radius: 13px;
}

/* ---------------------------------------------------------------------- */
/* Profile                                                                */
/* ---------------------------------------------------------------------- */
.profile-head { display: flex; gap: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.profile-photo { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; background: #eef2f7; border: 1px solid var(--line); }
.profile-photo-fallback { display: grid; place-items: center; font-size: 34px; }
.company-logo { max-width: 180px; max-height: 66px; object-fit: contain; margin-top: 8px; }
.drop { border: 1px dashed #c8d2e2; padding: 14px; border-radius: 12px; background: #fafcff; }

/* ---------------------------------------------------------------------- */
/* Alerts & toasts                                                       */
/* ---------------------------------------------------------------------- */
.alert { padding: 12px 15px; border-radius: 11px; background: #eff6ff; color: #1e40af; margin-bottom: 15px; font-size: 13.5px; font-weight: 500; }
.alert.success { background: #ecfdf5; color: #166534; }
.alert.error { background: #fef2f2; color: #991b1b; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #111827;
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  display: none;
  z-index: 50;
  max-width: 320px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: toast-in 0.18s ease;
}
.toast.error { background: #7f1d1d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.help { background: #f8fafc; border: 1px solid var(--line); padding: 15px; border-radius: 12px; color: #475569; font-size: 13px; }

/* ---------------------------------------------------------------------- */
/* Auth pages (login / setup)                                            */
/* ---------------------------------------------------------------------- */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, #eaf1ff 0%, var(--bg) 55%);
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
}
.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-card p { margin: 0 0 20px; }
.auth-card label { margin-top: 4px; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                            */
/* ---------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.25);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 70px 18px 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 650px) {
  .grid, .form-grid, .summary-grid { grid-template-columns: 1fr; }
  .top { align-items: flex-start; flex-direction: column; }
  .timer-card { grid-template-columns: 1fr; }
  .clock { font-size: 44px; }
  .card { padding: 16px; }
  .quick { align-items: flex-start; flex-direction: column; }
  th, td { font-size: 12px; padding: 9px; }
}

@media (max-width: 420px) {
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================
   LIVE CALENDAR - DASHBOARD
   Add this at the VERY BOTTOM of style.css
   ========================================================= */

.live-calendar {
  width: 100%;
  min-width: 0;
}

/* ---------------------------------------------------------
   Calendar Header
   --------------------------------------------------------- */

.calendar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-heading {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.calendar-date-today {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}


/* ---------------------------------------------------------
   Today Button
   --------------------------------------------------------- */

.calendar-today-btn {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.18s ease;
}

.calendar-today-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.calendar-today-btn:active {
  transform: translateY(0);
}


/* ---------------------------------------------------------
   Month Navigation
   --------------------------------------------------------- */

.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-month-name {
  flex: 1;
  text-align: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.calendar-arrow {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
  transition: 0.18s ease;
}

.calendar-arrow:hover {
  background: #eef2f7;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.calendar-arrow:active {
  transform: translateY(0);
}


/* ---------------------------------------------------------
   Weekday Header
   --------------------------------------------------------- */

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 5px;
}

.calendar-weekday {
  min-width: 0;
  text-align: center;
  padding: 5px 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}


/* ---------------------------------------------------------
   Calendar Days
   --------------------------------------------------------- */

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  min-width: 0;
  min-height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: #f8fafc;
  color: var(--ink);

  font-size: 11px;
  font-weight: 600;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}


/* Empty cells */

.calendar-day.empty {
  background: transparent;
}


/* Normal days */

.calendar-day.normal:hover {
  background: #eef4ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}


/* ---------------------------------------------------------
   Friday + Saturday = Weekend
   --------------------------------------------------------- */

.calendar-day.weekend {
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
}


/* Weekend hover */

.calendar-day.weekend:hover {
  background: #ffe4e6;
  transform: translateY(-1px);
}


/* ---------------------------------------------------------
   TODAY
   --------------------------------------------------------- */

.calendar-day.today {
  background: var(--primary);
  color: #fff;
  font-weight: 800;

  box-shadow:
    0 3px 8px rgba(37, 99, 235, 0.25);
}


/* Today hover */

.calendar-day.today:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}


/* ---------------------------------------------------------
   Today + Weekend
   --------------------------------------------------------- */

.calendar-day.today.weekend {
  background: var(--red);
  color: #fff;

  box-shadow:
    0 3px 8px rgba(220, 38, 38, 0.25);
}


/* ---------------------------------------------------------
   Calendar Bottom
   --------------------------------------------------------- */

.calendar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-top: 12px;
  padding-top: 10px;

  border-top: 1px solid var(--line);
}

.calendar-current-date {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}


/* ---------------------------------------------------------
   Legend
   --------------------------------------------------------- */

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;

  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.calendar-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  display: inline-block;

  border-radius: 50%;
}

.calendar-dot.today {
  background: var(--primary);
}

.calendar-dot.weekend {
  background: var(--red);
}


/* =========================================================
   CALENDAR RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

  .calendar-heading {
    font-size: 16px;
  }

  .calendar-month-name {
    font-size: 16px;
  }

  .calendar-day {
    min-height: 30px;
    font-size: 10px;
  }

  .calendar-weekday {
    font-size: 8px;
  }

  .calendar-today-btn {
    padding: 7px 10px;
    font-size: 10px;
  }

  .calendar-current-date {
    font-size: 9px;
  }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 420px) {

  .calendar-top {
    gap: 8px;
  }

  .calendar-heading {
    font-size: 15px;
  }

  .calendar-date-today {
    font-size: 10px;
  }

  .calendar-month-name {
    font-size: 15px;
  }

  .calendar-arrow {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    font-size: 20px;
  }

  .calendar-day {
    min-height: 27px;
    border-radius: 6px;
  }

  .calendar-bottom {
    align-items: flex-start;
  }

  .calendar-legend {
    gap: 6px;
  }

}

/* =========================================================
   TIME PERIOD BUTTON COLORS
   ========================================================= */

.calendar-today-btn {
  transition:
    background 0.6s ease,
    box-shadow 0.6s ease,
    transform 0.2s ease;
}


/* Morning - Sunrise */

.calendar-today-btn.morning {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}


/* Midday - Bright Sky */

.calendar-today-btn.midday {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}


/* Afternoon - Warm Sun */

.calendar-today-btn.afternoon {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
}


/* Evening - Sunset */

.calendar-today-btn.evening {
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}


/* Night - Moonlight */

.calendar-today-btn.night {
  background: linear-gradient(135deg, #3730a3, #1e40af);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}


/* Midnight - Deep Night */

.calendar-today-btn.midnight {
  background: linear-gradient(135deg, #0f172a, #312e81);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}


/* Keep text clean */

.calendar-today-btn {
  color: #fff;
  border: none;
  font-weight: 700;
}


/* Small hover effect */

.calendar-today-btn:hover {
  transform: translateY(-1px);
}

.calendar-today-btn:active {
  transform: translateY(0);
}

/* =========================================================
   DAILY REPORT — matches existing app components
   (.card, .btn, .form-grid, .alert are already defined above;
   this only adds the few report-specific tweaks.)
   ========================================================= */

.report-card {
  max-width: 900px;
  margin: 0 auto;
}

.report-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.alert.warning { background: #fffbeb; color: #92400e; }

.report-card label { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.report-card .form-grid { row-gap: 20px; }
label .req { color: var(--red); margin-left: 2px; }

.report-date-finder {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.report-date-finder > div { min-width: 200px; flex: 1; }
.report-date-finder label { margin-bottom: 6px; }

.report-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 650px) {
  .report-toolbar .btn { flex: 1 1 auto; justify-content: center; }
  .report-footer .btn { width: 100%; justify-content: center; }
}