/* ============================================================
   ACE ENVIRONMENTAL SERVICES – CRM Mobile App
   Shared Stylesheet
   ============================================================ */

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

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

:root {
  --g1: #133d13;
  --g2: #1e6b1e;
  --g3: #2e9b2e;
  --g4: #4fc14f;
  --g5: #e7f5e7;
  --dark: #0d240d;
  --text: #1a301a;
  --muted: #5e7d5e;
  --white: #ffffff;
  --border: #c3e2c3;
  --card: #f3faf3;
  --amber: #e07c00;
  --red: #d32f2f;
  --blue: #1565c0;
  --shadow: 0 4px 20px rgba(20, 80, 20, 0.12);
  --shadow-lg: 0 8px 32px rgba(20, 80, 20, 0.18);
  --font-display: 'Nunito', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body {
  background: linear-gradient(135deg, #d4edda 0%, #a8d5b5 50%, #7bbf8e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  padding: 30px 16px;
}

/* ── PHONE FRAME ── */
.phone-outer {
  width: 375px;
  background: #111;
  border-radius: 50px;
  padding: 14px;
  box-shadow: 0 0 0 2px #2a2a2a, 0 40px 100px rgba(0,0,0,0.55), inset 0 0 0 1px #333;
  position: relative;
  flex-shrink: 0;
}

.notch {
  width: 110px;
  height: 30px;
  background: #111;
  border-radius: 0 0 20px 20px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nc {
  width: 11px;
  height: 11px;
  background: #0a0a0a;
  border-radius: 50%;
  border: 1.5px solid #2a2a2a;
}

.phone-screen {
  background: #fff;
  border-radius: 38px;
  overflow: hidden;
  height: 720px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── STATUS BAR ── */
.status-bar {
  background: #fff;
  padding: 38px 22px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  z-index: 10;
}

.status-bar.dark {
  background: transparent;
  color: #fff;
}

.sicons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.sicons svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ── SCROLLABLE BODY ── */
.sbody {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.sbody::-webkit-scrollbar { display: none; }

/* ── BOTTOM NAV ── */
.bnav {
  background: #fff;
  border-top: 1.5px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 4px 12px;
  flex-shrink: 0;
}

.ni {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 12px;
  transition: all 0.15s;
  text-decoration: none;
}

.ni svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.15s;
}

.ni span {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}

.ni.on { background: var(--g5); }
.ni.on svg { stroke: var(--g2); }
.ni.on span { color: var(--g2); }

.ni:hover { background: var(--g5); }
.ni:hover svg { stroke: var(--g2); }
.ni:hover span { color: var(--g2); }

/* ── APP HEADER ── */
.app-header {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  padding: 12px 18px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.app-header-left { display: flex; flex-direction: column; }
.app-header-left .greet { font-size: 0.68rem; color: rgba(255,255,255,0.7); }
.app-header-left .uname {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.app-header-right { display: flex; gap: 10px; align-items: center; }

.notif-btn {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.notif-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.nbadge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: #f44336;
  border-radius: 50%;
  border: 1.5px solid var(--g2);
}

.avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

/* ── INNER HEADER ── */
.inner-header {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}

.back-btn {
  width: 32px;
  height: 32px;
  background: var(--g5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

.back-btn:hover { background: var(--border); }

.back-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--g2);
  fill: none;
  stroke-width: 2.5;
}

.inner-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
}

.add-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.add-btn:hover { opacity: 0.85; }

.add-btn svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
}

/* ── SEARCH BAR ── */
.search-bar {
  margin: 10px 14px 0;
  background: var(--g5);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.search-bar:focus-within { border-color: var(--g3); }

.search-bar svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  font-size: 0.78rem;
  color: var(--dark);
  font-family: var(--font-body);
  flex: 1;
}

.search-bar input::placeholder { color: var(--muted); }

/* ── PADDING WRAPPER ── */
.pad {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── SECTION TITLE ── */
.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--dark);
  letter-spacing: 0.5px;
}

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 13px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.stat-card.green::before { background: var(--g2); }
.stat-card.amber::before { background: var(--amber); }
.stat-card.blue::before  { background: var(--blue); }
.stat-card.red::before   { background: var(--red); }

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke-width: 2;
}

.stat-icon.green { background: var(--g5); }
.stat-icon.green svg { stroke: var(--g2); }
.stat-icon.amber { background: #fff3e0; }
.stat-icon.amber svg { stroke: var(--amber); }
.stat-icon.blue  { background: #e8f0fe; }
.stat-icon.blue svg  { stroke: var(--blue); }
.stat-icon.red   { background: #ffebee; }
.stat-icon.red svg   { stroke: var(--red); }

.stat-label { font-size: 0.63rem; color: var(--muted); font-weight: 500; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--dark);
}
.stat-sub  { font-size: 0.6rem; color: var(--muted); }
.stat-week { font-size: 0.63rem; font-weight: 600; color: var(--g2); }
.stat-week.red { color: var(--red); }
.stat-view { font-size: 0.63rem; color: var(--g2); font-weight: 700; margin-top: auto; }

/* ── QUICK ACTIONS ── */
.qa-row { display: flex; gap: 8px; }

.qa-btn {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 11px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.qa-btn:hover {
  background: var(--g5);
  border-color: var(--g3);
}

.qa-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--g2);
  fill: none;
  stroke-width: 2;
}

.qa-btn span {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
}

/* ── TASK CARDS ── */
.task-card {
  background: #fff;
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 2px 10px rgba(20,80,20,0.07);
  border: 1px solid var(--border);
}

.task-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.task-check.done {
  background: var(--g2);
  border-color: var(--g2);
}

.task-check.done svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
}

.task-info { flex: 1; }
.task-name { font-weight: 600; font-size: 0.81rem; color: var(--dark); margin-bottom: 1px; }
.task-name.done { text-decoration: line-through; opacity: 0.5; }
.task-due  { font-size: 0.63rem; color: var(--muted); }

.task-badge { font-size: 0.6rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.tbh { background: #ffebee; color: var(--red); }
.tbm { background: #fff3e0; color: var(--amber); }
.tbl { background: var(--g5); color: var(--g2); }

/* ── CALENDAR DAY STRIP ── */
.cal-strip {
  display: flex;
  gap: 6px;
  padding: 14px 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.cal-strip::-webkit-scrollbar { display: none; }

.cal-day {
  min-width: 44px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  text-decoration: none;
}

.cal-day:hover { border-color: var(--g3); }

.cal-day.active {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-color: transparent;
}

.cal-day-wd { font-size: 0.6rem; font-weight: 700; color: var(--muted); }
.cal-day.active .cal-day-wd { color: rgba(255,255,255,0.7); }

.cal-day-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--dark);
}

.cal-day.active .cal-day-num { color: #fff; }

.cal-dot {
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 50%;
}

/* ── APPOINTMENT CARDS ── */
.apt-card {
  background: #fff;
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 2px 10px rgba(20,80,20,0.07);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.apt-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}

.apt-time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--g1);
}

.apt-ampm { font-size: 0.58rem; color: var(--muted); }

.apt-divider {
  width: 2px;
  align-self: stretch;
  background: var(--g4);
  border-radius: 2px;
}

.apt-info { flex: 1; }
.apt-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.81rem;
  color: var(--dark);
  margin-bottom: 1px;
}
.apt-client { font-size: 0.66rem; color: var(--muted); }

.apt-badge { font-size: 0.58rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.ab-call { background: #e8f0fe; color: var(--blue); }
.ab-meet { background: var(--g5); color: var(--g2); }
.ab-insp { background: #fff3e0; color: var(--amber); }

/* ── FORM STYLES ── */
.form-pad { padding: 14px; display: flex; flex-direction: column; gap: 11px; }

.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dark);
  display: block;
}

.type-row, .prio-row { display: flex; gap: 7px; }

.type-chip {
  flex: 1;
  padding: 9px 4px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.type-chip.active, .type-chip:hover {
  background: var(--g5);
  border-color: var(--g2);
  color: var(--g2);
}

.prio-chip {
  flex: 1;
  padding: 8px 4px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.63rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
}

.prio-chip.active { filter: brightness(0.88); transform: scale(1.04); }
.ph { background: #ffebee; color: var(--red);   border-color: #ffcdd2; }
.pm { background: #fff3e0; color: var(--amber);  border-color: #ffe082; }
.pl { background: var(--g5); color: var(--g2);   border-color: var(--border); }

.form-input {
  background: var(--g5);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.form-input:focus-within { border-color: var(--g3); }

.form-input svg {
  width: 14px;
  height: 14px;
  stroke: var(--g2);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.form-input input,
.form-input select,
.form-input textarea {
  background: none;
  border: none;
  outline: none;
  font-size: 0.8rem;
  color: var(--dark);
  font-family: var(--font-body);
  flex: 1;
}

.form-input input::placeholder,
.form-input textarea::placeholder { color: var(--muted); }

.form-input.textarea-wrap { align-items: flex-start; padding-top: 11px; }
.form-input textarea { height: 52px; resize: none; }

.save-btn {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(20,80,20,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  width: 100%;
}

.save-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.save-btn svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ── REPORT CARDS ── */
.report-card {
  background: #fff;
  border-radius: 16px;
  padding: 13px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.report-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.report-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--dark);
  max-width: 165px;
}

.pay-badge { font-size: 0.6rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.paid    { background: var(--g5);  color: var(--g2); }
.unpaid  { background: #ffebee;    color: var(--red); }

.report-client { font-size: 0.68rem; color: var(--muted); margin-bottom: 9px; }

.report-actions { display: flex; gap: 6px; }

.r-btn {
  flex: 1;
  padding: 7px 3px;
  border-radius: 10px;
  border: none;
  font-size: 0.63rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: filter 0.15s;
}

.r-btn:hover { filter: brightness(0.92); }
.r-btn svg   { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }

.rb-view     { background: var(--g5);   color: var(--g2); }
.rb-share    { background: #e8f0fe;     color: var(--blue); }
.rb-download { background: #e8f0fe;     color: var(--blue); }
.rb-disabled { background: #f5f5f5;     color: #bbb; cursor: not-allowed !important; }

.report-note {
  font-size: 0.63rem;
  color: var(--muted);
  font-style: italic;
  padding: 4px 2px;
}

/* ── PROPOSAL CARDS ── */
.proposal-card {
  background: #fff;
  border-radius: 16px;
  padding: 13px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.prop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.prop-id {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--g2);
}

.status-badge { font-size: 0.6rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.st-sent     { background: #e8f0fe; color: var(--blue); }
.st-approved { background: var(--g5); color: var(--g2); }
.st-pending  { background: #fff3e0; color: var(--amber); }

.prop-subject {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.prop-meta { display: flex; justify-content: space-between; align-items: flex-end; }
.prop-info { font-size: 0.66rem; color: var(--muted); }
.prop-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--dark);
}

.prop-footer {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
}

.p-btn {
  flex: 1;
  padding: 7px;
  border-radius: 10px;
  border: none;
  font-size: 0.63rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}

.p-btn:hover { filter: brightness(0.92); }
.pe { background: #fff3e0; color: var(--amber); }
.pv { background: var(--g5);   color: var(--g2); }
.pd { background: #ffebee;     color: var(--red); }

/* ── CLIENT CARDS ── */
.client-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 2px 10px rgba(20,80,20,0.07);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.15s;
  text-decoration: none;
}

.client-card:hover { transform: translateX(3px); }

.client-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.client-info { flex: 1; }
.client-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--dark);
}

.client-email { font-size: 0.65rem; color: var(--muted); }

.client-tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--g5);
  color: var(--g2);
}

/* ── PROFILE ── */
.profile-header {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  padding: 20px 18px 28px;
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 10px;
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.profile-role { font-size: 0.72rem; color: rgba(255,255,255,0.7); }

.profile-row {
  background: #fff;
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(20,80,20,0.07);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.15s;
  text-decoration: none;
}

.profile-row:hover { transform: translateX(3px); }

.profile-row svg {
  width: 20px;
  height: 20px;
  stroke: var(--g2);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.profile-row-label { font-size: 0.82rem; font-weight: 600; color: var(--dark); flex: 1; }

.profile-row .arrow svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

.profile-row.danger { border-color: #ffcdd2; }
.profile-row.danger svg { stroke: var(--red); }
.profile-row.danger .profile-row-label { color: var(--red); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--g1);
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── LOGIN PAGE ── */
.login-bg {
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 55%, var(--g5) 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 24px;
  overflow-y: auto;
}

.login-logo-box {
  width: 220px;
  height: 68px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.login-logo-box img { width: 100%; height: 100%; object-fit: contain; }

.login-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: 4px;
}

.login-brand-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 26px 20px 20px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.login-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
}

.login-card p { font-size: 0.75rem; color: var(--muted); margin-bottom: 18px; }

.field-group { margin-bottom: 13px; }

.field-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
}

.field-input {
  background: var(--g5);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s;
}

.field-input:focus-within { border-color: var(--g3); }

.field-input svg {
  width: 15px;
  height: 15px;
  stroke: var(--g2);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.field-input input {
  background: none;
  border: none;
  outline: none;
  font-size: 0.82rem;
  color: var(--dark);
  font-family: var(--font-body);
  flex: 1;
}

.field-input input::placeholder { color: var(--muted); }

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(20,80,20,0.3);
  margin-top: 4px;
  transition: all 0.2s;
}

.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }

.forgot-link {
  text-align: center;
  margin-top: 12px;
  font-size: 0.73rem;
  color: var(--g2);
  font-weight: 700;
  cursor: pointer;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state svg {
  width: 40px;
  height: 40px;
  stroke: var(--border);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 10px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen-enter { animation: fadeUp 0.22s ease; }

/* ── HAMBURGER / DRAWER ── */
.ham-btn {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; flex-shrink: 0;
  border: none;
}
.ham-btn span {
  display: block; width: 16px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.25s;
}

.drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 100; opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  border-radius: 38px;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 72%; background: #fff;
  z-index: 101; border-radius: 38px 0 0 38px;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  padding: 44px 18px 18px;
  display: flex; align-items: center; gap: 12px;
}
.drawer-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1rem; color: #fff; flex-shrink: 0;
}
.drawer-name { font-family:var(--font-display); font-weight:800; font-size:0.95rem; color:#fff; }
.drawer-role { font-size:0.65rem; color:rgba(255,255,255,0.7); }

.drawer-body { flex:1; overflow-y:auto; padding:10px 0; }

.drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.drawer-item:hover { background: var(--g5); }
.drawer-item.active { background: var(--g5); border-left-color: var(--g2); }

.drawer-item svg {
  width: 19px; height: 19px; stroke: var(--muted);
  fill: none; stroke-width: 2; flex-shrink: 0;
}
.drawer-item.active svg { stroke: var(--g2); }

.drawer-item span {
  font-size: 0.84rem; font-weight: 600; color: var(--dark);
}
.drawer-item.active span { color: var(--g2); }

.drawer-item.danger svg { stroke: var(--red); }
.drawer-item.danger span { color: var(--red); }

.drawer-divider {
  height: 1px; background: var(--border);
  margin: 6px 18px;
}
