/**
 * ═══════════════════════════════════════════════════════════════
 *  APP SHELL — Care Connect
 *  Shared app-like layout rules for all pages
 *
 *  Usage:
 *    <link rel="stylesheet" href="app-shell.css">
 *
 *  Provides: top app bar, bottom nav, safe areas,
 *  page transitions, touch feedback, branded loader.
 * ═══════════════════════════════════════════════════════════════
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. BASE RESET (lightweight, Bootstrap-compatible)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--brand-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. TOP APP BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.app-bar {
  position: sticky;
  top: 0;
  z-index: 1040;
  height: 60px;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-neutral-0);
  border-bottom: 1px solid var(--brand-border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.dark-theme .app-bar,
[data-theme="dark"] .app-bar {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: var(--brand-surface-dark-border);
}

.app-bar-logo {
  height: 34px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px var(--brand-glow));
}

.app-bar-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-theme .app-bar-title,
[data-theme="dark"] .app-bar-title {
  color: var(--brand-neutral-0);
}

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-bar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brand-text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.app-bar-btn:hover {
  background: var(--brand-neutral-100);
  color: var(--brand-text-primary);
}

body.dark-theme .app-bar-btn:hover,
[data-theme="dark"] .app-bar-btn:hover {
  background: var(--brand-surface-dark-card);
}

.app-bar-btn.active {
  color: var(--brand-primary-500);
  background: var(--brand-primary-50);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3B. DESKTOP NAV BAR (visible on desktop, hidden on mobile)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.desktop-nav {
  display: flex;
  gap: 2px;
  background: var(--brand-surface-card);
  border-bottom: 1px solid var(--brand-border-light);
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.desktop-nav-item:hover {
  color: var(--brand-primary-500);
  background: var(--brand-primary-50);
}

.desktop-nav-item.active {
  color: var(--brand-primary-600);
  border-bottom-color: var(--brand-primary-500);
}

.desktop-nav-item i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. BOTTOM TAB NAV
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--brand-neutral-0);
    opacity: 0.98;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--brand-border-light);
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    padding-left: max(4px, env(safe-area-inset-left, 0px));
    padding-right: max(4px, env(safe-area-inset-right, 0px));
  }

  body.dark-theme .bottom-nav,
  [data-theme="dark"] .bottom-nav {
    background: rgba(30, 41, 59, 0.96);
    border-top-color: var(--brand-surface-dark-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--brand-text-tertiary);
    font-size: 10px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease;
    gap: 2px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item .nav-icon,
  .bottom-nav-item > i {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.15s ease;
  }

  .bottom-nav-item span {
    font-size: 10px;
    line-height: 1;
  }

  .bottom-nav-item.active {
    color: var(--brand-primary-500);
  }

  .bottom-nav-item.active .nav-icon,
  .bottom-nav-item.active > i {
    transform: scale(1.1);
    width: 40px;
    height: 40px;
  border-radius: 50%;
  background: var(--brand-primary-500);
  color: var(--brand-neutral-0);
  display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-top: -8px;
    box-shadow: 0 4px 12px var(--brand-glow);
  }

  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-primary-500);
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
  }

  body.dark-theme .bottom-nav-item,
  [data-theme="dark"] .bottom-nav-item {
    color: var(--brand-neutral-400);
  }

  body.dark-theme .bottom-nav-item.active,
  [data-theme="dark"] .bottom-nav-item.active {
    color: var(--brand-primary-400);
  }
}

/* Hide bottom nav text labels on very small screens */
@media (max-width: 368px) {
  .bottom-nav-item span {
    display: none;
  }
  .bottom-nav-item {
    justify-content: center;
    padding: 8px 0;
  }
  .bottom-nav-item.active > i,
  .bottom-nav-item.active .nav-icon {
    margin-top: 0;
  }
}

/* Chat widget mobile positioning */
@media (max-width: 768px) {
  #chatToggle {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    z-index: 1060 !important;
    border-radius: 50px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
  }
  #chatBox {
    bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    z-index: 1060 !important;
    width: min(300px, calc(100vw - 32px)) !important;
  }
}

