/* ============================================================
   Simply My Care — style.css
   Brand: Navy #2F3C4C · Orange #F9931D · Dark #1E2731
   Fonts: Poppins (headings) · Inter (body)
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --smc-primary:      #2F3C4C;
  --smc-primary-dark: #232D38;
  --smc-accent:       #F9931D;
  --smc-accent-dark:  #e07f0a;
  --smc-dark:         #1E2731;
  --smc-light:        #F7F8F9;
  --smc-border:       #E4E8ED;
  --smc-text:         #28333f;
  --smc-muted:        #6b7785;
  --radius-sm:        10px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --shadow-sm:        0 2px 10px rgba(30,39,49,0.06);
  --shadow-md:        0 6px 24px rgba(30,39,49,0.09);
  --shadow-lg:        0 12px 40px rgba(30,39,49,0.13);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--smc-text);
  background: var(--smc-light);
  font-size: 0.97rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: 'Poppins', sans-serif;
  color: var(--smc-primary);
}

p { color: var(--smc-text); }

a { color: var(--smc-primary); }
a:hover { color: var(--smc-accent); }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  border-bottom: 1px solid var(--smc-border);
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--smc-text);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--smc-primary);
  background: rgba(47,60,76,0.06);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-smc-primary {
  background: var(--smc-primary);
  color: #fff;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  transition: background 0.18s, transform 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-smc-primary:hover  { background: var(--smc-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-smc-primary:active { transform: translateY(0); color: #fff; }

.btn-smc-accent {
  background: var(--smc-accent);
  color: #fff;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  transition: background 0.18s, transform 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-smc-accent:hover  { background: var(--smc-accent-dark); color: #fff; transform: translateY(-1px); }
.btn-smc-accent:active { transform: translateY(0); color: #fff; }

/* ── Badge ────────────────────────────────────────────────── */
.badge-pill-soft {
  background: rgba(47,60,76,0.08);
  color: var(--smc-primary);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-block;
}
.badge-pill-soft.accent {
  background: rgba(249,147,29,0.12);
  color: var(--smc-accent-dark);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(140deg, var(--smc-primary) 0%, var(--smc-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(249,147,29,0.07);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(249,147,29,0.05);
  pointer-events: none;
}
.hero-section h1 { color: #fff; }
.hero-section .lead { color: rgba(255,255,255,0.72); }

/* ── Section utility ──────────────────────────────────────── */
.section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smc-accent);
  display: block;
  margin-bottom: 0.6rem;
}

/* ── Service cards ────────────────────────────────────────── */
.service-card {
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47,60,76,0.2);
}
.service-card .icon-wrap {
  width: 52px; height: 52px;
  background: rgba(249,147,29,0.12);
  color: var(--smc-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ── Job cards ────────────────────────────────────────────── */
.job-card {
  background: #fff;
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-md);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.job-card:hover {
  border-color: var(--smc-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Info/commitment card ─────────────────────────────────── */
.commitment-card {
  background: var(--smc-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #fff;
}
.commitment-card h5 { color: #fff; }
.commitment-card .check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.commitment-card .check-item i {
  color: var(--smc-accent);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Stat bar ─────────────────────────────────────────────── */
.stat-bar {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--smc-border);
}
.stat-bar-item {
  flex: 1;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1.5px solid var(--smc-border);
}
.stat-bar-item:last-child { border-right: none; }
.stat-bar-item .stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--smc-primary);
  display: block;
}
.stat-bar-item .stat-label {
  font-size: 0.78rem;
  color: var(--smc-muted);
  font-weight: 500;
}

/* ── Trust bar ────────────────────────────────────────────── */
.trust-bar {
  border-top: 1.5px solid var(--smc-border);
  border-bottom: 1.5px solid var(--smc-border);
  background: #fff;
}
.trust-logos img { height: 40px; object-fit: contain; filter: grayscale(1); opacity: 0.55; }

/* ── Contact info card ────────────────────────────────────── */
.contact-info-card {
  background: var(--smc-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #fff;
  height: 100%;
}
.contact-info-card h5 { color: #fff; }
.contact-info-card .ci-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.contact-info-card .ci-row i {
  font-size: 1.1rem;
  color: var(--smc-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--smc-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.form-control,
.form-select {
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--smc-text);
  padding: 0.6rem 0.85rem;
  transition: border-color 0.16s, box-shadow 0.16s;
  background: #fff;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--smc-accent);
  box-shadow: 0 0 0 3px rgba(249,147,29,0.14);
  outline: none;
}

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  background: var(--smc-primary);
  padding: 3.5rem 0 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(249,147,29,0.07);
  pointer-events: none;
}
.page-header h1 { color: #fff; margin-bottom: 0.4rem; }
.page-header p  { color: rgba(255,255,255,0.65); margin-bottom: 0; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a,
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
.page-header .breadcrumb-item a:hover { color: var(--smc-accent); }
.page-header .breadcrumb-divider { color: rgba(255,255,255,0.3); }

/* ── WhatsApp float ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #25D366;
  color: #fff;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  z-index: 999;
  transition: transform 0.18s;
  text-decoration: none;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.07); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--smc-dark);
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}
.site-footer h6 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--smc-accent); }
.site-footer .footer-brand { color: #fff; font-size: 0.95rem; }

/* ── Admin sidebar ────────────────────────────────────────── */
.admin-sidebar {
  background: var(--smc-dark);
  min-height: 100vh;
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.5rem;
}
.admin-sidebar .sidebar-logo img { height: 30px; }
.admin-sidebar nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  margin: 0 0.5rem 0.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.admin-sidebar nav a i { font-size: 1rem; flex-shrink: 0; }
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.admin-sidebar nav a.active { color: var(--smc-accent); }
.admin-sidebar .sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 1rem 1.75rem 0.35rem;
}
.admin-sidebar .sidebar-footer {
  margin-top: auto;
  padding: 1rem 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.admin-sidebar .sidebar-footer a {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}
.admin-sidebar .sidebar-footer a:hover { color: #fff; }

/* ── Admin top bar ────────────────────────────────────────── */
.admin-topbar {
  background: #fff;
  border-bottom: 1.5px solid var(--smc-border);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar .page-title-bar {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--smc-primary);
}
.admin-topbar .user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--smc-muted);
}
.admin-topbar .user-chip .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(47,60,76,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--smc-primary);
}

/* ── Admin stat cards ─────────────────────────────────────── */
.admin-stat-card {
  background: #fff;
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s;
}
.admin-stat-card:hover { box-shadow: var(--shadow-sm); }
.admin-stat-card .stat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}
.admin-stat-card .stat-val {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--smc-primary);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.admin-stat-card .stat-lbl {
  font-size: 0.8rem;
  color: var(--smc-muted);
  font-weight: 500;
}
.admin-stat-card .stat-badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}
.icon-navy  { background: rgba(47,60,76,0.1);  color: var(--smc-primary); }
.icon-orange{ background: rgba(249,147,29,0.13); color: var(--smc-accent); }
.icon-green { background: rgba(25,135,84,0.1);  color: #198754; }
.icon-blue  { background: rgba(13,110,253,0.1); color: #0d6efd; }

/* ── Admin tables ─────────────────────────────────────────── */
.admin-table-wrap {
  background: #fff;
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.admin-table-wrap .table {
  margin-bottom: 0;
  font-size: 0.88rem;
}
.admin-table-wrap .table thead th {
  background: var(--smc-light);
  border-bottom: 1.5px solid var(--smc-border);
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--smc-muted);
  padding: 0.85rem 1rem;
  white-space: nowrap;
}
.admin-table-wrap .table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--smc-border);
  vertical-align: middle;
  color: var(--smc-text);
}
.admin-table-wrap .table tbody tr:last-child td { border-bottom: none; }
.admin-table-wrap .table tbody tr:hover td { background: rgba(247,248,249,0.7); }

/* ── Admin content card ───────────────────────────────────── */
.admin-card {
  background: #fff;
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--smc-border);
}
.admin-card-header h5 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
}

/* ── Admin layout ─────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-main {
  flex: 1;
  min-width: 0;
  background: var(--smc-light);
}
.admin-content {
  padding: 1.75rem;
}

/* ── Status badges ────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}
.status-new        { background: rgba(13,110,253,0.1);  color: #0d6efd; }
.status-reviewed   { background: rgba(249,147,29,0.12); color: var(--smc-accent-dark); }
.status-shortlisted{ background: rgba(25,135,84,0.1);   color: #198754; }
.status-rejected   { background: rgba(220,53,69,0.1);   color: #dc3545; }
.status-open       { background: rgba(25,135,84,0.1);   color: #198754; }
.status-closed     { background: rgba(108,117,125,0.1); color: #6c757d; }
.status-read       { background: rgba(249,147,29,0.12); color: var(--smc-accent-dark); }
.status-responded  { background: rgba(25,135,84,0.1);   color: #198754; }
.status-active     { background: rgba(25,135,84,0.1);   color: #198754; }
.status-suspended  { background: rgba(220,53,69,0.1);   color: #dc3545; }

/* ── Portal ───────────────────────────────────────────────── */

/* ── Portal body ──────────────────────────────────────────── */
.portal-body {
  background: var(--smc-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Portal card (legacy) ─────────────────────────────────── */
.portal-card {
  background: #fff;
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.portal-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--smc-accent);
  border-radius: 4px 0 0 4px;
}
.portal-card:hover { box-shadow: var(--shadow-sm); }
.portal-card .pc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(249,147,29,0.12);
  color: var(--smc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}
.portal-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.portal-card p {
  font-size: 0.85rem;
  color: var(--smc-muted);
  margin-bottom: 0;
}
.portal-card .coming-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--smc-muted);
  background: var(--smc-light);
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
}

/* ── Portal topbar ────────────────────────────────────────── */
.portal-topbar {
  background: #fff;
  border-bottom: 1.5px solid var(--smc-border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(30,39,49,0.06);
}
.portal-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Brand */
.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.portal-brand img {
  height: 34px;
  width: auto;
}
.portal-brand-divider {
  display: block;
  width: 1.5px;
  height: 22px;
  background: var(--smc-border);
}
.portal-brand-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--smc-primary);
  white-space: nowrap;
}

