
:root {
  /* Greens */
  --forest-950: #08211a;
  --forest-900: #0e3a2c;
  --forest-800: #144e3b;
  --forest-700: #1b6349;
  --forest-600: #227458;
  --forest-500: #2e8a63;
  --forest-300: #7fb89d;
  --sage-100: #e7f1ea;
  --sage-200: #d3e5da;

  /* Neutrals */
  --paper: #ffffff;
  --ivory: #fbfaf6;
  --ink: #10241c;
  --ink-muted: #526158;
  --line: #d8e4dc;

  /* Red accent — used sparingly for status/highlights only */
  --accent-red-700: #a3382b;
  --accent-red-600: #b8493a;
  --accent-red-100: #f6e9e6;
  --accent-red-200: #e6bdb2;

  /* Status accents — kept muted so green stays the brand color */
  --status-approved: var(--forest-700);
  --status-pending: #a9832f;
  --status-danger: var(--accent-red-700);
  --status-secondary: #7c8a83;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 58, 44, 0.09);
  --shadow-md: 0 10px 28px rgba(14, 58, 44, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------- */
/* Base                                                                   */
/* --------------------------------------------------------------------- */

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
}

body.bg-light {
  background: var(--ivory) !important;
}

h1, h2, h3, h4, h5, h6,
.card-title {
  font-family: var(--font-display);
  color: var(--forest-950);
  letter-spacing: -0.01em;
}

a {
  color: var(--forest-700);
}
a:hover {
  color: var(--forest-900);
}

.text-primary { color: var(--forest-700) !important; }
.text-muted { color: var(--ink-muted) !important; }

/* --------------------------------------------------------------------- */
/* Navbar                                                                 */
/* --------------------------------------------------------------------- */

.navbar {
  background: var(--forest-950) !important;
  box-shadow: var(--shadow-sm);
}
.navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--paper) !important;
}
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--paper) !important;
}
.navbar .nav-link.active {
  position: relative;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -2px;
  height: 2px;
  background: var(--forest-500);
  border-radius: 2px;
}

/* -- Site-specific navbar markup (header.php) -------------------------- */

.site-navbar {
  background: var(--forest-950) !important;
  padding: 0.65rem 0;
  border-bottom: 2px solid var(--accent-red-700);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--accent-red-700);
}
.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}
.navbar-brand {
  white-space: nowrap;
  min-width: 0;
}
@media (min-width: 992px) {
  .brand-text {
    max-width: 640px;
  }
}
@media (max-width: 480px) {
  .brand-text {
    font-size: 0.8rem;
    max-width: 150px;
  }
}

.back-arrow {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
}
.back-arrow:hover {
  color: var(--paper);
}

.nav-pill {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-pill:hover {
  color: var(--paper) !important;
  background: rgba(255, 255, 255, 0.08);
}
.nav-pill.active {
  color: var(--paper) !important;
  background: var(--forest-700);
}

.logout-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.15s ease, color 0.15s ease;
}
.logout-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

/* -- Profile dropdown menu ---------------------------------------------- */

.profile-menu-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.25rem;
  flex-shrink: 0;
}
.profile-menu-btn::after {
  display: none;
}
.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 0 2px var(--accent-red-700);
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--accent-red-700);
}
.profile-photo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 0 0 2px var(--accent-red-700);
}

.btn-accent-ring {
  border: 2px solid var(--accent-red-700) !important;
}