/* Modal footer stacking on small screens */
@media (max-width: 480px) {
  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }
  .modal-footer .btn {
    width: 100%;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. SAFE AREA UTILITIES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.safe-top { padding-top: env(safe-area-inset-top, 0px); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
.safe-left { padding-left: env(safe-area-inset-left, 0px); }
.safe-right { padding-right: env(safe-area-inset-right, 0px); }

@media (max-width: 768px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #appointmentCards {
    padding-bottom: 100px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. BRANDED LOADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#careLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--brand-surface-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#careLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#careLoader img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  animation: carePulse 1.5s ease-in-out infinite;
}

#careLoader .loader-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

#careLoader .loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--brand-primary-500);
  border-radius: 50%;
  animation: careSpin 0.8s linear infinite;
}

@keyframes carePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes careSpin {
  to { transform: rotate(360deg); }
}

@keyframes carePopIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. PAGE TRANSITIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.app-content {
  animation: pageEnter 0.25s ease forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. TOUCH FEEDBACK
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.touchable {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.touchable:active {
  transform: scale(0.97);
}

.touchable-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.touchable-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--brand-shadow-lg);
}

.touchable-lift:active {
  transform: scale(0.98);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. BRAND BUTTONS (additive, doesn't override Bootstrap)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-brand {
  background: var(--brand-gradient);
  color: var(--brand-neutral-0);
  border: none;
  font-weight: 700;
  border-radius: var(--brand-radius-pill);
  padding: 10px 24px;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: all 0.2s ease;
}

.btn-brand:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 6px 20px var(--brand-glow-strong);
  transform: translateY(-1px);
  color: var(--brand-neutral-0);
}

.btn-brand:active {
  transform: scale(0.97);
}

.btn-brand-outline {
  background: transparent;
  color: var(--brand-text-secondary);
  border: 1.5px solid var(--brand-border);
  font-weight: 600;
  border-radius: var(--brand-radius-pill);
  padding: 10px 24px;
  transition: all 0.2s ease;
}

.btn-brand-outline:hover {
  border-color: var(--brand-primary-500);
  color: var(--brand-primary-500);
  background: var(--brand-primary-50);
}

body.dark-theme .btn-brand-outline,
[data-theme="dark"] .btn-brand-outline {
  border-color: var(--brand-surface-dark-border);
  color: var(--brand-neutral-300);
}

body.dark-theme .btn-brand-outline:hover,
[data-theme="dark"] .btn-brand-outline:hover {
  border-color: var(--brand-primary-400);
  color: var(--brand-primary-400);
  background: rgba(249, 115, 22, 0.1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. BRAND CARD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.brand-card {
  background: var(--brand-surface-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-lg);
  padding: 16px;
  box-shadow: var(--brand-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.dark-theme .brand-card,
[data-theme="dark"] .brand-card {
  background: var(--brand-surface-dark-card);
  border-color: var(--brand-surface-dark-border);
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. BRAND INPUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.brand-input {
  width: 100%;
  background: var(--brand-surface-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--brand-text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brand-input:focus {
  border-color: var(--brand-primary-500);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.brand-input::placeholder {
  color: var(--brand-text-tertiary);
}

body.dark-theme .brand-input,
[data-theme="dark"] .brand-input {
  background: var(--brand-surface-dark);
  border-color: var(--brand-surface-dark-border);
  color: var(--brand-neutral-0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. BOTTOM SHEET
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1065;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1070;
  background: var(--brand-surface-card);
  border-radius: var(--brand-radius-card) var(--brand-radius-card) 0 0;
  padding: 12px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  max-height: 70vh;
  overflow-y: auto;
}

body.dark-theme .bottom-sheet-panel,
[data-theme="dark"] .bottom-sheet-panel {
  background: var(--brand-surface-dark-card);
}

.bottom-sheet-panel.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand-neutral-300);
  margin: 0 auto 12px;
}

.bottom-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--brand-border-light);
  color: var(--brand-text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bottom-sheet-item:last-child {
  border-bottom: none;
}

.bottom-sheet-item:active {
  background: var(--brand-neutral-50);
}

.bottom-sheet-item .sheet-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--brand-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary-50);
  color: var(--brand-primary-500);
  flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. TOAST / SNACKBAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.brand-toast {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 1080;
  background: var(--brand-surface-card);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-primary-500);
  border-radius: var(--brand-radius-md);
  padding: 12px 16px;
  box-shadow: var(--brand-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-text-primary);
  transform: translateX(calc(100% + 20px));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 340px;
}

.brand-toast.show {
  transform: translateX(0);
}

.brand-toast.success { border-left-color: var(--brand-success); }
.brand-toast.warning { border-left-color: var(--brand-warning); }
.brand-toast.error { border-left-color: var(--brand-error); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. STATUS BADGES (brand-consistent)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--brand-radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-badge-pending {
  background: var(--brand-warning-light);
  color: var(--brand-warning-dark);
}

.brand-badge-completed {
  background: var(--brand-success-light);
  color: var(--brand-success-dark);
}

.brand-badge-cancelled {
  background: var(--brand-error-light);
  color: var(--brand-error-dark);
}

.brand-badge-active {
  background: var(--brand-primary-100);
  color: var(--brand-primary-700);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. DARK MODE TOGGLE BUTTON
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brand-text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--brand-neutral-100);
}

body.dark-theme .theme-toggle:hover,
[data-theme="dark"] .theme-toggle:hover {
  background: var(--brand-surface-dark-border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. SCROLLBAR STYLING
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--brand-neutral-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-neutral-400);
}

body.dark-theme ::-webkit-scrollbar-thumb,
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--brand-surface-dark-border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. PRINT STYLES (preserves existing print CSS)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media print {
  .app-bar,
  .bottom-nav,
  .bottom-sheet-overlay,
  .bottom-sheet-panel,
  #careLoader,
  .brand-toast {
    display: none !important;
  }

  body {
    padding: 0 !important;
    background: #fff !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   17. APP BAR LOGO CIRCLE (orange circular logo icon)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.app-bar-logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--brand-glow);
}

.app-bar-logo-circle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   18. NOTIFICATION BELL WITH BADGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.notification-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brand-text-muted);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notification-bell:hover {
  background: var(--brand-neutral-100);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-error);
  color: var(--brand-neutral-0);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-neutral-0);
  line-height: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19. USER AVATAR (orange circle with initials)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-primary-500);
  color: var(--brand-neutral-0);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  border: 2px solid var(--brand-primary-100);
}

.user-avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--brand-text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   20. STAT CARD (white card with left colored border)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.stat-card {
  background: var(--brand-surface-card);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-primary-500);
  border-radius: var(--brand-radius-md);
  padding: 16px;
  box-shadow: var(--brand-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-card-green { border-left-color: var(--brand-success); }
.stat-card-blue { border-left-color: var(--brand-secondary-500); }
.stat-card-red { border-left-color: var(--brand-error); }
.stat-card-yellow { border-left-color: var(--brand-warning); }

.stat-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-card-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-text-primary);
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--brand-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}

.stat-card-icon-orange {
  background: var(--brand-primary-50);
  color: var(--brand-primary-500);
}

.stat-card-icon-green {
  background: var(--brand-success-soft);
  color: var(--brand-success);
}

.stat-card-icon-blue {
  background: var(--brand-info-soft);
  color: var(--brand-info);
}

.stat-card-icon-red {
  background: var(--brand-error-soft);
  color: var(--brand-error);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   21. ICON CIRCLE (circular colored background for icons)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-circle-orange {
  background: var(--brand-primary-50);
  color: var(--brand-primary-500);
}

.icon-circle-green {
  background: var(--brand-success-soft);
  color: var(--brand-success);
}

.icon-circle-blue {
  background: var(--brand-info-soft);
  color: var(--brand-info);
}

.icon-circle-red {
  background: var(--brand-error-soft);
  color: var(--brand-error);
}

.icon-circle-yellow {
  background: var(--brand-warning-soft);
  color: var(--brand-warning);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   22. MENU LIST CARD (for More Options / settings pages)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.menu-list-card {
  background: var(--brand-surface-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-lg);
  overflow: hidden;
  box-shadow: var(--brand-shadow-sm);
}

.menu-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--brand-border-light);
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.menu-list-item:last-child {
  border-bottom: none;
}

.menu-list-item:hover {
  background: var(--brand-neutral-50);
}

.menu-list-item:active {
  background: var(--brand-neutral-100);
}

.menu-list-item-content {
  flex: 1;
  min-width: 0;
}

.menu-list-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text-primary);
  margin-bottom: 2px;
}

.menu-list-item-desc {
  font-size: 12px;
  color: var(--brand-text-muted);
}

.menu-list-item-arrow {
  color: var(--brand-text-tertiary);
  font-size: 16px;
  flex-shrink: 0;
}

.menu-list-item-logout {
  border-left: 4px solid var(--brand-error);
}

.menu-list-item-logout .menu-list-item-title {
  color: var(--brand-error);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   23. OVERVIEW / HERO CARD (dark gradient card)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.overview-card {
  background: linear-gradient(135deg, var(--brand-surface-dark-card), var(--brand-surface-dark));
  border-radius: var(--brand-radius-lg);
  padding: 20px;
  color: var(--brand-neutral-0);
  position: relative;
  overflow: hidden;
}

.overview-card::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.overview-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.overview-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-neutral-0);
  margin-bottom: 4px;
}

