/* ============================================================
   HEWIE ADMIN — Complete Stylesheet (v2.0)
   This REPLACES the old style.css and style-new.css entirely.
   Load ONLY this file (after Bootstrap + Font Awesome).
   Clean cascade → no !important wars, no legacy clashes.
   ============================================================ */

:root {
  --primary: #2f8f82;
  --primary-dark: #26766b;
  --primary-soft: #e7f2f0;
  --navy: #26314e;
  --navy-soft: #f2f4f8;
  --bg: #f3f4f1;
  --card: #ffffff;
  --border: #e6e8e3;
  --border-soft: #eef0ec;
  --input-bg: #f7f8f5;
  --input-border: #e2e5df;
  --text: #26314e;
  --text-soft: #5c6763;
  --muted: #7c847d;
  --th: #98a099;
  --danger: #c4453c;
  --danger-dark: #a63a32;
  --danger-soft: #fbeceb;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(38,49,78,.05);
  --shadow-lg: 0 20px 60px rgba(30,38,60,.3);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --sidebar-w: 260px;
  --topbar-h: 66px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font); color: var(--text); margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d6dad2; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c3c8bf; }

@keyframes fade { from {opacity:0} to {opacity:1} }
@keyframes pop { from {opacity:0; transform:translateY(12px) scale(.98)} to {opacity:1; transform:translateY(0) scale(1)} }
@keyframes toastIn { from {opacity:0; transform:translate(-50%,16px)} to {opacity:1; transform:translate(-50%,0)} }

/* ============================================================
   LAYOUT — sidebar fixed, topbar fixed, content offset once
   ============================================================ */
.sidebar-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-nav .navbar-brand { display: block; padding: 6px 8px 20px; text-align: center; }
.sidebar-nav .navbar-brand img { max-width: 150px; height: auto; }

.navbar-box {
  position: fixed;
  top: 0; right: 0;
  left: var(--sidebar-w);
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 90;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
  background: var(--bg);
}

.main-box-content { padding: 28px 28px 40px; display: flex; flex-direction: column; gap: 20px; }
.main-space-box { }               /* legacy hook — no offset needed now */
.project-doorbox { display: flex; flex-direction: column; gap: 20px; }
.overlay-box { display: none; }

@media (max-width: 991px) {
  .sidebar-nav { transform: translateX(-100%); transition: transform .25s ease; z-index: 1200; }
  body.nav-open .sidebar-nav { transform: none; box-shadow: 0 0 40px rgba(30,38,60,.25); }
  .navbar-box { left: 0; }
  .main { margin-left: 0; }
}

/* ============================================================
   SIDEBAR MENU
   ============================================================ */
.side-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-menu li { border: none; }
.side-menu li a {
  display: flex; align-items: center;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
}
.side-menu li a:hover { background: var(--bg); color: var(--text); }
.side-menu li.active > a { background: var(--primary-soft); color: #1f6b60; font-weight: 700; text-wrap-mode: nowrap;}
.side-menu li a i, .side-menu .icon-font-size { font-size: 18px; width: 22px; text-align: center; color: inherit; }
.side-menu li.active > a i { color: var(--primary); }
.side-menu .nav-content-menu { font-size: 14px; color: inherit; }

/* ============================================================
   TOPBAR
   ============================================================ */
.navbar-box .navbar { width: 100%; padding: 0; }
.navbar-box .slide-nav { cursor: pointer; font-size: 20px; color: var(--text-soft); margin-right: 14px; display: flex; align-items: center; }
.navbar-box .slide-nav span { line-height: 1; }

.search-box { position: relative; }
.search-box input[type="search"] {
  width: 340px; max-width: 46vw;
  padding: 10px 40px 10px 16px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: var(--font); font-size: 14px; color: var(--text);
  outline: none; transition: border-color .15s, background .15s;
}
.search-box input[type="search"]:focus { border-color: var(--primary); background: #fff; }
.search-box button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--th);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
}
.search-box button:hover { color: var(--primary); background: var(--primary-soft); }

