/* DoorBell — student-portal styles.
 * Loaded after assets/css/base.css. Contains :root tokens, portal-specific
 * primary/accent colors, and rules that intentionally differ from the other
 * two portals (see DESIGN.md for the three-portal-identity rationale).
 */

:root {
      --primary:        #2563eb;
      --primary-dark:   #2563eb;
      --primary-light:  rgba(37,99,235,.10);
      --primary-mid:    rgba(37,99,235,.10);
      --ink:            #0f172a;
      --ink-secondary:  rgba(15,23,42,.72);
      --ink-muted:      rgba(15,23,42,.52);
      --surface:        #ffffff;
      --page-bg:        rgba(15,23,42,.03);
      --border:         rgba(15,23,42,.12);
      --border-strong:  rgba(15,23,42,.24);
      --footer-bg:      #0f172a;
      --sidebar-bg:     #0f172a;
      --sidebar-width:  230px;
      --radius-sm:      6px;
      --radius-md:      8px;
      --radius-lg:      10px;
      --radius-xl:      14px;
      --bs-primary:     #2563eb;
      --bs-primary-rgb: 37,99,235;
    }

.site-nav {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0; z-index: 1020;
    }

.site-nav .navbar-brand {
      font-weight: 800;
      font-size: 1.1rem;
      letter-spacing: -0.02em;
      color: var(--ink);
      display: flex; align-items: center; gap: 8px;
    }

.site-nav .brand-icon {
      width: 28px; height: 28px;
      background: var(--primary);
      border-radius: 7px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.8rem; color: #fff;
    }

.site-nav .nav-link {
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--ink-secondary);
      padding: 8px 12px;
      border-radius: var(--radius-md);
      transition: background 150ms, color 150ms;
    }

.site-nav .nav-link:hover { background: var(--primary-light); color: var(--primary); }

.site-nav .nav-link.active { color: var(--primary); background: var(--primary-light); }

.nav-avatar {
      width: 32px; height: 32px;
      background: var(--primary);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: 0.8rem; color: #fff;
    }

.sidebar-brand .brand-icon {
      width: 28px; height: 28px;
      background: var(--primary);
      border-radius: 7px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.8rem; color: #fff; flex-shrink: 0;
    }