.overview-card-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.overview-card-stat {
  position: absolute;
  top: 20px;
  right: 20px;
  text-align: right;
}

.overview-card-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-neutral-0);
}

.overview-card-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   24. SECTION HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.section-header {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--brand-text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   25. PROGRESS BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.brand-progress {
  width: 100%;
  height: 8px;
  background: var(--brand-neutral-100);
  border-radius: 4px;
  overflow: hidden;
}

.brand-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.brand-progress-orange { background: var(--brand-primary-500); }
.brand-progress-green { background: var(--brand-success); }
.brand-progress-red { background: var(--brand-error); }
.brand-progress-blue { background: var(--brand-secondary-500); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   26. ORANGE GRADIENT BANNER (hero/summary card)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.brand-banner {
  background: linear-gradient(135deg, var(--brand-primary-500), var(--brand-primary-600));
  border-radius: var(--brand-radius-lg);
  padding: 24px;
  color: var(--brand-neutral-0);
  position: relative;
  overflow: hidden;
}

.brand-banner::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.brand-banner-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.brand-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-neutral-0);
  margin-bottom: 4px;
}

.brand-banner-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.brand-banner-stat {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--brand-radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-neutral-0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   27. FILTER PILLS (horizontal scrollable)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--brand-radius-pill);
  border: 1px solid var(--brand-border);
  background: var(--brand-surface-card);
  color: var(--brand-text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.filter-pill:hover {
  border-color: var(--brand-primary-300);
  color: var(--brand-primary-600);
}

.filter-pill.active {
  background: var(--brand-primary-500);
  border-color: var(--brand-primary-500);
  color: var(--brand-neutral-0);
  box-shadow: 0 2px 8px var(--brand-glow);
}

.filter-pill-count {
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.filter-pill.active .filter-pill-count {
  background: rgba(255,255,255,0.25);
  color: var(--brand-neutral-0);
}

.filter-pill:not(.active) .filter-pill-count {
  background: var(--brand-neutral-100);
  color: var(--brand-text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   28. SEARCH BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.brand-search {
  width: 100%;
  background: var(--brand-neutral-50);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-pill);
  padding: 10px 16px 10px 40px;
  font-size: 14px;
  color: var(--brand-text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brand-search:focus {
  border-color: var(--brand-primary-400);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: var(--brand-neutral-0);
}

.brand-search::placeholder {
  color: var(--brand-text-tertiary);
}

.brand-search-wrapper {
  position: relative;
}

.brand-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-text-tertiary);
  font-size: 16px;
  pointer-events: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   29. ADD BUTTON (orange pill with + icon)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--brand-radius-pill);
  background: var(--brand-primary-500);
  color: var(--brand-neutral-0);
  border: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--brand-glow);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-add:hover {
  background: var(--brand-primary-600);
  box-shadow: 0 4px 12px var(--brand-glow-strong);
  transform: translateY(-1px);
  color: var(--brand-neutral-0);
}

.btn-add:active {
  transform: scale(0.97);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   30. CATEGORY ROW (icon + label + progress + value)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-border-light);
}

.category-row:last-child {
  border-bottom: none;
}

.category-icon {
  width: 28px;
  font-size: 18px;
  text-align: center;
  flex-shrink: 0;
}

.category-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-text-primary);
}