.profile-dropdown {
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  margin-top: 0.6rem;
}
.profile-dropdown-header {
  padding: 0.5rem 1rem 0.6rem;
}
.profile-dropdown-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-950);
  font-size: 0.95rem;
}
.profile-dropdown-email {
  color: var(--ink-muted);
  font-size: 0.78rem;
}
.profile-dropdown-item {
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.profile-dropdown-label {
  color: var(--ink-muted);
}
.profile-dropdown-value {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
.profile-dropdown .dropdown-item {
  font-size: 0.85rem;
}
.profile-dropdown .dropdown-item:hover,
.profile-dropdown .dropdown-item:focus {
  background: var(--sage-100);
  color: var(--forest-900);
}
.profile-dropdown-logout {
  color: var(--accent-red-700) !important;
  font-weight: 600;
}
.profile-dropdown-logout:hover {
  background: var(--accent-red-100) !important;
  color: var(--accent-red-700) !important;
}

/* -- Logout confirmation modal ------------------------------------------ */

.logout-modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
}
.logout-modal-content .modal-header {
  background: var(--forest-950);
  color: var(--paper);
  border-bottom: 2px solid var(--accent-red-700);
}
.logout-modal-content .modal-title {
  font-family: var(--font-display);
}
.logout-modal-body {
  padding: 2rem 1.5rem;
  text-align: center;
}
.logout-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-red-100);
  color: var(--accent-red-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.logout-modal-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-950);
  margin-bottom: 0.35rem;
}
.logout-modal-subtext {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}
.logout-modal-content .modal-footer {
  border-top: 1px solid var(--line);
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1.5rem;
}
.btn-danger-custom {
  background: var(--accent-red-700);
  color: var(--paper) !important;
  border: none;
  font-weight: 600;
}
.btn-danger-custom:hover {
  background: var(--accent-red-600);
  color: var(--paper) !important;
}

/* -- Consent modal (login.php) ------------------------------------------ */

.consent-modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
}
.consent-modal-content .modal-header {
  background: var(--forest-950);
  color: var(--paper);
  border-bottom: 2px solid var(--accent-red-700);
}
.consent-modal-content .modal-title {
  font-family: var(--font-display);
}
.consent-modal-content .modal-body {
  padding: 1.5rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.65;
  max-height: 60vh;
  overflow-y: auto;
}
.consent-modal-content .modal-body h6 {
  font-family: var(--font-display);
  color: var(--forest-900);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}
.consent-modal-content .modal-body h6:first-child {
  margin-top: 0;
}
.consent-modal-content .modal-footer {
  border-top: 1px solid var(--line);
}

.consent-check {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.consent-check .form-check-input:checked {
  background-color: var(--forest-700);
  border-color: var(--forest-700);
}
.consent-check a {
  color: var(--forest-700);
  font-weight: 600;
  text-decoration: underline;
}
.consent-check a:hover {
  color: var(--forest-900);
}

/* -- Time slot availability picker (appointments.php) ------------------- */

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.slot-btn {
  flex: 1 1 calc(33.333% - 0.5rem);
  min-width: 90px;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--forest-900);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.slot-btn:hover:not(:disabled) {
  border-color: var(--forest-700);
  background: var(--sage-100);
}
.slot-btn.slot-selected {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: var(--paper);
}
.slot-btn.slot-booked {
  background: var(--accent-red-100);
  border-color: var(--accent-red-200);
  color: var(--accent-red-700);
  cursor: not-allowed;
  opacity: 0.85;
  text-decoration: line-through;
}
.slot-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}
.slot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.slot-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.slot-legend-dot.available { background: var(--forest-700); }
.slot-legend-dot.busy { background: var(--accent-red-700); }

/* --------------------------------------------------------------------- */
/* Cards                                                                  */
/* --------------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.card.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

/* Property cards on the listings grid get a hover lift; utility cards
   (forms, dashboards) stay still, since motion should mean "interactive". */
.col-lg-4 > .card.h-100:hover,
.col-md-6 > .card.h-100:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card { transition: box-shadow 0.18s ease, transform 0.18s ease; }

.card-img-top {
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */

.btn-primary {
  background: var(--forest-700);
  border-color: var(--forest-700);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--forest-900);
  border-color: var(--forest-900);
}
.btn-primary:active {
  background: var(--forest-950) !important;
  border-color: var(--forest-950) !important;
}

.btn-outline-primary {
  color: var(--forest-700);
  border-color: var(--forest-700);
}
.btn-outline-primary:hover {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

/* --------------------------------------------------------------------- */
/* Forms                                                                  */
/* --------------------------------------------------------------------- */

.form-label {
  font-weight: 600;
  color: var(--forest-900);
  font-size: 0.92rem;
}

.form-control,
.form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--forest-500);
  box-shadow: 0 0 0 0.2rem rgba(46, 138, 99, 0.18);
}

/* --------------------------------------------------------------------- */
/* Tables                                                                 */
/* --------------------------------------------------------------------- */