.sidebar .nav-link.active i { color: #2563eb; }

.sidebar-user {
      padding: 14px 16px;
      border-top: 1px solid rgba(255,255,255,.07);
    }

.user-avatar {
      width: 32px; height: 32px;
      background: var(--primary);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: 0.75rem; color: #fff;
      flex-shrink: 0;
    }

.user-name  { font-size: 0.8125rem; font-weight: 600; color: rgba(15,23,42,.12); }

.user-email { font-size: 0.6875rem; color: rgba(15,23,42,.64); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

.mobile-topbar {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky; top: 0; z-index: 1020;
    }

.mobile-brand .brand-icon {
      width: 26px; height: 26px;
      background: var(--primary);
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.75rem; color: #fff;
    }

.offcanvas-sidebar .offcanvas-body { padding: 0 8px; overflow-y: auto; }

.listing-card {
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      overflow: hidden;
      background: var(--surface);
      transition: box-shadow 200ms, transform 200ms;
    }

.listing-card:hover {
      box-shadow: 0 8px 24px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
      transform: translateY(-3px);
    }

.listing-card .card-img-top { height: 200px; object-fit: cover; }

.price-tag { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

.badge-amenity {
      background: var(--primary-light);
      color: var(--primary-dark);
      border-radius: var(--radius-sm);
      padding: 3px 10px;
      font-size: 0.75rem;
      font-weight: 500;
    }

.status-pending   { background:rgba(15,23,42,.05); color:#212529; border-radius:9999px; padding:3px 10px; font-size:.6875rem; font-weight:500; }

.status-confirmed { background:rgba(37,99,235,.10); color:#2563eb; border-radius:9999px; padding:3px 10px; font-size:.6875rem; font-weight:500; }

.status-cancelled { background:rgba(15,23,42,.05); color:#212529; border-radius:9999px; padding:3px 10px; font-size:.6875rem; font-weight:500; }

.status-completed { background:rgba(37,99,235,.10); color:#2563eb; border-radius:9999px; padding:3px 10px; font-size:.6875rem; font-weight:500; }

.status-active    { background:rgba(37,99,235,.10); color:#2563eb; border-radius:9999px; padding:3px 10px; font-size:.6875rem; font-weight:500; }

.pay-pill-unpaid  { background:rgba(15,23,42,.05); color:#212529; border-radius:9999px; padding:3px 10px; font-size:.6875rem; font-weight:500; }

.pay-pill-paid    { background:rgba(37,99,235,.10); color:#2563eb; border-radius:9999px; padding:3px 10px; font-size:.6875rem; font-weight:500; }

.btn {
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 500;
      font-size: 0.875rem;
      border-radius: var(--radius-md);
      padding: 9px 18px;
      height: 40px;
      display: inline-flex; align-items: center; gap: 6px;
      transition: background 150ms, border-color 150ms;
    }

.btn-sm { height: 34px; padding: 5px 14px; font-size: 0.8125rem; }

.btn-lg { height: 48px; padding: 12px 24px; font-size: 1rem; font-weight: 600; }

.btn-primary { background: var(--primary); border-color: var(--primary); }

.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-primary:focus-visible { outline: 3px solid rgba(37,99,235,.3); outline-offset: 3px; }

.btn-outline-primary { color: var(--primary); border-color: var(--primary); }

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

.btn-outline-secondary:hover { background: var(--page-bg); }

.form-control, .form-select {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 0.9375rem;
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-md);
      height: 40px;
      padding: 9px 14px;
      color: var(--ink);
      transition: border-color 150ms, box-shadow 150ms;
    }

.form-control:focus, .form-select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37,99,235,.12);
      outline: none;
    }

.form-label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-secondary); margin-bottom: 5px; }

.alert { border-radius: var(--radius-lg); border: none; }

.alert-info    { background: var(--primary-light); color: #2563eb; }

footer { background: var(--footer-bg); color: var(--ink-muted); }

/* ── Palette (2026-10-08): exactly four colours — brand #2563eb, white, #212529 text, #0F172A ink.
   Every grey is ink at an opacity; every tint is the brand at an opacity. Modelled on WhatsApp:
   white surfaces, hairline dividers, one brand colour used sparingly, meaning carried by words. */
:root {
  --primary: #2563eb; --primary-rgb: 37,99,235; --primary-dark: color-mix(in srgb, #2563eb 86%, #0F172A);
  --primary-light: rgba(37,99,235, .10); --primary-mid: rgba(37,99,235, .20); --accent: #2563eb;
  --ink: #0F172A; --text: #212529; --ink-secondary: rgba(15,23,42,.72); --ink-muted: rgba(15,23,42,.58);
  --surface: #FFFFFF; --page-bg: #FFFFFF; --border: rgba(15,23,42,.12); --border-strong: rgba(15,23,42,.24);
  --sidebar-bg: #0F172A; --footer-bg: #0F172A;
  --bs-primary: #2563eb; --bs-primary-rgb: 37,99,235; --bs-body-color: #212529; --bs-body-bg: #FFFFFF;
  --bs-link-color: #2563eb; --bs-link-hover-color: color-mix(in srgb, #2563eb 86%, #0F172A); --bs-link-color-rgb: 37,99,235;
  --bs-border-color: rgba(15,23,42,.12); --bs-secondary-color: rgba(15,23,42,.58); --bs-tertiary-bg: rgba(15,23,42,.04);
  --bs-success-rgb: 37,99,235; --bs-danger-rgb: 33,37,41; --bs-warning-rgb: 33,37,41; --bs-info-rgb: 37,99,235; --bs-secondary-rgb: 15,23,42;
}
body { color: #212529; background: #FFFFFF; }
h1, h2, h3, h4, h5, h6, .fw-bold, .fw-semibold { color: #0F172A; }
a { color: #2563eb; }
.text-muted, .text-secondary { color: rgba(15,23,42,.62) !important; }
.text-primary, .text-success, .text-info { color: #2563eb !important; }
.text-danger, .text-warning, .text-dark { color: #212529 !important; }
.bg-light, .bg-body-tertiary, .table-light, .table-light > th { background: rgba(15,23,42,.04) !important; }
/* .bg-* keep Bootstrap's rgba(var(--bs-*-rgb), var(--bs-bg-opacity)) so bg-opacity-* tints still work; the rgb vars above are the palette */
.text-bg-success, .text-bg-primary { background: #2563eb !important; color: #fff !important; }
.text-bg-danger, .text-bg-warning, .text-bg-secondary { background: rgba(15,23,42,.08) !important; color: #212529 !important; }
.bg-success-subtle, .bg-primary-subtle, .bg-info-subtle { background: rgba(37,99,235, .10) !important; }
.bg-danger-subtle, .bg-warning-subtle, .bg-secondary-subtle, .bg-light-subtle { background: rgba(15,23,42,.06) !important; }
.text-success-emphasis, .text-primary-emphasis, .text-info-emphasis { color: #2563eb !important; }
.text-danger-emphasis, .text-warning-emphasis, .text-secondary-emphasis { color: #212529 !important; }
.btn-primary, .btn-success, .btn-warning, .btn-info { --bs-btn-bg: #2563eb; --bs-btn-border-color: #2563eb; --bs-btn-color: #fff; --bs-btn-hover-bg: color-mix(in srgb, #2563eb 86%, #0F172A); --bs-btn-hover-border-color: color-mix(in srgb, #2563eb 86%, #0F172A); --bs-btn-hover-color: #fff; --bs-btn-active-bg: color-mix(in srgb, #2563eb 80%, #0F172A); --bs-btn-active-border-color: color-mix(in srgb, #2563eb 80%, #0F172A); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: rgba(37,99,235, .5); --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-color: #fff; --bs-btn-focus-shadow-rgb: 37,99,235; }
.btn-danger, .btn-dark, .btn-secondary { --bs-btn-bg: #212529; --bs-btn-border-color: #212529; --bs-btn-color: #fff; --bs-btn-hover-bg: #0F172A; --bs-btn-hover-border-color: #0F172A; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #0F172A; --bs-btn-active-border-color: #0F172A; --bs-btn-active-color: #fff; --bs-btn-focus-shadow-rgb: 15,23,42; }
.btn-outline-primary, .btn-outline-success, .btn-outline-info { --bs-btn-color: #2563eb; --bs-btn-border-color: rgba(37,99,235, .6); --bs-btn-hover-bg: rgba(37,99,235, .10); --bs-btn-hover-color: #2563eb; --bs-btn-hover-border-color: #2563eb; --bs-btn-active-bg: #2563eb; --bs-btn-active-color: #fff; --bs-btn-active-border-color: #2563eb; --bs-btn-focus-shadow-rgb: 37,99,235; }
.btn-outline-danger, .btn-outline-warning, .btn-outline-secondary, .btn-outline-dark { --bs-btn-color: #212529; --bs-btn-border-color: rgba(15,23,42,.3); --bs-btn-hover-bg: rgba(15,23,42,.06); --bs-btn-hover-color: #0F172A; --bs-btn-hover-border-color: rgba(15,23,42,.5); --bs-btn-active-bg: #212529; --bs-btn-active-color: #fff; --bs-btn-active-border-color: #212529; --bs-btn-focus-shadow-rgb: 15,23,42; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: rgba(15,23,42,.2); --bs-btn-color: #212529; --bs-btn-hover-bg: rgba(15,23,42,.05); --bs-btn-hover-color: #0F172A; --bs-btn-hover-border-color: rgba(15,23,42,.3); }
.btn-link { --bs-btn-color: #2563eb; --bs-btn-hover-color: color-mix(in srgb, #2563eb 86%, #0F172A); }
.alert { border: 1px solid rgba(15,23,42,.12); border-left-width: 3px; color: #212529; background: #fff; }
.alert-success, .alert-info, .alert-primary { border-left-color: #2563eb; background: rgba(37,99,235, .08); }
.alert-danger, .alert-warning, .alert-secondary { border-left-color: #212529; background: rgba(15,23,42,.05); }
.alert .btn-close { filter: none; }
.badge { font-weight: 600; }
.badge.bg-danger, .badge.bg-warning, .badge.bg-secondary, .badge.bg-dark { background: rgba(15,23,42,.08) !important; color: #212529 !important; }
.badge.bg-primary, .badge.bg-success, .badge.bg-info { background: rgba(37,99,235, .12) !important; color: #2563eb !important; }
.badge.rounded-pill.bg-danger, #notif-badge, #notif-badge-mob, #dispute-badge, #dispute-badge-mob { background: #2563eb !important; color: #fff !important; }
/* Booking / listing / payment status: positive = brand tint, neutral = ink tint, negative = outlined */
.badge-status-confirmed, .badge-status-active, .badge-status-completed, .badge-status-published, .badge-status-paid, .status-confirmed, .status-active, .status-completed, .status-published { background: rgba(37,99,235, .12) !important; color: #2563eb !important; border: 0; }
.badge-status-pending, .badge-status-draft, .badge-status-unpaid, .status-pending, .status-draft { background: rgba(15,23,42,.08) !important; color: #212529 !important; border: 0; }
.badge-status-cancelled, .badge-status-rejected, .badge-status-suspended, .badge-status-declined, .status-cancelled, .status-rejected, .status-suspended { background: #fff !important; color: #212529 !important; border: 1px solid rgba(15,23,42,.3) !important; }
.form-control, .form-select { border-color: rgba(15,23,42,.2); color: #212529; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235, .18); }
.form-check-input:checked { background-color: #2563eb; border-color: #2563eb; }
.form-control::placeholder { color: rgba(15,23,42,.45); }
.table { --bs-table-color: #212529; --bs-table-border-color: rgba(15,23,42,.12); --bs-table-hover-bg: rgba(15,23,42,.03); --bs-table-striped-bg: rgba(15,23,42,.02); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: #2563eb; color: #fff; }
.nav-pills .nav-link { color: #212529; }
.progress-thin > div { background: #2563eb !important; }
.dropdown-menu { --bs-dropdown-link-active-bg: #2563eb; --bs-dropdown-link-hover-bg: rgba(15,23,42,.05); --bs-dropdown-border-color: rgba(15,23,42,.12); }
.modal-content { border: 1px solid rgba(15,23,42,.12); }
.offcanvas-sidebar, .sidebar { background: #0F172A !important; }
/* Mobile top bar in the brand colour (WhatsApp app bar); everything on it is white */
.mobile-topbar { background: #2563eb; border-bottom: 0; }
.mobile-topbar .btn-menu, .mobile-topbar .mobile-brand { color: #fff; }
.mobile-topbar .btn-menu:hover { background: rgba(255,255,255,.14); }
.mobile-topbar .brand-icon { background: rgba(255,255,255,.18) !important; color: #fff !important; }
.mobile-topbar .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.mobile-topbar .btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.mobile-topbar .badge { background: #fff !important; color: #2563eb !important; }
.float-contact { background: #2563eb !important; }
.skip-link { background: #0F172A; }
.table-light, .table-light > th, .table > thead.table-light th { --bs-table-color: #212529; --bs-table-bg: rgba(15,23,42,.04); color: #212529 !important; }
.btn-close { filter: none; opacity: .6; }
.ta-doc, .agreement-doc { color: #0F172A; }
.btn-danger, .btn-dark, .btn-secondary { --bs-btn-disabled-bg: rgba(15,23,42,.35); --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-color: #fff; }
.btn-outline-danger, .btn-outline-warning, .btn-outline-secondary, .btn-outline-dark { --bs-btn-disabled-color: rgba(15,23,42,.45); --bs-btn-disabled-border-color: rgba(15,23,42,.2); }
.btn-outline-primary, .btn-outline-success, .btn-outline-info { --bs-btn-disabled-color: rgba(var(--primary-rgb), .5); --bs-btn-disabled-border-color: rgba(var(--primary-rgb), .3); }
:root { --bs-light-rgb: 15,23,42; --bs-dark-rgb: 15,23,42; }
.bg-light { --bs-bg-opacity: .04; }

/* Dark sidebar and drawer: everything on #0F172A is white at an opacity */
.sidebar, .offcanvas-sidebar { color: #fff; }
.sidebar .nav-link, .offcanvas-sidebar .nav-link, .nav-more-toggle { color: rgba(255,255,255,.72) !important; }
.sidebar .nav-link:hover, .offcanvas-sidebar .nav-link:hover, .nav-more-toggle:hover { color: #fff !important; background: rgba(255,255,255,.06); }
.sidebar .nav-link.active, .offcanvas-sidebar .nav-link.active { color: #fff !important; background: rgba(255,255,255,.12); }
.nav-more-toggle[aria-expanded="true"] { color: #fff !important; }
.sidebar-section-label { color: rgba(255,255,255,.5) !important; }
.sidebar-brand, .offcanvas-sidebar .sidebar-brand, .offcanvas-sidebar .offcanvas-title { color: #fff !important; }
.sidebar .brand-icon, .offcanvas-sidebar .brand-icon, .user-avatar { background: var(--primary) !important; color: #fff !important; }
.sidebar-user, .sidebar-user p, .sidebar-user .user-email { color: rgba(255,255,255,.6) !important; }
.sidebar-user .user-name { color: #fff !important; }
.sidebar-user a, .sidebar-user .btn { color: rgba(255,255,255,.78) !important; }
.sidebar-user .btn { background: rgba(255,255,255,.08) !important; }
.offcanvas-sidebar .btn-close { filter: invert(1) grayscale(100%) brightness(200%); opacity: .8; }
:root { --bs-emphasis-color: #0F172A; --bs-emphasis-color-rgb: 15,23,42; --bs-heading-color: #0F172A; }
.table { --bs-table-color: #212529; }

/* Section label and drawer links: same spacing as the landlord portal */
.sidebar-section-label {
      font-size: 0.625rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,.5);
      padding: 14px 16px 5px;
    }
.offcanvas-sidebar .nav-link { padding: 8px 12px; border-radius: var(--radius-md); }
.offcanvas-sidebar .nav-link i { width: 16px; text-align: center; }
/* Destructive actions have no red in this palette: make them bold and ink-bordered so they still stand out */
.btn-danger, .btn-outline-danger, [data-confirm-danger] .btn, .btn[data-confirm-danger] { font-weight: 700 !important; }
.btn-outline-danger { --bs-btn-border-color: #212529; --bs-btn-color: #212529; }

/* Public footer: ink surface, white at an opacity for everything on it */
.site-footer { background: #0F172A; color: rgba(255,255,255,.7); }
.site-footer h2 { color: #fff; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-credit { color: rgba(255,255,255,.55); }
.site-footer .footer-rule { border-color: rgba(255,255,255,.15); opacity: 1; }
.site-footer .bi-house-heart-fill { color: var(--primary); }