.category-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text-primary);
  flex-shrink: 0;
}

.category-bar {
  flex: 1;
  max-width: 200px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   31. PRIORITY BADGE (URGENT, IMPORTANT, etc.)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--brand-radius-sm);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-urgent {
  background: var(--brand-error-light);
  color: var(--brand-error);
}

.priority-important {
  background: var(--brand-warning-light);
  color: var(--brand-warning-dark);
}

.priority-normal {
  background: var(--brand-neutral-100);
  color: var(--brand-text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   32. WING / GROUP CARD (compact info card)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wing-card {
  background: var(--brand-surface-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--brand-shadow-sm);
  transition: transform 0.15s ease;
}

.wing-card:hover {
  transform: translateY(-1px);
}

.wing-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--brand-radius-sm);
  background: var(--brand-primary-50);
  color: var(--brand-primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.wing-card-content {
  flex: 1;
  min-width: 0;
}

.wing-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text-primary);
  margin-bottom: 2px;
}

.wing-card-meta {
  font-size: 11px;
  color: var(--brand-text-muted);
}

.wing-card-action {
  color: var(--brand-error);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   33. MEMBER / LIST CARD (avatar + info + badge)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.member-card {
  background: var(--brand-surface-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--brand-shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.member-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--brand-shadow-md);
}

.member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-primary-100);
  color: var(--brand-primary-700);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-content {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-name .online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-success);
  flex-shrink: 0;
}