.btn-box {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 8px 16px; border-radius: var(--radius);
  font-weight: 700; font-size: 13px;
}
.btn-box i { color: #7ad3c5; }
.btn-box p { margin: 0; color: #fff; font-weight: 700; font-size: 13px; }

.logout-option button {
  padding: 8px 16px; border: 1px solid var(--input-border);
  background: #fff; color: var(--text-soft);
  border-radius: 9px; font-family: var(--font);
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.logout-option button:hover { background: var(--input-bg); color: var(--danger); }

/* ============================================================
   PAGE HEADINGS
   ============================================================ */
.heading-content-box { margin: 0; }
.heading-content-box h2 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; color: var(--text); margin: 6px 0 0; }
.heading-content-box h2.text-center { text-align: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--primary); text-transform: uppercase; }
.subtitle { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.heading-text-center-main { max-width: 900px; margin: 0 auto 24px; }

/* ============================================================
   CARDS
   ============================================================ */
.project-ongoing-box, .hw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-container, .employe-form { box-shadow: var(--shadow); }
.employe-form { padding: 24px; }
.form-container { max-width: 900px; margin: 0 auto; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ============================================================
   TABLES
   ============================================================ */
.table-notification-list, .project-ongoing-box .table {
  width: 100%; margin: 0; border-collapse: collapse;
}
.table-notification-list thead tr th,
.project-ongoing-box .table thead tr th {
  background: #fafbf9;
  color: var(--th);
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
  padding: 13px 18px; text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
/* first & last header cells get the wider 18px edge padding, middle 12px is fine via 18px base */
.table-notification-list thead a, .table-notification-list thead a.text-white {
  color: var(--th); text-transform: uppercase; font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
}
.table-notification-list thead a:hover { color: var(--primary); }

.table-notification-list tbody td, .project-ongoing-box .table tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px; color: var(--text-soft);
  vertical-align: top;
  background: #fff;
}
.table-notification-list tbody td .switch,
.table-notification-list tbody td .status-change { vertical-align: middle; }
.table-notification-list tbody tr, .project-ongoing-box .table tbody tr { transition: background .12s; }
.table-notification-list tbody tr:hover, .project-ongoing-box .table tbody tr:hover { background: #f8faf9; }
.table-notification-list > tbody > tr:nth-child(2n+1) > td { background: transparent; }

.listing-img, .user-profile-img {
  width: 46px; height: 46px; border-radius: 11px; object-fit: cover; border: 1px solid var(--border-soft);
}
.user-profile-img { border-radius: 50%; }
.scrollable-td { max-height: 66px; max-width: 320px; overflow: auto; font-size: 13px; line-height: 1.5; color: #6b736c; }

tr.rowlink { cursor: pointer; }
tr.rowlink:hover .cell-title { color: var(--primary); }
.cell-title { font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.35; }
.cell-sub { font-size: 12px; color: var(--th); margin-top: 3px; }
.clamp2 { font-size: 13px; color: #6b736c; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
tr.filter-hidden { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { font-family: var(--font); border-radius: var(--radius); font-weight: 600; }

.btn-green, a.btn.btn-green {
  background: var(--primary); border: none; color: #fff;
  font-weight: 700; font-size: 13.5px; padding: 11px 18px;
  box-shadow: 0 2px 8px rgba(47,143,130,.28);
  white-space: nowrap; transition: background .15s;
}
.btn-green:hover, a.btn.btn-green:hover { background: var(--primary-dark); color: #fff; }

.btn-ghost, .sort-btn, .btn-secondary, .btn-outline-secondary {
  background: #fff; border: 1px solid #d3dbd6; color: var(--text);
  font-weight: 600; font-size: 13px; padding: 9px 15px; box-shadow: none;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover, .sort-btn:hover, .btn-secondary:hover, .btn-outline-secondary:hover {
  border-color: var(--primary); color: #1f6b60; background: #fff;
}

.btn-danger, .btn-sort-danger {
  background: var(--danger); border: none; color: #fff; font-weight: 700; padding: 9px 15px; font-size: 13px;
}
.btn-danger:hover, .btn-sort-danger:hover { background: var(--danger-dark); color: #fff; }

.btn-submt-user, .btn-box.btn-submt-user {
  background: var(--primary); border: none; color: #fff;
  font-weight: 700; font-size: 14px; padding: 13px 28px; border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(47,143,130,.3); cursor: pointer;
}
.btn-submt-user:hover { background: var(--primary-dark); }

/* Icon action buttons in rows */
a.action-btn, button.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border-radius: 9px; border: 1px solid var(--input-border);
  background: #fff; color: var(--text-soft);
  font-size: 14px; cursor: pointer; text-decoration: none;
  margin: 0 3px; transition: transform .12s, border-color .15s, color .15s, background .15s;
}
a.action-btn:active, button.action-btn:active { transform: scale(.92); }
a.action-btn:hover, button.action-btn:hover { border-color: var(--primary); color: var(--primary); background: #f0f7f5; }
.action-btn.btn-delete, .btn-delete { border-color: #f0dcda; color: var(--danger); }
.action-btn.btn-delete:hover, .btn-delete:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.action-btn i { font-size: 14px; line-height: 1; }

button.delete-btn-design {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid #f0dcda; border-radius: 9px;
  background: #fff; color: var(--danger); font-size: 14px; cursor: pointer;
}
button.delete-btn-design:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ============================================================
   CHIPS / BADGES
   ============================================================ */
.chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--input-border); background: #fff; color: var(--text-soft);
  font-weight: 600; font-size: 12.5px; text-transform: capitalize; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.type-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: capitalize;
  background: var(--navy-soft); color: var(--navy); text-wrap-mode: nowrap;
}
.type-breakfast { background: #e7f2f0; color: #1f6b60; }
.type-lunch     { background: #eef0f8; color: #4a4e8c; }
.type-dinner    { background: #f6ede5; color: #a5622c; }
.type-snacks    { background: #f9edf1; color: #a34a6e; }
.type-rejected  { background: var(--danger-soft); color: var(--danger); }

.badge { border-radius: 20px; font-weight: 700; padding: 5px 11px; font-size: 11px; }
.badge.bg-warning { background: #f6ede5; color: #a5622c; }
.badge.bg-success { background: #e7f2f0; color: #1f6b60; }
.badge.bg-danger  { background: var(--danger-soft); color: var(--danger); }
.badge.bg-secondary { background: var(--navy-soft); color: var(--navy); }

.avatar {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; overflow: hidden;
  background: #d7ede9; color: var(--primary);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Macro chips */
.kcal { display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; }
.kcal b { font-size: 17px; font-weight: 800; color: var(--text); }
.kcal span { font-size: 11px; font-weight: 600; color: var(--th); }
.macros { display: flex; gap: 6px; flex-wrap: wrap; }
.macro { display: inline-flex; flex-direction: column; padding: 4px 9px; border-radius: 8px; line-height: 1.2; }
.macro small { font-size: 9px; font-weight: 700; letter-spacing: .3px; }
.macro b { font-size: 12px; font-weight: 700; }
.macro-protein { background: #eef4f2; } .macro-protein small { color: #8aa39b; } .macro-protein b { color: #2f8f82; }
.macro-carbs   { background: #f1f0f6; } .macro-carbs small { color: #9b96b5; } .macro-carbs b { color: #6b62a8; }
.macro-fat     { background: #f7efe9; } .macro-fat small { color: #c1a48d; } .macro-fat b { color: #c08850; }

/* ============================================================
   TOOLBAR (inside cards)
   ============================================================ */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); background: #fff; }
.search-inline { position: relative; }
.search-inline .fa-search { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #a7ada5; font-size: 13px; pointer-events: none; }
.search-inline input { padding-left: 36px; width: 280px; }
.perpage { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.perpage select { padding: 8px 10px; border: 1px solid var(--input-border); border-radius: 9px; background: var(--input-bg); font-family: var(--font); font-size: 13px; color: var(--text); font-weight: 600; cursor: pointer; }

#alphabetFilter { display: flex; flex-wrap: wrap; gap: 5px; }
#alphabetFilter .btn { min-width: 34px; padding: 7px 8px; border-radius: 9px; font-size: 12.5px; font-weight: 700; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select, textarea.form-control, .employe-form input, .employe-form textarea, .employe-form select {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: var(--font); font-size: 14px; color: var(--text);
  padding: 10px 14px;
}
.form-control:focus, .form-select:focus, .employe-form input:focus, .employe-form textarea:focus { border-color: var(--primary); background: #fff; outline: none; }
.form-group { margin-bottom: 16px; }
.employe-form label, .form-group label, .select-label, p.form-group-label {
  font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 7px; display: block; text-transform: none;
}
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-label { font-weight: 600; font-size: 13.5px; color: var(--text-soft); }
.error-message, .error-msg-field { font-size: 12.5px; color: var(--danger); margin-top: 5px; }

.select-main { background: var(--input-bg); padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--input-border); }

/* macro rows on the add/edit forms */
.macro-neutrinos { display: flex; align-items: center; gap: 12px; }
.macro-neutrinos label {
  min-width: 52px; text-align: center;
  background: var(--navy-soft); color: var(--navy);
  padding: 9px 8px; border-radius: 9px;
  font-size: 12px; font-weight: 700; margin: 0; text-transform: lowercase;
}
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.upload-btn { display: inline-block; padding: 10px 18px; border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: var(--radius); font-family: var(--font); font-weight: 700; font-size: 13px; }
.upload-btn:hover { background: var(--primary-soft); }
.upload-img-btn h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 14px 0 0; }
#imagePreviewGrid { border: 2px dashed #c9d6d0; border-radius: 14px; background: #fafbf9; min-height: 120px; padding: 12px; }
#imagePreview1 { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border-radius: 12px; font-size: 13.5px; font-weight: 600; border: none; padding: 12px 16px; }
.alert-success { background: var(--primary-soft); color: #1f6b60; }
.alert-danger { background: var(--danger-soft); color: var(--danger); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination .page-link {
  min-width: 36px; text-align: center;
  border: 1px solid var(--input-border); background: #fff; border-radius: 9px;
  font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--text-soft);
  padding: 8px 12px; display: block; text-decoration: none;
}
.pagination .page-link:hover { background: var(--input-bg); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pagination .page-item.disabled .page-link { opacity: .5; }

.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--border-soft); background: #fff; }
.range-label { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content { border: none; border-radius: 18px; box-shadow: var(--shadow-lg); font-family: var(--font); }
.modal-header { border-bottom: 1px solid var(--border-soft); padding: 20px 24px; }
.modal-title { font-weight: 800; font-size: 19px; color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--border-soft); padding: 16px 24px; }

.nutri-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nutri-table th, .nutri-table td { padding: 9px 12px; border-top: 1px solid var(--border-soft); text-align: left; }
.nutri-table th { color: var(--text-soft); font-weight: 600; width: 55%; }
.nutri-table td { color: var(--text); font-weight: 700; }

/* ============================================================
   DELETE CONFIRMATION POPUPS (admin.js drives .fadeIn/.fadeOut)
   ============================================================ */
.delete-confirmation-popup {
  display: none;
  position: fixed; inset: 0; z-index: 1050;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(30,38,60,.42);
}
.delete-confirmation-popup[style*="block"] { display: flex; }
.popup__content {
  position: relative; max-width: 440px; width: 100%;
  background: #fff; border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-lg); text-align: center;
  animation: pop .2s ease;
}
.delete-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--danger-soft); color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 24px;
}
.delete-confirmation-popup-title { font-size: 19px; font-weight: 800; color: var(--text); }
.delete-confirmation-popup-text { color: #6b736c; font-size: 14px; line-height: 1.55; margin-top: 8px; }
.delete-confirmation-popup-btn {
  border-radius: 11px; font-weight: 700; font-size: 14px; padding: 11px 20px;
  border: 1px solid var(--input-border); background: #fff; color: var(--text-soft); cursor: pointer;
}
.delete-confirmation-popup-btn:hover { background: var(--input-bg); }
.delete-confirmation-popup-delete-btn { background: var(--danger); color: #fff; border: none; box-shadow: 0 2px 10px rgba(196,69,60,.32); }
.delete-confirmation-popup-delete-btn:hover { background: var(--danger-dark); color: #fff; }
.cancel-popup-btnbox { cursor: pointer; }
button.btn-close.cancel-popup-btnbox, .btn-close.cancel-popup-btnbox { box-shadow: none; }

/* ============================================================
   TOAST (custom)
   ============================================================ */
.hw-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2000; background: var(--navy); color: #fff;
  padding: 13px 22px; border-radius: 12px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(30,38,60,.35);
  display: flex; align-items: center; gap: 10px; animation: toastIn .25s ease;
}
.hw-toast .check { color: #7ad3c5; font-size: 16px; }
.hw-toast.error .check { color: #ff9d95; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty { padding: 60px 20px; text-align: center; color: var(--th); }
.empty i { font-size: 36px; margin-bottom: 10px; color: #c3c8bf; }
.empty b { display: block; color: var(--text-soft); font-size: 15px; font-weight: 700; }
.empty span { font-size: 13px; margin-top: 4px; display: inline-block; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.stat-card { background: linear-gradient(135deg, #ffffff, #fbfcfa); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; display: flex; align-items: center; gap: 16px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(38,49,78,.08); }
.stat-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--primary-soft); color: var(--primary); flex: 0 0 48px; }
.stat-icon.navy { background: var(--navy-soft); color: var(--navy); }
.stat-icon.amber { background: #f6ede5; color: #a5622c; }
.stat-icon.plum { background: #f9edf1; color: #a34a6e; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 5px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--th); text-transform: uppercase; margin-bottom: 9px; }

/* Legacy dashboard cards (info-card) */
.info-card .card { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
.info-card .card-body { padding: 20px; }
.info-card .card-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.info-card .card-icon i, .custom-class { color: var(--primary); font-size: 22px; }
.info-card .card-title { font-size: 26px; font-weight: 800; color: var(--text); }
.info-card .card-subtitle { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ============================================================
   TOGGLE SWITCH (notifications)
   ============================================================ */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #d6dad2; border-radius: 24px; transition: .2s; }
.switch .slider:before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(20px); }

/* ============================================================
   SELECT2
   ============================================================ */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--input-bg); font-family: var(--font);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--primary); color: #fff; }
.select2-container--default .select2-selection__choice { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   STATUS SELECT PILLS
   ============================================================ */
.status-change { max-width: 160px; font-size: 13px; font-weight: 600; padding: 8px 30px 8px 12px; border-radius: 9px; cursor: pointer; border: 1px solid var(--input-border); }
.status-pending  { background: #f6ede5; color: #a5622c; border-color: #ecdcc9; }
.status-verified { background: #e7f2f0; color: #1f6b60; border-color: #cde5e0; }
.status-rejected { background: var(--danger-soft); color: var(--danger); border-color: #f0d5d3; }

/* ============================================================
   ANIMATIONS (alive)
   ============================================================ */
.project-ongoing-box, .stat-card { animation: pop .28s ease both; }
.table-notification-list tbody tr { animation: fade .28s ease both; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.landing-herobanner .herobanner {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  background-size: cover !important; background-position: center !important;
}
.landing-herobanner .herobanner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(47,143,130,.92), rgba(31,107,96,.94));
}
.landing-herobanner .container-xl { position: relative; z-index: 2; }
.banner-contentbox, .login-contentbox { width: 100%; }

.logo-clr { margin-bottom: 24px; text-align: center; }
.logo-clr img {
  background: #fff;
  padding: 14px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  max-width: 210px;
}

.login-box {
  background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(20,45,40,.35);
  padding: 36px 34px; max-width: 420px; margin: 0 auto;
}
.login-formbox .icon-box { position: relative; margin-bottom: 0; }
.login-formbox input {
  width: 100%; padding: 13px 44px 13px 16px;
  border: 1px solid var(--input-border); border-radius: 11px; background: var(--input-bg);
  font-family: var(--font); font-size: 14px; color: var(--text); outline: none;
}
.login-formbox input:focus { border-color: var(--primary); background: #fff; }
.login-formbox .icon-box.is-error input { border-color: var(--danger); }
.toggle-password { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--th); }
.user-iconbox { display: none; }

.checkbox-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group label { font-size: 13px; font-weight: 600; color: var(--text-soft); margin: 0; }
.forgot-pass { font-size: 13px; font-weight: 600; color: var(--primary); }
.forgot-pass:hover { color: var(--primary-dark); }

/* .login-btn-box {
  width: 100%; padding: 14px; border: none; background: var(--primary); color: #fff ;
  border-radius: 11px; font-family: var(--font); font-weight: 800; font-size: 14px; letter-spacing: .8px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background .15s;
} */

.login-btn-box {
  display: block; box-sizing: border-box; width: 100%; padding: 14px; border: none;
  background: var(--primary); color: #fff; text-align: center; text-decoration: none;
  border-radius: 11px; font-family: var(--font); font-weight: 800; font-size: 14px; letter-spacing: .8px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background .15s;
}
.login-btn-box:hover { background: var(--primary-dark);  color: #fff ;}

.footer-navbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; padding: 14px; z-index: 3; }
.footer-navbar a { color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; }
.footer-navbar a:hover { color: #fff; }

/* ============================================================
   FEEDBACK / PUBLIC PAGES
   ============================================================ */
.width-class { max-width: 860px; margin: 0 auto; }
.privacy-policy-head { background: #32496817; padding: 24px; margin-bottom: 30px; text-align: center; }
.privacy-policy-head img { width: 116px; margin-bottom: 20px; }
.privacy-policy-head h1 { font-size: 42px; font-weight: 700; margin-bottom: 24px; }
.container-main { max-width: 1300px; margin: 0 auto; }
.container-main .content-box { margin-bottom: 30px; }
.container-main h1 { font-size: 24px; color: var(--navy); font-weight: 600; }
.container-main h2 { font-size: 20px; color: var(--navy); }
.container-main p { font-size: 16px; color: #000; margin: 0; }
.container-main span { font-weight: 600; }

/* ============================================================
   UTILITY
   ============================================================ */
.d-none { display: none !important; }   /* keep Bootstrap toggles working */
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.text-danger { color: var(--danger); }
.text-success { color: #1f6b60; }
.text-muted { color: var(--muted); }

/* ============================================================
   v2.3 — LOGIN white background + right-side DETAIL DRAWER
   (matches the client's standalone sample interactions)
   ============================================================ */

/* ---- Login: white background, green logo shows naturally ---- */
.landing-herobanner .herobanner {
  background: #f3f4f1 !important;   /* soft neutral, not green */
}
.landing-herobanner .herobanner::before {
  display: none !important;          /* remove the green gradient overlay */
}
.logo-clr img {
  background: transparent;
  padding: 0;
  box-shadow: none;
  max-width: 200px;
}
.login-box {
  box-shadow: 0 12px 40px rgba(38,49,78,.12);
  border: 1px solid var(--border);
}
.footer-navbar a { color: var(--text-soft); }
.footer-navbar a:hover { color: var(--primary); }

/* ---- Detail drawer (slides in from right) ---- */
.hw-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(30,38,60,.42);
  z-index: 1060;
  display: none;
  justify-content: flex-end;
  animation: fade .18s ease;
}
.hw-drawer-overlay.open { display: flex; }
.hw-drawer {
  width: 480px; max-width: 94vw; height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(30,38,60,.2);
  display: flex; flex-direction: column;
  animation: drawerIn .24s cubic-bezier(.22,.61,.36,1);
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }

.hw-drawer-head {
  padding: 20px 24px; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hw-drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.hw-drawer-foot {
  padding: 16px 24px; border-top: 1px solid var(--border-soft);
  display: flex; gap: 10px; justify-content: flex-end;
}
.hw-drawer-close {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--input-border); background: #fff; color: var(--text-soft);
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.hw-drawer-close:hover { background: var(--input-bg); }

.hw-drawer-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.hw-drawer-avatar {
  width: 70px; height: 70px; border-radius: 16px; flex: 0 0 70px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 26px; overflow: hidden;
  background: #d7ede9; color: var(--primary);
}
.hw-drawer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hw-drawer-name { font-size: 21px; font-weight: 800; color: var(--text); line-height: 1.2; }
.hw-drawer-sub { font-size: 13px; color: var(--th); margin-top: 4px; }

.hw-macro-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }
.hw-macro-card { padding: 14px; border-radius: 12px; text-align: center; }
.hw-macro-card small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.hw-macro-card b { display: block; font-size: 20px; font-weight: 800; margin-top: 4px; }
.hw-macro-card.p { background: #eef4f2; } .hw-macro-card.p small { color: #8aa39b; } .hw-macro-card.p b { color: #2f8f82; }
.hw-macro-card.c { background: #f1f0f6; } .hw-macro-card.c small { color: #9b96b5; } .hw-macro-card.c b { color: #6b62a8; }
.hw-macro-card.f { background: #f7efe9; } .hw-macro-card.f small { color: #c1a48d; } .hw-macro-card.f b { color: #c08850; }

.hw-drawer-section { margin-bottom: 22px; }
.hw-drawer-label { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--th); text-transform: uppercase; margin-bottom: 9px; }
.hw-readbox {
  font-size: 14px; color: #4a524c; line-height: 1.65;
  background: #fafbf9; border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 14px 16px; white-space: pre-wrap;
}
.hw-drawer-more { margin-top: 8px; }
.hw-drawer-nutri { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.hw-drawer-nutri th, .hw-drawer-nutri td { padding: 9px 4px; border-top: 1px solid var(--border-soft); text-align: left; }
.hw-drawer-nutri th { color: var(--text-soft); font-weight: 600; }
.hw-drawer-nutri td { color: var(--text); font-weight: 700; text-align: right; }


/* ============================================================
   v2.4 — Login alignment fixes
   The markup wraps the card in .text-center; force the CARD
   content left-aligned and properly spaced.
   ============================================================ */
.login-contentbox { text-align: center; }          /* logo stays centered */
.login-box { text-align: left; }                    /* card content left-aligned */
.login-box .login-formbox { text-align: left; }
.login-box h2, .login-box p { text-align: left; }
.login-formbox input { text-align: left; }
.login-formbox .icon-box { margin-bottom: 14px; }
.login-formbox .d-block { margin-bottom: 0 !important; }
.login-formbox .alert { margin-bottom: 16px; }
.login-box { max-width: 400px; padding: 34px 32px; }
/* toggle-eye vertical centering inside the padded input */
.login-formbox .password-icon { position: relative; }
.login-formbox .toggle-password { color: #98a099; }
/* checkbox row spacing */
.login-formbox .checkbox-group input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }

/* ============================================================
   v2.7 — FIXED COLUMN WIDTHS (content can no longer stretch cells)
   table-layout:fixed makes the browser respect the <th> widths
   instead of sizing columns to content. Long text wraps or
   truncates instead of blowing the layout out.
   ============================================================ */
.table-notification-list,
.project-ongoing-box .table {
  table-layout: fixed;
  width: 100%;
}

/* Everything wraps by default; nothing can push a column wider */
.table-notification-list th,
.table-notification-list td,
.project-ongoing-box .table th,
.project-ongoing-box .table td {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;   /* break long unbroken strings (URLs, hashes) */
}

/* Long free text: clamp to 2 lines with an ellipsis */
.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.clamp1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Titles: wrap to at most 2 lines, never stretch the column */
.cell-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Email / single-line values: truncate with ellipsis */
.truncate {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scrollable cell (kept for any long content that must stay readable) */
.scrollable-td {
  max-height: 72px;
  overflow-y: auto;
  word-break: break-word;
}

/* Action column: never wraps, never shrinks */
.table-notification-list td:last-child,
.table-notification-list th:last-child { white-space: nowrap; }

/* Narrow screens: let the table scroll horizontally instead of squashing */
.project-ongoing-box { overflow-x: auto; }
@media (max-width: 1200px) {
  .table-notification-list, .project-ongoing-box .table { min-width: 900px; }
}

/* ============================================================
   v2.8 — table header/word-break + macro layout fixes
   ============================================================ */

/* "FOTO" was breaking into "FOT / O": overflow-wrap:anywhere (v2.7) applied to
   headers too. Headers must never break mid-word. */
.table-notification-list thead th,
.project-ongoing-box .table thead th {
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

/* Serial number column */
.row-num {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: var(--th);
  font-variant-numeric: tabular-nums;
}

/* Macro chips: 3 across, never wrap to a second line. Values like "12.18 gm"
   are wide, so let the chips size to content and keep them on one row. */
.macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex-wrap: nowrap;
}
.macro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px 8px;
  border-radius: 8px;
  line-height: 1.25;
  min-width: 0;              /* allow shrink inside the grid */
}
.macro small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}
.macro b {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Ingredients column: comfortable reading, 3 lines then ellipsis */
.clamp2 { -webkit-line-clamp: 3; }

/* ============================================================
   v2.9 — form controls (fixes broken UI on add/edit pages)
   ============================================================ */

/* ---- Meal-type toggle chips (replaces the checkbox that
        rendered white then "turned green" after CSS resolved) ---- */
.type-toggle-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
}
.type-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 14px 9px 11px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s;
}
.type-toggle:hover { border-color: var(--primary); }
.type-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.type-toggle-box {
  width: 20px; height: 20px;
  flex: 0 0 20px;
  border: 1.5px solid #cfd6d1;
  border-radius: 6px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s;
}
.type-toggle-box i {
  font-size: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity .12s;
}
.type-toggle-label { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1; }

/* Checked state — instant, no flash */
.type-toggle input:checked ~ .type-toggle-box {
  background: var(--primary);
  border-color: var(--primary);
}
.type-toggle input:checked ~ .type-toggle-box i { opacity: 1; }
.type-toggle:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.type-toggle input:focus-visible ~ .type-toggle-box {
  box-shadow: 0 0 0 3px rgba(47,143,130,.22);
}

/* ---- Select dropdown arrow (the stray chevron under field 2) ---- */
.dropdown-wrapper { position: relative; display: block; }
.dropdown-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;   /* room for the icon */
  width: 100%;
}
.dropdown-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--th);
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.dropdown-wrapper.open .dropdown-icon i { transform: rotate(180deg); }

/* Native selects without the wrapper get a chevron too */
select.form-control:not([multiple]), select.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a099' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  padding-right: 38px;
}
.dropdown-wrapper select { background-image: none; }  /* wrapper supplies its own icon */

/* ---- Unit-prefix inputs (kcal / gm / g / mg boxes) ---- */
.macro-neutrinos {
  display: flex;
  align-items: stretch;
  flex-direction: row;    /* was row-reverse in legacy — unit goes FIRST */
  gap: 0;
}
.macro-neutrinos label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  margin: 0;
  padding: 0 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: lowercase;
  white-space: nowrap;
}
.macro-neutrinos input,
.macro-neutrinos .form-control {
  border-radius: 0 10px 10px 0;
  flex: 1;
  min-width: 0;
}
.macro-neutrinos:focus-within label {
  border-color: var(--primary);
  color: var(--primary);
}

/* Form section heading */
.form-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

/* ============================================================
   v2.9b — user-recipes + detail modal polish
   ============================================================ */

/* Rejection reason note under the status badge */
.reject-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--danger);
  cursor: help;
}
.reject-note i { margin-top: 1px; flex: 0 0 auto; font-size: 10px; }
.reject-note span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Detail modals filled by custom.js (Recept Detail / images) — make the
   generated table match the drawer look without touching the JS. */
#detailModalBody table,
#detailModalBody .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  border: none;
}
#detailModalBody table th,
#detailModalBody table td {
  padding: 12px 14px;
  border: none;
  border-top: 1px solid var(--border-soft);
  vertical-align: top;
  text-align: left;
}
#detailModalBody table tr:first-child th,
#detailModalBody table tr:first-child td { border-top: none; }
#detailModalBody table th {
  width: 38%;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
}
#detailModalBody table td { font-weight: 600; color: var(--text); }
#detailModalBody table tr:nth-child(2n) th,
#detailModalBody table tr:nth-child(2n) td { background: #fafbf9; }

/* Images inside the detail/images modal */
#detailModalBody img,
#imagesModal img {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  object-fit: cover;
}

/* Status pill inside the detail modal (custom.js prints a raw badge) */
#detailModalBody .badge {
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
}

/* Modal shell: match the drawer's calm look */
.modal-content { border-radius: 18px; }
.modal-header { padding: 20px 24px; }
.modal-body { padding: 8px 24px 20px; }
.modal-footer { padding: 16px 24px; }

/* ============================================================
   v3.0 — stacked modals, header polish, back button
   ============================================================ */

/* ---- #3: images modal opens ON TOP of the detail modal.
        Bootstrap gives both the same z-index, so they overlapped.
        Raise the images modal (and its backdrop) above the detail modal. ---- */
#imagesModal { z-index: 1075; }
#imagesModal + .modal-backdrop,
.modal-backdrop.show ~ .modal-backdrop.show { z-index: 1070; }

/* When a modal is stacked, dim the one underneath instead of showing it half-lit */
body.modal-open #detailModal.show { filter: saturate(.9); }

/* Images modal: give the picture room and center it */
#imagesModal .modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px 24px;
}
#imagesModal .modal-body img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  object-fit: contain;
  background: #fafbf9;
}

/* Thumbnail inside the detail modal — make it obviously clickable */
#detailModalBody img {
  cursor: zoom-in;
  transition: transform .15s, box-shadow .15s;
}
#detailModalBody img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(38,49,78,.16);
}

/* ---- #5: header (search + admin + logout) ---- */
.navbar-box .search-box input[type="search"] {
  width: 380px;
  max-width: 42vw;
  padding: 10px 16px 10px 40px;   /* icon moves to the LEFT */
  border-radius: 11px;
}
.navbar-box .search-box button {
  left: 6px;
  right: auto;
  background: transparent;
  color: #a7ada5;
}
.navbar-box .search-box button:hover { color: var(--primary); background: transparent; }
.navbar-box .search-box input[type="search"]:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,143,130,.12);
}

/* Admin pill: avatar circle + name, quieter than a solid navy slab */
.btn-box {
  background: var(--navy);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  gap: 10px;
  font-size: 13px;
}
.btn-box i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fe3d6;
  font-size: 12px;
}
.btn-box p { font-size: 13px; letter-spacing: .3px; }

/* Logout: quiet ghost button that turns red on hover */
.logout-option button {
  border-radius: 999px;
  padding: 9px 16px;
  border: 1px solid var(--input-border);
  color: var(--muted);
  background: #fff;
  transition: color .15s, border-color .15s, background .15s;
}
.logout-option button:hover {
  color: var(--danger);
  border-color: #f0dcda;
  background: var(--danger-soft);
}

/* Divider between admin pill and logout */
.navbar-box .logout-option { position: relative; }
.navbar-box .logout-option::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 22px;
  background: var(--border);
}

/* ============================================================
   v3.1 — serial column, lightbox, gallery, hw-* aliases
   ============================================================ */

/* ---- #3: serial number wrapped ("20 / 1" on two lines) because the
        column was too narrow and numbers could break. Never wrap. ---- */
.table-notification-list td:first-child,
.project-ongoing-box .table td:first-child { white-space: nowrap; }
.row-num {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  color: var(--th);
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* ---- Recipe drawer gallery ---- */
.rec-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-thumb {
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  cursor: zoom-in;
  transition: transform .15s, box-shadow .15s;
}
.rec-thumb:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(38,49,78,.18); }

/* ---- Lightbox (plain overlay — cannot stack like Bootstrap modals) ---- */
.hw-lightbox {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(20,26,40,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fade .16s ease;
}
.hw-lightbox.open { display: flex; }
.hw-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.hw-lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.hw-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ============================================================
   hw-* ALIASES
   An older dashboard blade used hw-prefixed class names. Alias them
   to the current names so either markup renders correctly.
   ============================================================ */
.hw-eyebrow        { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--primary); text-transform: uppercase; }
.hw-subtitle       { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.hw-section-label  { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--th); text-transform: uppercase; margin-bottom: 9px; }

.hw-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.hw-stat-card {
  background: linear-gradient(135deg, #ffffff, #fbfcfa);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.hw-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(38,49,78,.08); }
.hw-stat-icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: var(--primary-soft); color: var(--primary);
}
.hw-stat-icon.navy  { background: var(--navy-soft); color: var(--navy); }
.hw-stat-icon.amber { background: #f6ede5; color: #a5622c; }
.hw-stat-icon.plum  { background: #f9edf1; color: #a34a6e; }
.hw-stat-value { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.hw-stat-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 5px; }

.hw-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hw-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.hw-panel-title { font-size: 15px; font-weight: 800; color: var(--text); margin: 0; }

.hw-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #d3dbd6; color: var(--text);
  font-weight: 600; font-size: 13px; padding: 9px 15px;
  border-radius: var(--radius); text-decoration: none;
}
.hw-btn-ghost:hover { border-color: var(--primary); color: #1f6b60; }

.hw-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; overflow: hidden;
  background: #d7ede9; color: var(--primary);
  flex: 0 0 40px;
}
.hw-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hw-empty { padding: 40px 20px; text-align: center; color: var(--th); font-size: 14px; }

/* ============================================================
   v3.2 — NEW TOP BAR + working sidebar collapse + notifications
   ============================================================ */

.topbar {
  position: fixed;
  top: 0; right: 0;
  left: var(--sidebar-w);
  height: var(--topbar-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  transition: left .22s cubic-bezier(.22,.61,.36,1);
}

/* Icon buttons (hamburger, bell) */
.topbar-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.topbar-icon-btn:hover { background: var(--input-bg); color: var(--text); border-color: var(--border); }
.topbar-icon-btn:active { transform: scale(.94); }

/* Search */
.topbar-search {
  position: relative;
  flex: 1;
  max-width: 460px;
  margin: 0;
}
.topbar-search i {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #a7ada5; font-size: 13px; pointer-events: none;
}
.topbar-search input {
  width: 100%;
  padding: 10px 44px 10px 38px;
  border: 1px solid var(--input-border);
  border-radius: 11px;
  background: var(--input-bg);
  font-family: var(--font); font-size: 13.5px; color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.topbar-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,143,130,.12);
}
.topbar-kbd {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  padding: 2px 7px;
  border: 1px solid var(--input-border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  font-family: var(--font);
  font-size: 11px; font-weight: 700; color: var(--th);
  pointer-events: none;
}
.topbar-search input:focus ~ .topbar-kbd { opacity: 0; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ---- Notifications ---- */
.topbar-notif { position: relative; }
.notif-dot {
  position: absolute; top: 3px; right: 3px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(38,49,78,.18);
  overflow: hidden;
  display: none;
  z-index: 120;
  animation: pop .16s ease;
}
.notif-panel.open { display: block; }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px; font-weight: 800; color: var(--text);
}
.notif-count {
  font-size: 11px; font-weight: 700;
  color: #a5622c; background: #f6ede5;
  padding: 3px 9px; border-radius: 999px;
}
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  transition: background .12s;
}
.notif-item:hover { background: #f8faf9; }
.notif-item:last-child { border-bottom: none; }
.notif-ico {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  display: block;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-meta { display: block; font-size: 11.5px; color: var(--th); margin-top: 2px; }
.notif-empty { padding: 34px 20px; text-align: center; color: var(--th); }
.notif-empty i { font-size: 26px; color: var(--primary); display: block; margin-bottom: 8px; }
.notif-empty b { display: block; color: var(--text-soft); font-size: 14px; }
.notif-empty span { font-size: 12.5px; }
.notif-foot {
  display: block;
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  background: #fafbf9;
  font-size: 13px; font-weight: 700; color: var(--primary);
  text-decoration: none;
}
.notif-foot:hover { background: var(--primary-soft); }

/* ---- Account menu ---- */
.topbar-account { position: relative; }
.account-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.account-btn:hover { border-color: #cfd6d1; background: var(--input-bg); }
.account-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #9fe3d6;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.account-name { font-size: 13px; font-weight: 700; color: var(--text); }
.account-caret { font-size: 10px; color: var(--th); transition: transform .15s; }
.topbar-account.open .account-caret { transform: rotate(180deg); }

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(38,49,78,.16);
  padding: 6px;
  display: none;
  z-index: 120;
  animation: pop .16s ease;
}
.account-menu.open { display: block; }
.account-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 13.5px; font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.account-item:hover { background: var(--input-bg); color: var(--text); }
.account-item i { width: 16px; text-align: center; font-size: 13px; }
.account-item.danger { color: var(--danger); }
.account-item.danger:hover { background: var(--danger-soft); }
.account-sep { height: 1px; background: var(--border-soft); margin: 5px 8px; }

/* ============================================================
   SIDEBAR COLLAPSE — the hamburger did nothing on desktop because
   body.nav-open was only styled inside the mobile media query.
   ============================================================ */
:root { --sidebar-collapsed: 78px; }

.sidebar-nav { transition: width .22s cubic-bezier(.22,.61,.36,1); }
.main        { transition: margin-left .22s cubic-bezier(.22,.61,.36,1); }

@media (min-width: 992px) {
  body.nav-collapsed .sidebar-nav { width: var(--sidebar-collapsed); padding: 18px 12px; }
  body.nav-collapsed .topbar      { left: var(--sidebar-collapsed); }
  body.nav-collapsed .main        { margin-left: var(--sidebar-collapsed); }

  /* Hide labels + logo text, centre the icons */
  body.nav-collapsed .side-menu .nav-content-menu { display: none; }
  body.nav-collapsed .side-menu li a { justify-content: center; padding: 12px 0; }
  body.nav-collapsed .side-menu li a i { margin: 0; }
  body.nav-collapsed .navbar-brand img { max-width: 44px; }

  /* Tooltip on hover when collapsed */
  body.nav-collapsed .side-menu li a { position: relative; }
  body.nav-collapsed .side-menu li a::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy);
    color: #fff;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s;
    z-index: 200;
  }
  body.nav-collapsed .side-menu li a:hover::after { opacity: 1; }
}

/* Mobile: slide the sidebar in/out (unchanged behaviour) */
@media (max-width: 991px) {
  .topbar { left: 0; }
  .topbar-search { max-width: none; }
  .topbar-kbd { display: none; }
  .account-name { display: none; }
  .account-btn { padding: 5px; }
}

/* ============================================================
   v3.2b — analytics page
   ============================================================ */
.panel-title { font-size: 15px; font-weight: 800; color: var(--text); margin: 0; }

.chart-wrap { padding: 18px; height: 300px; }
.chart-wrap.chart-sm { height: 260px; }
.chart-wrap canvas { max-height: 100%; }

.analytics-two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
@media (max-width: 1100px) {
  .analytics-two-col { grid-template-columns: 1fr; }
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border-soft);
}
.content-stat {
  background: #fff;
  padding: 22px 18px;
  text-align: center;
}
.content-stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.content-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* ============================================================
   v3.3 — INGREDIENT PARSE POPUP
   ============================================================ */
.hw-parse-overlay {
  position: fixed; inset: 0;
  z-index: 1500;
  background: rgba(20,26,40,.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  animation: fade .16s ease;
}
.hw-parse-overlay.open { display: flex; }

.hw-parse-modal {
  width: 100%;
  max-width: 1000px;
  max-height: 88vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(20,26,40,.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pop .2s cubic-bezier(.22,.61,.36,1);
}

.hw-parse-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.hw-parse-head h3 { font-size: 20px; font-weight: 800; color: var(--text); margin: 4px 0 0; }

.hw-parse-body { padding: 20px 24px; overflow-y: auto; flex: 1; }

.hw-parse-hint {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 14px;
  background: var(--primary-soft);
  border-radius: 11px;
  font-size: 13px;
  color: #1f6b60;
  margin-bottom: 16px;
}
.hw-parse-hint i { margin-top: 2px; }

.hw-parse-loading {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.hw-parse-loading i { color: var(--primary); margin-right: 8px; }

/* Table */
.hw-parse-table { width: 100%; border-collapse: collapse; }
.hw-parse-table thead th {
  padding: 10px 10px;
  text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: var(--th); text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.hw-parse-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.hw-parse-table tbody tr:last-child td { border-bottom: none; }

.hw-parse-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.hw-parse-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,143,130,.1);
}
select.hw-parse-input { cursor: pointer; }

.p-kcal {
  text-align: right;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
}
.p-nomatch {
  margin-top: 5px;
  font-size: 11.5px;
  color: #a5622c;
  display: flex; align-items: center; gap: 5px;
}

/* Footer + totals */
.hw-parse-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
  background: #fafbf9;
}
.hw-parse-totals { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-parse-total {
  display: flex; flex-direction: column;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 92px;
}
.hw-parse-total small {
  font-size: 9.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--th);
}
.hw-parse-total b {
  font-size: 14px; font-weight: 800; color: var(--text); margin-top: 2px;
  white-space: nowrap;
}
.hw-parse-total:first-child b { color: var(--primary); font-size: 16px; }

.hw-parse-warn {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: #a5622c;
  background: #f6ede5;
  padding: 8px 12px;
  border-radius: 9px;
}

@media (max-width: 860px) {
  .hw-parse-modal { max-height: 94vh; }
  .hw-parse-table thead { display: none; }
  .hw-parse-table tbody td { display: block; border: none; padding: 4px 0; }
  .hw-parse-table tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .hw-parse-foot { flex-direction: column; align-items: stretch; }
}

/* Weak match — plausible but possibly wrong; admin must verify */
.p-weak {
  margin-top: 5px;
  font-size: 11.5px;
  color: #a5622c;
  display: flex; align-items: center; gap: 5px;
}
select.hw-parse-input.is-weak {
  border-color: #e8c9a8;
  background: #fdf8f3;
}

/* v3.5 — pagination never overflows (windowed range + wrap) */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}
.pagination .page-item .page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text-soft);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.pagination .page-item .page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: var(--th);
  background: #fafbf9;
  cursor: default;
  border-color: var(--border-soft);
}
.pagination .page-item.disabled .page-link:hover {
  border-color: var(--border-soft);
  color: var(--th);
  background: #fafbf9;
}

/* v3.6 — user detail page */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.detail-item {
  background: #fff;
  padding: 12px 14px;
}
.detail-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--th);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.detail-item b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
@media (max-width: 560px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* v3.7 — notification tabs + monitoring */
.notif-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.notif-tab {
  flex: 1;
  padding: 9px 8px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--th);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: color .12s, border-color .12s;
}
.notif-tab:hover { color: var(--text-soft); }
.notif-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.notif-pill {
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.notif-tab.active .notif-pill { background: var(--primary); color: #fff; }

/* Login log: online/offline dots */
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.status-dot.recent { background: #2f8f82; }
.status-dot.idle   { background: #c08850; }
.status-dot.stale  { background: #c9ccca; }

/* v3.8 — performance dashboard: funnel + cohort heatmap */
.funnel-row { margin-bottom: 20px; }
.funnel-row:last-child { margin-bottom: 0; }
.funnel-label {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 6px;
}
.funnel-label span { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.funnel-label b { font-size: 18px; font-weight: 800; color: var(--text); }
.funnel-track {
  height: 40px;
  background: var(--input-bg);
  border-radius: 10px;
  overflow: hidden;
}
.funnel-bar {
  height: 100%;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px;
  border-radius: 10px;
  min-width: 40px;
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}
.funnel-bar span { font-size: 13px; font-weight: 800; color: #fff; }
.funnel-bar-0 { background: linear-gradient(90deg,#26314e,#3a476b); }
.funnel-bar-1 { background: linear-gradient(90deg,#2f8f82,#3aa596); }
.funnel-bar-2 { background: linear-gradient(90deg,#a5622c,#c08850); }
.funnel-drop {
  margin-top: 5px; font-size: 12px; color: var(--danger); font-weight: 600;
}

/* Cohort heatmap */
.cohort-table { border-collapse: separate; border-spacing: 3px; width: 100%; }
.cohort-table th {
  font-size: 11px; font-weight: 700; color: var(--th);
  text-transform: uppercase; letter-spacing: .3px;
  padding: 6px 8px; text-align: center; white-space: nowrap;
}
.cohort-table th:first-child, .cohort-table th:nth-child(2) { text-align: left; }
.cohort-name { font-weight: 700; color: var(--text); font-size: 13px; white-space: nowrap; padding: 8px; }
.cohort-size { font-size: 13px; color: var(--muted); padding: 8px; }
.cohort-cell {
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 700;
  min-width: 62px;
}

/* Hide Edge/IE's native password reveal & clear icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

/* Hide Chrome/Safari's native password reveal & autofill icons (just in case) */
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-strong-password-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}