/* Nav links */
.portal-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--smc-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.portal-nav-link i { font-size: 0.95rem; }
.portal-nav-link:hover {
  background: rgba(47,60,76,0.06);
  color: var(--smc-primary);
}
.portal-nav-link.active {
  background: rgba(249,147,29,0.1);
  color: var(--smc-accent);
  font-weight: 600;
}
@media (max-width: 991px) {
  .portal-nav { display: none; }
}

/* User area */
.portal-user-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  flex-shrink: 0;
}
.portal-role-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--smc-muted);
  background: var(--smc-light);
  border: 1px solid var(--smc-border);
  border-radius: 50px;
  padding: 0.25rem 0.65rem;
}
@media (max-width: 575px) { .portal-role-badge { display: none; } }
.portal-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--smc-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  cursor: default;
}
.portal-user-name {
  font-size: 0.82rem;
  color: var(--smc-text);
  font-weight: 500;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-signout-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--smc-muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--smc-border);
  transition: background 0.15s, color 0.15s;
}
.portal-signout-btn:hover {
  background: rgba(220,53,69,0.07);
  color: #dc3545;
  border-color: rgba(220,53,69,0.2);
}

/* ── Portal mobile nav ────────────────────────────────────── */
.portal-mobile-nav {
  background: var(--smc-primary);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.15rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 2px solid var(--smc-accent);
}
.portal-mobile-nav::-webkit-scrollbar { display: none; }
.portal-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.portal-mobile-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.portal-mobile-nav a.active { background: rgba(249,147,29,0.18); color: var(--smc-accent); font-weight: 600; }
.portal-mobile-nav a i { font-size: 0.9rem; }