.member-meta {
  font-size: 11px;
  color: var(--brand-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.member-role-badge {
  padding: 3px 8px;
  border-radius: var(--brand-radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.role-owner { background: var(--brand-primary-50); color: var(--brand-primary-700); }
.role-tenant { background: var(--brand-info-soft); color: var(--brand-info); }
.role-security { background: var(--brand-neutral-100); color: var(--brand-text-secondary); }
.role-treasurer { background: var(--brand-success-soft); color: var(--brand-success-dark); }
.role-resident { background: var(--brand-primary-50); color: var(--brand-primary-600); }
.role-committee { background: var(--brand-warning-soft); color: var(--brand-warning-dark); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   34. REPORT SUMMARY CARD (dark navy)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.report-card {
  background: linear-gradient(135deg, var(--brand-surface-dark-card), var(--brand-surface-dark));
  border-radius: var(--brand-radius-lg);
  padding: 24px;
  color: var(--brand-neutral-0);
  position: relative;
  overflow: hidden;
}

.report-card-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.report-card-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-neutral-0);
  margin-bottom: 4px;
}

.report-card-date {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  position: absolute;
  top: 24px;
  right: 24px;
}

.report-card-stats {
  display: flex;
  gap: 1px;
  margin-top: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--brand-radius-sm);
  overflow: hidden;
}

.report-card-stat {
  flex: 1;
  padding: 12px;
  text-align: center;
}

.report-card-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.report-card-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-neutral-0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   35. DATE SELECTOR CARD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.date-selector {
  display: flex;
  gap: 12px;
}

.date-selector-field {
  flex: 1;
}

.date-selector-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-text-secondary);
  margin-bottom: 6px;
}

.date-selector-input {
  width: 100%;
  background: var(--brand-surface-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-md);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-text-primary);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M2.5 4.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.date-selector-input:focus {
  border-color: var(--brand-primary-400);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   36. BACK BUTTON (consistent across all pages)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--brand-radius-pill);
  border: 1.5px solid var(--brand-primary-500);
  background: transparent;
  color: var(--brand-primary-500);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-back:hover {
  background: var(--brand-primary-50);
  border-color: var(--brand-primary-600);
  color: var(--brand-primary-600);
}

.btn-back i {
  font-size: 16px;
}

@media (max-width: 480px) {
  .btn-back {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    justify-content: center;
  }
  .btn-back .btn-back-label {
    display: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   36B. CONFIGURE BUTTON (orange outline with gear)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-configure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--brand-radius-pill);
  border: 1.5px solid var(--brand-primary-500);
  background: transparent;
  color: var(--brand-primary-500);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-configure:hover {
  background: var(--brand-primary-50);
  border-color: var(--brand-primary-600);
  color: var(--brand-primary-600);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   36C. ICON CIRCLE BUTTON (uniform small icon buttons for tables/cards)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-icon-circle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-border);
  background: var(--brand-neutral-0);
  color: var(--brand-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-circle:hover {
  background: var(--brand-primary-50);
  border-color: var(--brand-primary-400);
  color: var(--brand-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.15);
}

.btn-icon-circle:active {
  transform: scale(0.95);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   37. FEE INFO ROW (Owner ₹2,500 | Tenant ₹1,500 | Late ₹200)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fee-info-row {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  background: var(--brand-neutral-50);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-md);
  font-size: 13px;
  color: var(--brand-text-secondary);
}

.fee-info-item strong {
  color: var(--brand-text-primary);
  font-weight: 700;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   38. PAGE HEADER (subtitle + title + action)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.page-header-text {
  min-width: 0;
}

.page-header-subtitle {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin-bottom: 2px;
}

.page-header-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-text-primary);
}

.page-header-desc {
  font-size: 12px;
  color: var(--brand-text-muted);
  margin-top: 2px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   40. PRODUCTION TABLE STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.table {
  border-color: var(--brand-border);
}

.table thead th {
  background: var(--brand-surface-bg) !important;
  color: var(--brand-text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--brand-border);
  white-space: nowrap;
}

.table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-color: var(--brand-border-light);
  font-size: 13px;
}

.table tbody tr:hover {
  background: var(--brand-primary-50);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   41. MOBILE RESPONSIVE APP-BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 480px) {
  .app-bar {
    height: 54px;
    padding: 0 12px;
    gap: 10px;
  }
  .app-bar-logo-circle {
    width: 34px;
    height: 34px;
  }
  .app-bar-logo-circle img {
    width: 20px;
    height: 20px;
  }
  .user-info {
    min-width: 0;
    flex: 1;
  }
  .user-name {
    font-size: 13px;
  }
  .user-role {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .notification-bell {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .user-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
}