.table {
  --bs-table-bg: var(--paper);
  border-color: var(--line);
}
.table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-950);
  border-bottom: 2px solid var(--forest-700);
  background: var(--paper);
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--sage-100);
}

/* --------------------------------------------------------------------- */
/* Badges / status pills                                                  */
/* --------------------------------------------------------------------- */

.badge {
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.4em 0.75em;
  border-radius: 999px;
}
.badge.bg-success { background: var(--status-approved) !important; }
.badge.bg-warning { background: var(--status-pending) !important; color: var(--paper) !important; }
.badge.bg-danger  { background: var(--status-danger) !important; }
.badge.bg-secondary { background: var(--status-secondary) !important; }

/* --------------------------------------------------------------------- */
/* Alerts                                                                 */
/* --------------------------------------------------------------------- */

.alert-info {
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  color: var(--forest-950);
}
.alert-success {
  background: var(--sage-100);
  border: 1px solid var(--forest-300);
  color: var(--forest-900);
}
.alert-danger {
  background: var(--accent-red-100);
  border: 1px solid var(--accent-red-200);
  color: var(--accent-red-700);
}

/* --------------------------------------------------------------------- */
/* Auth pages (login.php / register.php)                                 */
/* --------------------------------------------------------------------- */

body.auth-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(46, 138, 99, 0.25), transparent 45%),
    linear-gradient(160deg, var(--forest-950) 0%, var(--forest-800) 55%, var(--forest-700) 100%);
  min-height: 100vh;
}
body.auth-page .card {
  border: none;
  border-top: 4px solid var(--accent-red-700);
  box-shadow: var(--shadow-md);
}
body.auth-page h4 {
  color: var(--forest-950);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.auth-brand .logo-badge {
  width: 56px;
  height: 56px;
}
.auth-brand .brand-text {
  font-size: 1.5rem;
  color: var(--paper);
}

.password-field {
  position: relative;
}
.password-field .form-control {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.3rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.password-toggle:hover {
  color: var(--forest-700);
  background: var(--sage-100);
}
.password-toggle.is-visible {
  color: var(--forest-700);
}

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */

footer {
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.75);
}
footer a {
  color: rgba(255, 255, 255, 0.85);
}
footer a:hover {
  color: var(--paper);
}

/* --------------------------------------------------------------------- */
/* Chatbot widget                                                        */
/* Generic hooks — adjust selectors to match your actual widget markup.  */
/* --------------------------------------------------------------------- */

.chatbot-toggle {
  background: var(--forest-700);
  color: var(--paper);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  border: none;
}
.chatbot-toggle:hover {
  background: var(--forest-900);
}

.chatbot-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chatbot-panel .chatbot-header {
  background: var(--forest-950);
  color: var(--paper);
  font-family: var(--font-display);
  padding: 0.9rem 1.1rem;
}
.chatbot-panel .chatbot-body {
  background: var(--ivory);
}
.chatbot-message.bot {
  background: var(--sage-100);
  color: var(--ink);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 2px;
}
.chatbot-message.user {
  background: var(--forest-700);
  color: var(--paper);
  border-radius: var(--radius-md) var(--radius-md) 2px var(--radius-md);
}

/* --------------------------------------------------------------------- */
/* Chatbot widget (footer.php / assets/chatbot.js)                       */
/* --------------------------------------------------------------------- */

#chat-toggle-btn {
  background: var(--forest-700) !important;
  border-color: var(--forest-700) !important;
  font-size: 1.4rem;
}
#chat-toggle-btn:hover {
  background: var(--forest-900) !important;
  border-color: var(--forest-900) !important;
}

#chat-widget .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
#chat-widget .card-header.bg-primary {
  background: var(--forest-950) !important;
  font-family: var(--font-display);
  border-bottom: 2px solid var(--accent-red-700);
}
#chat-widget .card-header .btn-light {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--paper);
}
#chat-widget .card-header .btn-light:hover {
  background: rgba(255, 255, 255, 0.28);
}