/* ── Portal main content ──────────────────────────────────── */
.portal-main {
  flex: 1;
  padding: 2rem 0;
}
.portal-content {
  padding: 0 1.25rem;
}

/* ── Greeting banner ──────────────────────────────────────── */
.portal-greeting-banner {
  background: #fff;
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.portal-greeting-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--smc-primary), var(--smc-accent));
}
.portal-greeting-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--smc-primary);
  margin: 0 0 0.2rem;
}
.portal-greeting-sub {
  font-size: 0.85rem;
  color: var(--smc-muted);
  margin: 0;
}

/* ── Portal action cards (linkable) ──────────────────────── */
.portal-action-card {
  display: block;
  cursor: pointer;
}
.portal-action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.portal-action-card:hover h5 { color: var(--smc-accent); }

/* ── Portal list (visit / log items) ─────────────────────── */
.portal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.portal-list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--smc-border);
}
.portal-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.portal-list-item:first-child { padding-top: 0; }

.pli-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.pli-avatar-orange { background: rgba(249,147,29,0.15); color: var(--smc-accent); }
.pli-avatar-navy   { background: rgba(47,60,76,0.1);    color: var(--smc-primary); }
.pli-avatar-green  { background: rgba(25,135,84,0.1);   color: #198754; }

.pli-body { flex: 1; min-width: 0; }
.pli-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--smc-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pli-meta {
  font-size: 0.78rem;
  color: var(--smc-muted);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Portal empty state ───────────────────────────────────── */
.portal-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--smc-muted);
}
.portal-empty-state > i {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  opacity: 0.35;
}
.portal-empty-state p {
  font-size: 0.85rem;
  color: var(--smc-muted);
  margin-bottom: 0.5rem;
}