#chat-box .badge.bg-primary {
  background: var(--forest-700) !important;
  font-weight: 500;
  font-size: 0.85rem;
}
#chat-box .badge.bg-secondary {
  background: var(--sage-100) !important;
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 0.85rem;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chat-option-btn {
  background: var(--paper);
  border: 1px solid var(--forest-700);
  color: var(--forest-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.chat-option-btn:hover {
  background: var(--forest-700);
  color: var(--paper);
}

#chat-widget .card-footer .btn-primary {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

/* --------------------------------------------------------------------- */
/* Property carousel — auto-rotating ad-style banner (index.php)         */
/* --------------------------------------------------------------------- */

.property-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--accent-red-700);
  max-width: 420px;
}

.property-slide-link {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.property-slide-img {
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-slide-link:hover .property-slide-img {
  transform: scale(1.04);
}

.property-slide-ribbon {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--accent-red-700);
  color: var(--paper);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  z-index: 2;
}

.property-slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem 1rem;
  background: linear-gradient(to top, rgba(8, 33, 26, 0.9), transparent 70%);
  text-align: left;
}

.property-slide-title {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1rem;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.property-slide-address {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
}

.property-slide-cta {
  display: inline-block;
  color: var(--paper);
  background: var(--forest-700);
  font-weight: 600;
  font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  width: fit-content;
  transition: background 0.2s ease;
}
.property-slide-link:hover .property-slide-cta {
  background: var(--forest-900);
}

.property-carousel .carousel-indicators {
  margin-bottom: 0.4rem;
}
.property-carousel .carousel-indicators [data-bs-target] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 3px;
  opacity: 1;
}
.property-carousel .carousel-indicators .active {
  background-color: var(--accent-red-700);
}

.property-carousel .carousel-control-prev,
.property-carousel .carousel-control-next {
  width: 32px;
  opacity: 0.85;
}
.property-carousel .carousel-control-prev-icon,
.property-carousel .carousel-control-next-icon {
  background-color: rgba(14, 58, 44, 0.55);
  border-radius: 50%;
  padding: 12px;
  background-size: 50%;
}

@media (max-width: 767.98px) {
  .property-carousel {
    max-width: 100%;
  }
  .property-slide-img {
    height: 140px;
  }
}

/* --------------------------------------------------------------------- */
/* Focus visibility (accessibility floor)                                */
/* --------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--forest-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .navbar .nav-link { transition: none !important; }
}

/* --------------------------------------------------------------------- */
/* Admin layout (dashboard topbar + sidebar)                             */
/* Moved out of admin/includes/header.php's inline <style> block so all  */
/* styling lives in the shared stylesheets, same as the rest of the app. */
/* --------------------------------------------------------------------- */

.admin-topbar {
  background: var(--forest-950);
  color: var(--paper);
  padding: 0.6rem 1.5rem;
  border-bottom: 2px solid var(--accent-red-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-topbar .brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.admin-topbar-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
}
.admin-topbar-link:hover {
  color: var(--paper);
}
.admin-topbar-logout {
  color: var(--paper);
  background: var(--accent-red-700);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.admin-topbar-logout:hover {
  background: var(--accent-red-600);
  color: var(--paper);
}

.admin-content {
  padding: 2rem;
  background: var(--ivory);
  min-height: calc(100vh - 54px);
}
.admin-content h4 {
  font-family: var(--font-display);
  color: var(--forest-950);
}

.stat-card-link { text-decoration: none; display: block; }
.stat-card-link .card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.stat-card-link:hover .card {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(8, 33, 26, 0.15);
}

@media (max-width: 480px) {
  .admin-topbar {
    flex-wrap: wrap;
  }
  .admin-topbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

/* Navbar: laging nasa isang linya, nasa kanan ang logout */
.site-navbar .container-fluid {
    flex-wrap: nowrap;
    gap: 10px;
}
.site-navbar .container-fluid > .d-flex {
    min-width: 0;
    flex: 1 1 auto;
}
.site-navbar .back-arrow,
.site-navbar .profile-menu-btn,
.site-navbar .logout-icon-btn {
    flex: 0 0 auto;
}
.site-navbar .navbar-brand {
    min-width: 0;
    margin-right: 0;
}
.site-navbar .brand-text {
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .site-navbar .brand-text {
        font-size: 0.78rem;
    }
    .site-navbar .container-fluid > .d-flex {
        gap: 0.5rem !important;
    }
}