/* ── Portal care plan definition list ────────────────────── */
.portal-care-plan-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
  margin: 0;
}
.portal-care-plan-dl dt {
  font-weight: 700;
  color: var(--smc-primary);
  white-space: nowrap;
}
.portal-care-plan-dl dd {
  color: var(--smc-text);
  margin: 0;
}

/* ── Client chip (staff dashboard) ───────────────────────── */
.portal-client-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.portal-client-chip:hover {
  border-color: var(--smc-accent);
  box-shadow: 0 2px 8px rgba(249,147,29,0.12);
}

/* ── Notice / info banner ─────────────────────────────────── */
.portal-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: rgba(249,147,29,0.06);
  border: 1.5px solid rgba(249,147,29,0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.portal-notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(249,147,29,0.12);
  color: var(--smc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Portal card link ─────────────────────────────────────── */
.portal-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--smc-accent);
  text-decoration: none;
}
.portal-card-link:hover { color: var(--smc-accent-dark); }

/* ── Portal account dropdown ──────────────────────────────── */
.portal-account-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px solid var(--smc-border);
  border-radius: 50px;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.portal-account-btn:hover,
.portal-account-btn[aria-expanded="true"] {
  border-color: var(--smc-accent);
  background: rgba(249,147,29,0.05);
}
.portal-account-btn::after { display: none; }

.portal-chevron {
  font-size: 0.7rem;
  color: var(--smc-muted);
  transition: transform 0.2s;
}
.portal-account-btn[aria-expanded="true"] .portal-chevron {
  transform: rotate(180deg);
}

.portal-account-dropdown {
  min-width: 220px;
  border: 1.5px solid var(--smc-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
  margin-top: 0.5rem !important;
}

.portal-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--smc-light);
  min-width: 0;
}

.portal-avatar-lg {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.portal-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--smc-text);
  transition: background 0.12s, color 0.12s;
}
.portal-dropdown-item i { font-size: 0.95rem; color: var(--smc-muted); }
.portal-dropdown-item:hover {
  background: rgba(47,60,76,0.05);
  color: var(--smc-primary);
}
.portal-dropdown-item:hover i { color: var(--smc-primary); }

.portal-dropdown-signout { color: #dc3545; }
.portal-dropdown-signout i { color: #dc3545; }
.portal-dropdown-signout:hover {
  background: rgba(220,53,69,0.07);
  color: #dc3545;
}

/* ── Portal footer strip ──────────────────────────────────── */
.portal-footer {
  background: #fff;
  border-top: 1.5px solid var(--smc-border);
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--smc-muted);
  margin-top: auto;
}
.portal-footer a {
  color: var(--smc-accent);
  text-decoration: none;
  font-weight: 500;
}
.portal-footer a:hover { color: var(--smc-accent-dark); }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  padding: 0.85rem 1.1rem;
}
.alert-success { background: rgba(25,135,84,0.1);  color: #146c43; }
.alert-danger  { background: rgba(220,53,69,0.1);  color: #a02030; }
.alert-info    { background: rgba(13,110,253,0.08); color: #0a4da8; }

/* ── Misc ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .admin-sidebar { display: none; }
}
@media (max-width: 575px) {
  .portal-greeting-banner { padding: 1.1rem 1.15rem; }
  .portal-greeting-title  { font-size: 1.15rem; }
  .portal-main { padding: 1.25rem 0; }
}
