/* =============================================================================
   BRANDSCHUTZ PROTECT – Design System v2.1
   Brand-aligned palette: Logo-Navy #202250 + Logo-Rot #D71D10
   ============================================================================= */

/* ─── 1. CSS Custom Properties (Design Tokens) ─────────────────────────────── */
:root {
  /* Brand Colors – matched to Logo_neu.svg */
  --bp-primary:        #202250;   /* Protect-Navy – Navbar, authority */
  --bp-primary-hover:  #2A2D62;
  --bp-primary-light:  #303470;
  --bp-accent:         #D71D10;   /* Brandschutz-Rot – CTAs, fire safety identity */
  --bp-accent-hover:   #B8180E;
  --bp-accent-glow:    rgba(215, 29, 16, .13);
  --bp-success:        #0D9488;   /* Teal – confirmations */
  --bp-success-hover:  #0F766E;
  --bp-warning:        #D97706;

  /* Surface Colors – clean, professional */
  --bp-bg:             #F0F1F5;   /* Cool light gray */
  --bp-bg-pattern:     #E7E8EE;
  --bp-surface:        #FFFFFF;
  --bp-surface-2:      #F5F6F9;
  --bp-surface-hover:  #F8F9FB;
  --bp-border:         #D1D4DE;
  --bp-border-light:   #DFE1E9;

  /* Text Colors */
  --bp-text:           #1A1A2E;
  --bp-text-2:         #3D3D56;
  --bp-muted:          #5A5A6E;   /* darkened from #6B6B80 for 4.5:1 contrast on --bp-bg */

  /* Shape */
  --bp-radius:         12px;
  --bp-radius-lg:      16px;
  --bp-radius-pill:    999px;

  /* Shadows – layered for depth */
  --bp-shadow-sm:      0 1px 3px rgba(32, 34, 80, .06), 0 1px 2px rgba(32, 34, 80, .04);
  --bp-shadow:         0 4px 12px rgba(32, 34, 80, .08), 0 2px 4px rgba(32, 34, 80, .04);
  --bp-shadow-lg:      0 8px 28px rgba(32, 34, 80, .10), 0 4px 8px rgba(32, 34, 80, .06);
  --bp-shadow-glow:    0 4px 20px rgba(215, 29, 16, .15);

  /* Sidebar */
  --bp-sidebar-w:      260px;
  --bp-banner-h:       0px;

  /* Motion */
  --bp-ease:           cubic-bezier(.4, 0, .2, 1);
  --bp-ease-bounce:    cubic-bezier(.34, 1.56, .64, 1);
}

/* ─── 1b. Dark Mode ────────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --bp-bg:             #121218;
  --bp-bg-pattern:     #1A1A24;
  --bp-surface:        #1E1E2A;
  --bp-surface-2:      #252535;
  --bp-surface-hover:  #2A2A3C;
  --bp-border:         #33334A;
  --bp-border-light:   #2A2A3E;

  --bp-text:           #E8E8F0;
  --bp-text-2:         #B0B0C4;
  --bp-muted:          #8888A0;

  --bp-shadow-sm:      0 1px 3px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .15);
  --bp-shadow:         0 4px 12px rgba(0, 0, 0, .30), 0 2px 4px rgba(0, 0, 0, .15);
  --bp-shadow-lg:      0 8px 28px rgba(0, 0, 0, .35), 0 4px 8px rgba(0, 0, 0, .20);

  color-scheme: dark;
}

[data-theme="dark"] body::before {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.03) 1px, transparent 0);
}

[data-theme="dark"] .card {
  background: var(--bp-surface) !important;
  border-color: var(--bp-border) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-control:disabled {
  background-color: var(--bp-surface-2);
  border-color: var(--bp-border);
  color: var(--bp-text);
}

[data-theme="dark"] .form-control:focus {
  background-color: var(--bp-surface);
  border-color: var(--bp-accent);
  color: var(--bp-text);
}

[data-theme="dark"] .modal-content {
  background: var(--bp-surface) !important;
  border-color: var(--bp-border) !important;
}

[data-theme="dark"] .modal-header {
  background: var(--bp-surface-2) !important;
  border-color: var(--bp-border) !important;
}

[data-theme="dark"] .modal-footer {
  border-color: var(--bp-border) !important;
}

[data-theme="dark"] .alert {
  background: var(--bp-surface-2);
  border-color: var(--bp-border);
  color: var(--bp-text);
}

[data-theme="dark"] .bp-test-banner {
  background: #1a0a08;
  color: #ff6b5e;
}

.bp-theme-btn-inactive {
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  color: var(--bp-text-2);
}
.bp-theme-btn-inactive:hover {
  background: var(--bp-surface-hover);
  color: var(--bp-text);
}

/* SweetAlert2 Dark Mode */
[data-theme="dark"] .swal2-popup {
  background: var(--bp-surface) !important;
  color: var(--bp-text) !important;
}
[data-theme="dark"] .swal2-title {
  color: var(--bp-text) !important;
}
[data-theme="dark"] .swal2-html-container {
  color: var(--bp-text-2) !important;
}
[data-theme="dark"] .swal2-input,
[data-theme="dark"] .swal2-textarea {
  background: var(--bp-surface-2) !important;
  border-color: var(--bp-border) !important;
  color: var(--bp-text) !important;
}
[data-theme="dark"] .swal2-validation-message {
  background: var(--bp-surface-2) !important;
  color: var(--bp-accent) !important;
}

/* Nachrichten inline-element overrides for dark mode */
[data-theme="dark"] .bp-msg-termin-card {
  background: var(--bp-surface-2) !important;
  border-color: var(--bp-border) !important;
}
[data-theme="dark"] .swal-result-row {
  border-color: var(--bp-border) !important;
}
[data-theme="dark"] #swal-results {
  background: var(--bp-surface) !important;
  border-color: var(--bp-border) !important;
}
[data-theme="dark"] #swal-chip {
  background: var(--bp-surface-2) !important;
}
[data-theme="dark"] .swal-cancel-ghost {
  border-color: var(--bp-border) !important;
  color: var(--bp-text) !important;
}
[data-theme="dark"] .bp-radio-row {
  color: var(--bp-text) !important;
}
[data-theme="dark"] .swal-label {
  color: var(--bp-text-2) !important;
}

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

html, body {
  min-height: 100vh;
  min-height: 100dvh;   /* modern viewport unit, ignores mobile URL bar */
  margin: 0;
}

body {
  font-family: 'DM Sans', 'Outfit', sans-serif;
  background-color: var(--bp-bg);
  color: var(--bp-text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle cross-hatch texture on background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(32,34,80,.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }

/* Selection color */
::selection {
  background: rgba(215, 29, 16, .15);
  color: var(--bp-text);
}


/* ─── 3. Layout ─────────────────────────────────────────────────────────────── */

.bp-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--bp-banner-h);
  position: relative;
}

.bp-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bp-bg);
}

.bp-content { flex: 1; }

.bp-page {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  animation: bp-fadeUp .35s var(--bp-ease) both;   /* snappier: 350ms instead of 500ms */
}

@keyframes bp-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bp-section-title {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .75rem;   /* raised from .7rem to meet 12px minimum */
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--bp-muted);
  margin-bottom: .85rem;
  position: relative;
  padding-left: 12px;
}
.bp-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  background: var(--bp-accent);
  border-radius: 2px;
}

.bp-page-title {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bp-text);
  margin-bottom: .25rem;
  letter-spacing: -.02em;
}

.bp-page-subtitle {
  font-size: .88rem;
  color: var(--bp-muted);
  margin-bottom: 0;
}

.bp-greeting {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bp-muted);
  margin-bottom: 1.25rem;
}
.bp-greeting strong {
  color: var(--bp-text);
  font-weight: 700;
}


/* ─── 4. Sidebar ────────────────────────────────────────────────────────────── */

/* -- Mobile Header (nur < lg sichtbar) -- */
.bp-mobile-header {
  background: linear-gradient(135deg, var(--bp-primary) 0%, #282C5E 100%);
  display: flex;
  align-items: center;
  padding: .6rem 1rem;
  gap: .75rem;
  position: sticky;
  top: var(--bp-banner-h);
  z-index: 1030;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(215, 29, 16, .2);
}

.bp-mobile-menu-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 1.5rem;
  padding: .5rem .65rem;   /* enlarged for 44px min touch target */
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: all .2s var(--bp-ease);
}
.bp-mobile-menu-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

.bp-mobile-header-logo img {
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
}

/* -- Sidebar -- */
.bp-sidebar {
  width: 260px !important;
  background: linear-gradient(180deg, var(--bp-primary) 0%, #181B40 100%) !important;
  border-right: 1px solid rgba(215, 29, 16, .12) !important;
  flex-shrink: 0;
}

/* Desktop: sidebar als fixed Spalte */
@media (min-width: 992px) {
  .bp-sidebar {
    position: fixed !important;
    top: var(--bp-banner-h) !important;
    left: 0;
    height: calc(100vh - var(--bp-banner-h)) !important;
    transform: none !important;
    visibility: visible !important;
    z-index: 100 !important;
    overflow-y: auto;
  }
  .bp-main {
    margin-left: var(--bp-sidebar-w);
  }
}

/* Scrollbar styling for sidebar */
.bp-sidebar::-webkit-scrollbar { width: 4px; }
.bp-sidebar::-webkit-scrollbar-track { background: transparent; }
.bp-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.bp-sidebar-body {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}

/* Logo im Sidebar-Kopf (Desktop) */
.bp-sidebar-brand {
  display: flex;
  align-items: center;
  padding: .5rem .25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1rem;
}
.bp-sidebar-brand img {
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  transition: transform .2s var(--bp-ease);
}
.bp-sidebar-brand img:hover {
  transform: scale(1.03);
}

/* Nav-Links */
.bp-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .62rem .85rem;
  border-radius: 10px;
  color: rgba(255,255,255,.75);   /* raised from .62 for 4.5:1 contrast */
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s var(--bp-ease);
  position: relative;
}
.bp-sidebar-link:hover,
.bp-sidebar-link:focus {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}
.bp-sidebar-link.active {
  background: rgba(215, 29, 16, .15);
  color: #fff;
}
.bp-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--bp-accent);
  border-radius: 0 3px 3px 0;
}
.bp-sidebar-link i {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  opacity: .85;
}
.bp-sidebar-link.active i {
  color: var(--bp-accent);
  opacity: 1;
}

/* Section-Titel */
.bp-sidebar-section {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);   /* raised from .25 for readability */
  padding: 1.1rem .85rem .4rem;
}

/* Nachrichten-Badge */
.bp-sidebar-badge {
  margin-left: auto;
  background: var(--bp-accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--bp-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(215, 29, 16, .3);
  animation: bp-badgePulse 2s ease-in-out 5;   /* limited to 5 cycles instead of infinite */
}

@keyframes bp-badgePulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(215, 29, 16, .3); }
  50%      { box-shadow: 0 2px 14px rgba(215, 29, 16, .5); }
}

/* Footer: User + Logout */
.bp-sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: .75rem;
}
.bp-sidebar-footer .bp-user-pill {
  padding: .35rem .5rem .85rem;
  font-size: .82rem;
  color: rgba(255,255,255,.72);   /* raised from .6 for contrast */
}

/* Ghost-Button (Logout in Sidebar) */
.btn-bp-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem 1rem;
  border-radius: var(--bp-radius-pill);
  font-size: .84rem;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: all .2s var(--bp-ease);
  text-decoration: none;
}
.btn-bp-ghost:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}


/* ─── 4b. Navbar (Legacy) ─────────────────────────────────────────────── */
.bp-navbar {
  background: linear-gradient(135deg, var(--bp-primary) 0%, #282C5E 100%);
}

.bp-navbar .navbar-brand img {
  background: white;
  padding: 4px 8px;
  border-radius: 8px;
}

.bp-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  padding: .45rem .85rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .9rem;
  transition: all .2s var(--bp-ease);
}

.bp-navbar .nav-link:hover,
.bp-navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

.bp-navbar .dropdown-menu {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow-lg);
  background: var(--bp-surface);
  padding: .5rem;
  min-width: 200px;
}

.bp-navbar .dropdown-item {
  color: var(--bp-text);
  border-radius: 8px;
  padding: .55rem .9rem;
  font-size: .9rem;
  transition: all .15s var(--bp-ease);
}

.bp-navbar .dropdown-item:hover,
.bp-navbar .dropdown-item:focus {
  background: var(--bp-surface-2);
  color: var(--bp-accent);
}

.bp-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.2);
  padding: .3rem .55rem;
}

.bp-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.bp-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

.bp-user-avatar {
  width: 36px;
  height: 36px;
  min-width: 44px;     /* meets 44px touch target */
  min-height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(215,29,16,.3), rgba(215,29,16,.15));
  border: 1.5px solid rgba(215, 29, 16, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.bp-nav-item-wrap {
  position: relative;
  display: inline-flex;
}

.bp-nav-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -30%);
  font-size: .6rem;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--bp-radius-pill);
  background: var(--bp-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}


/* ─── 5. Footer ─────────────────────────────────────────────────────────────── */
.bp-footer {
  background: linear-gradient(135deg, var(--bp-primary) 0%, #181B40 100%);
  color: rgba(255,255,255,.5);
  padding: 24px 0;
  flex-shrink: 0;
  text-align: center;
}

.bp-footer p {
  color: rgba(255,255,255,.65);   /* raised from .4 for contrast */
  font-size: .8rem;
  margin: 0;
  letter-spacing: .2px;
}

.bp-footer a {
  color: rgba(255,255,255,.7);   /* raised from .45 for contrast */
  font-size: 1.1rem;
  margin: 0 8px;
  transition: all .2s var(--bp-ease);
}

.bp-footer a:hover { color: var(--bp-accent); }


/* ─── 6. (Test Banner entfernt) ─────────────────────────────────────────────── */


/* ─── 7. Cards ──────────────────────────────────────────────────────────────── */

/* Bootstrap .card Override */
.card {
  border-radius: var(--bp-radius) !important;
  border: 1px solid var(--bp-border) !important;
  box-shadow: var(--bp-shadow-sm) !important;
  background: var(--bp-surface) !important;
  transition: all .25s var(--bp-ease);
  overflow: hidden;
}

.card-header {
  background: var(--bp-surface-2) !important;
  border-bottom: 1px solid var(--bp-border) !important;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--bp-text) !important;
  padding: .85rem 1.25rem;
  font-size: .92rem;
  letter-spacing: -.01em;
}

.card-body {
  background: var(--bp-surface) !important;
  color: var(--bp-text) !important;
}

/* bp-card */
.bp-card {
  background: var(--bp-surface);
  border-radius: var(--bp-radius);
  border: 1px solid var(--bp-border);
  box-shadow: var(--bp-shadow-sm);
  transition: all .25s var(--bp-ease);
}

.bp-card-header {
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--bp-border);
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--bp-text);
  background: var(--bp-surface-2);
}

.bp-card-body { padding: 1.25rem; }

/* Klickbare Karten */
.bp-card-link {
  display: block;
  transition: all .25s var(--bp-ease);
}

.bp-card-link:hover .bp-card,
.bp-card-link:hover .card {
  transform: translateY(-3px);
  box-shadow: var(--bp-shadow) !important;
  border-color: var(--bp-accent) !important;
}

/* Hover */
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--bp-shadow) !important;
  transition: all .25s var(--bp-ease);
}

/* Quick-Action Cards (Home Dashboard) */
.bp-quick-card {
  background: var(--bp-surface);
  border-radius: var(--bp-radius);
  border: 1px solid var(--bp-border);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all .3s var(--bp-ease);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  position: relative;
  overflow: hidden;
}

.bp-quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bp-accent), transparent);
  opacity: 0;
  transition: opacity .3s var(--bp-ease);
}

.bp-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bp-shadow);
  border-color: rgba(215, 29, 16, .25);
}

.bp-quick-card:hover::before {
  opacity: 1;
}

.bp-quick-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bp-accent-glow), rgba(215, 29, 16, .06));
  color: var(--bp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all .3s var(--bp-ease);
}

.bp-quick-card:hover .bp-quick-icon {
  transform: scale(1.08);
  box-shadow: var(--bp-shadow-glow);
}

.bp-quick-title {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bp-text);
  margin: 0;
}

.bp-quick-desc {
  font-size: .82rem;
  color: var(--bp-muted);
  margin: 0;
  line-height: 1.45;
}

/* Nachrichten-Banner auf Home */
.bp-msg-banner {
  background: linear-gradient(135deg, var(--bp-accent-glow), rgba(215, 29, 16, .06));
  border: 1px solid rgba(215, 29, 16, .2);
  border-radius: var(--bp-radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--bp-accent);
  font-weight: 600;
  font-size: .92rem;
  transition: all .25s var(--bp-ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.bp-msg-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bp-accent);
  border-radius: 0 2px 2px 0;
}

.bp-msg-banner:hover {
  background: linear-gradient(135deg, rgba(215, 29, 16, .18), rgba(215, 29, 16, .08));
  color: var(--bp-accent);
  transform: translateX(2px);
}

.bp-msg-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bp-accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(215, 29, 16, .4);
  animation: bp-dotPulse 2s ease-in-out infinite;
}

@keyframes bp-dotPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(215, 29, 16, .3); }
  50%      { box-shadow: 0 0 12px rgba(215, 29, 16, .6); }
}

.bp-msg-banner-title {
  font-weight: 600;
  font-size: .92rem;
  color: var(--bp-text);
  line-height: 1.2;
}

.bp-msg-banner-sub {
  font-size: .78rem;
  font-weight: 400;
  color: var(--bp-muted);
  line-height: 1.2;
}

/* Home-Seite */
.bp-home-greeting {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--bp-muted);
  text-align: center;
  padding: 1.5rem 0 1.25rem;
  margin: 0;
  letter-spacing: -.01em;
}

.bp-home-greeting strong {
  color: var(--bp-text);
  font-weight: 700;
}

.bp-home-termin-divider {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--bp-border), transparent);
  flex-shrink: 0;
}


/* ─── 8. Buttons ────────────────────────────────────────────────────────────── */
.btn-bp-primary {
  background: var(--bp-primary);
  color: #fff;
  border: none;
  border-radius: var(--bp-radius-pill);
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 600;
  padding: .52rem 1.3rem;
  font-size: .88rem;
  transition: all .2s var(--bp-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  cursor: pointer;
  letter-spacing: .02em;
}
.btn-bp-primary:hover, .btn-bp-primary:focus {
  background: var(--bp-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--bp-shadow);
}

.btn-bp-danger {
  background: var(--bp-accent);
  color: #fff;
  border: none;
  border-radius: var(--bp-radius-pill);
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 600;
  padding: .52rem 1.3rem;
  font-size: .88rem;
  transition: all .2s var(--bp-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  cursor: pointer;
  letter-spacing: .02em;
}
.btn-bp-danger:hover, .btn-bp-danger:focus {
  background: var(--bp-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--bp-shadow-glow);
}

.btn-bp-success {
  background: var(--bp-success);
  color: #fff;
  border: none;
  border-radius: var(--bp-radius-pill);
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 600;
  padding: .52rem 1.3rem;
  font-size: .88rem;
  transition: all .2s var(--bp-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  cursor: pointer;
}
.btn-bp-success:hover, .btn-bp-success:focus {
  background: var(--bp-success-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, .2);
}

.btn-bp-secondary {
  background: var(--bp-surface);
  color: var(--bp-text-2);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-pill);
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 600;
  padding: .52rem 1.3rem;
  font-size: .88rem;
  transition: all .2s var(--bp-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  cursor: pointer;
}
.btn-bp-secondary:hover, .btn-bp-secondary:focus {
  background: var(--bp-surface-2);
  color: var(--bp-text);
  border-color: var(--bp-text-2);
  transform: translateY(-1px);
}

.btn-bp-sm { padding: .32rem .9rem !important; font-size: .78rem !important; }

/* Card-Action Buttons */
.btn-bp-card-action {
  background: transparent;
  color: var(--bp-muted);
  border: 1px solid var(--bp-border-light);
  border-radius: 8px;
  padding: .45rem .65rem;   /* enlarged for better touch target */
  min-width: 44px;
  min-height: 44px;
  font-size: .82rem;
  transition: all .2s var(--bp-ease);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.btn-bp-card-action:hover {
  background: var(--bp-surface-2);
  color: var(--bp-text);
  border-color: var(--bp-border);
}

.btn-bp-card-danger {
  background: transparent;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, .2);
  border-radius: 8px;
  padding: .45rem .65rem;   /* enlarged for better touch target */
  min-width: 44px;
  min-height: 44px;
  font-size: .82rem;
  transition: all .2s var(--bp-ease);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.btn-bp-card-danger:hover {
  background: rgba(220, 38, 38, .06);
  border-color: rgba(220, 38, 38, .35);
}


/* ─── 9. Forms ──────────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid var(--bp-border);
  border-radius: 10px;
  color: var(--bp-text);
  background: var(--bp-surface);
  font-size: .9rem;
  padding: .55rem .9rem;
  transition: all .2s var(--bp-ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--bp-accent);
  box-shadow: 0 0 0 3px rgba(215, 29, 16, .08);
  outline: none;
}

.form-label {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--bp-muted);
  margin-bottom: .4rem;
  display: block;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.form-check-input:checked { background-color: var(--bp-accent); border-color: var(--bp-accent); }
.form-switch .form-check-input:checked { background-color: var(--bp-accent); }

/* Login */
.bp-login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(215, 29, 16, .06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(32, 34, 80, .06) 0%, transparent 50%),
    var(--bp-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

/* Decorative fire lines on login */
.bp-login-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent,
    var(--bp-accent) 20%,
    var(--bp-accent) 30%,
    transparent 50%,
    var(--bp-accent) 70%,
    var(--bp-accent) 80%,
    transparent
  );
  opacity: .6;
}

.bp-login-card {
  background: var(--bp-surface);
  border-radius: var(--bp-radius-lg);
  border: 1px solid var(--bp-border);
  box-shadow: var(--bp-shadow-lg);
  padding: 2.75rem 2.25rem;
  width: 100%;
  max-width: 430px;
  animation: bp-loginAppear .4s var(--bp-ease-bounce) both;   /* snappier */
  position: relative;
  overflow: hidden;
}

.bp-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bp-accent), var(--bp-primary));
}

@keyframes bp-loginAppear {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bp-login-logo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.bp-login-title {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bp-text);
  margin-bottom: .35rem;
  text-align: center;
  letter-spacing: -.02em;
}

.bp-login-subtitle {
  font-size: .88rem;
  color: var(--bp-muted);
  margin-bottom: 2rem;
  text-align: center;
}

.bp-login-submit {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: var(--bp-radius-pill);
  background: linear-gradient(135deg, var(--bp-accent) 0%, #B8180E 100%);
  color: #fff;
  border: none;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  transition: all .25s var(--bp-ease);
  margin-top: .75rem;
  cursor: pointer;
  display: block;
  text-align: center;
  text-transform: uppercase;
}
.bp-login-submit:hover {
  background: linear-gradient(135deg, #B8180E 0%, #9A120A 100%);
  transform: translateY(-2px);
  box-shadow: var(--bp-shadow-glow);
}
.bp-login-submit:active {
  transform: translateY(0);
}


/* ─── 10. Tables ────────────────────────────────────────────────────────────── */
.bp-table {
  width: 100%;
  border-collapse: collapse;
}

.bp-table thead th {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .72rem;   /* raised from .68rem for readability */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bp-muted);
  padding: .65rem .85rem;
  border-bottom: 2px solid var(--bp-border);
  white-space: nowrap;
}

.bp-table tbody td {
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--bp-border-light);
  font-size: .9rem;
  color: var(--bp-text);
  vertical-align: middle;
}

.bp-table tbody tr:last-child td { border-bottom: none; }

.bp-table tbody tr {
  transition: background .15s var(--bp-ease);
}
.bp-table tbody tr:hover td { background: var(--bp-surface-hover); }

.bp-table tfoot td {
  padding: .75rem .85rem;
  font-weight: 700;
  border-top: 2px solid var(--bp-border);
  font-size: .9rem;
  color: var(--bp-text);
}

@media (max-width: 576px) {
  .hide-on-small { display: none !important; }
}


/* ─── 11. Badges / Status Pills ─────────────────────────────────────────────── */
.bp-badge {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--bp-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.bp-badge-gebucht { background: rgba(13, 148, 136, .1); color: #0D9488; border: 1px solid rgba(13, 148, 136, .25); }
.bp-badge-veroeffentlicht { background: rgba(37,99,235,.1); color: #2563EB; border: 1px solid rgba(37,99,235,.25); }
.bp-badge-entwurf { background: rgba(107,107,128,.1); color: var(--bp-muted); border: 1px solid rgba(107,107,128,.25); }
.bp-badge-danger { background: rgba(215, 29, 16, .1); color: var(--bp-accent); border: 1px solid rgba(215, 29, 16, .25); }


/* ─── 12. Date Badge ────────────────────────────────────────────────────────── */
.bp-date-badge {
  background: linear-gradient(135deg, var(--bp-accent) 0%, #B8180E 100%);
  border-radius: 10px;
  padding: 7px 9px;
  text-align: center;
  min-width: 48px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(215, 29, 16, .2);
}

.bp-date-badge .day {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.bp-date-badge .month {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .58rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
}

.bp-date-badge-success {
  background: linear-gradient(135deg, var(--bp-success) 0%, #0F766E 100%);
  box-shadow: 0 2px 8px rgba(13, 148, 136, .2);
}


/* ─── 13. Calendar (CSS Grid) ───────────────────────────────────────────────── */
#calGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-wd-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-wd {
  text-align: center;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .68rem;   /* raised from .62rem for readability */
  color: var(--bp-muted);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.cal-day {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  margin: 2px auto;
  transition: all .2s var(--bp-ease);
  color: var(--bp-text);
  font-weight: 500;
}

.cal-day:hover { background: var(--bp-accent-glow); color: var(--bp-accent); }
.cal-day.today { font-weight: 700; color: var(--bp-accent); }
.cal-day.selected {
  background: linear-gradient(135deg, var(--bp-accent), #B8180E);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(215, 29, 16, .3);
}

.cal-day.has-event { position: relative; }
.cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bp-accent);
}
.cal-day.selected::after { background: #fff; }

.flatpickr-calendar {
  border-radius: var(--bp-radius-lg) !important;
  box-shadow: var(--bp-shadow) !important;
  border: 1px solid var(--bp-border) !important;
}

/* Punkt unter Tagen mit Zeiteinträgen */
.flatpickr-day {
  position: relative;
}
.fp-entry-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bp-accent);
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.flatpickr-day.selected .fp-entry-dot {
  background: rgba(255,255,255,.85);
}

@media (min-width: 992px) {
  .bp-cal-sticky { position: sticky; top: 16px; }
}


/* ─── 14. Event Cards ───────────────────────────────────────────────────────── */
.bp-event-card {
  background: var(--bp-surface);
  border-radius: var(--bp-radius);
  border: 1px solid var(--bp-border);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}

.bp-event-title {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--bp-text);
  margin-bottom: .2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-event-time { font-size: .82rem; color: var(--bp-muted); }
.bp-event-desc { font-size: .82rem; color: var(--bp-muted); margin-top: 3px; }

.bp-event-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}


/* ─── 15. Nachrichten ───────────────────────────────────────────────────────── */
.bp-msg-item {
  background: var(--bp-surface);
  border-radius: var(--bp-radius);
  border: 1px solid var(--bp-border);
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  transition: all .2s var(--bp-ease);
  text-decoration: none;
  color: inherit;
}

.bp-msg-item:hover {
  background: var(--bp-surface-hover);
  transform: translateX(2px);
}

.bp-msg-item.bp-msg-unread {
  border-left: 3px solid var(--bp-accent) !important;
  background: rgba(215, 29, 16, .03) !important;
}

.bp-msg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bp-msg-dot-unread {
  background: var(--bp-accent);
  box-shadow: 0 0 0 3px rgba(215, 29, 16, .12);
}
.bp-msg-dot-read { background: transparent; }

.bp-msg-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
  color: var(--bp-text);
}

.bp-msg-preview.bp-msg-bold { font-weight: 600; color: var(--bp-text); }
.bp-msg-sender { font-size: .88rem; font-weight: 600; color: var(--bp-text); margin-bottom: 2px; }
.bp-msg-sender.bp-msg-bold { font-weight: 700; color: var(--bp-text); }
.bp-msg-time { font-size: .75rem; color: var(--bp-muted); margin-top: 2px; }
.bp-msg-unread .bp-msg-time { font-weight: 600; color: var(--bp-accent); }

/* Segmented Control (Tabs) */
.bp-seg-control {
  display: flex;
  background: var(--bp-border);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}
.bp-seg-btn {
  flex: 1;
  text-align: center;
  padding: .48rem .85rem;
  border-radius: 10px;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .86rem;
  font-weight: 500;
  color: var(--bp-muted);
  text-decoration: none;
  transition: all .2s var(--bp-ease);
}
.bp-seg-btn:hover {
  color: var(--bp-text-2);
}
.bp-seg-btn.active {
  background: var(--bp-surface);
  color: var(--bp-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  font-weight: 600;
}

/* Radio Row */
.bp-radio-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--bp-border);
  cursor: pointer;
  font-size: .92rem;
  transition: all .2s var(--bp-ease);
}
.bp-radio-row:hover {
  background: var(--bp-surface-2);
  border-color: var(--bp-accent);
}
.bp-radio-row input[type="radio"] { accent-color: var(--bp-accent); width: 1rem; height: 1rem; flex-shrink: 0; }

/* Alert Banners */
.bp-alert-success {
  background: rgba(13, 148, 136, .08);
  border: 1px solid rgba(13, 148, 136, .25);
  border-radius: var(--bp-radius);
  padding: 1rem 1.2rem;
  color: #065f46;
  font-size: .92rem;
}
.bp-alert-danger {
  background: rgba(215, 29, 16, .06);
  border: 1px solid rgba(215, 29, 16, .2);
  border-radius: var(--bp-radius);
  padding: 1rem 1.2rem;
  color: #9A3412;
  font-size: .92rem;
}


/* ─── 16. Empty State ───────────────────────────────────────────────────────── */
.bp-empty {
  text-align: center;
  padding: 3.5rem 1rem;
}

.bp-empty-icon {
  font-size: 2.5rem;
  opacity: .25;
  color: var(--bp-muted);
  display: block;
  margin-bottom: .85rem;
}

.bp-empty-text { font-size: .9rem; color: var(--bp-muted); }


/* ─── 17. Filter Hint ───────────────────────────────────────────────────────── */
.bp-filter-hint {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bp-accent-glow);
  color: var(--bp-accent);
  border: 1px solid rgba(215, 29, 16, .2);
  border-radius: var(--bp-radius-pill);
  padding: .38rem .9rem;
  font-size: .82rem;
  font-weight: 600;
}

.bp-filter-hint button {
  background: none;
  border: none;
  color: var(--bp-accent);
  font-size: .75rem;
  padding: 0;
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s;
}

.bp-filter-hint button:hover { opacity: 1; }


/* ─── 18. Modal ─────────────────────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--bp-radius-lg) !important;
  border: 1px solid var(--bp-border) !important;
  box-shadow: 0 12px 48px rgba(0,0,0,.18) !important;
  background: var(--bp-surface) !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--bp-border) !important;
  padding: 1.1rem 1.35rem .85rem;
  background: var(--bp-surface-2);
}

.modal-footer {
  border-top: 1px solid var(--bp-border) !important;
  padding: .85rem 1.35rem 1.1rem;
}

.modal-title {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--bp-text);
}


/* ─── 19. Loading Spinner ───────────────────────────────────────────────────── */
#loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1060;
  display: none;
}


/* ─── 20. Progress Bar ────────────────────────────────────────────────────── */
.bp-progress-wrap {
  background: var(--bp-bg);
  border-radius: var(--bp-radius-pill);
  height: 8px;
  overflow: hidden;
  margin-bottom: .5rem;
}

.bp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bp-accent), #B8180E);
  border-radius: var(--bp-radius-pill);
  transition: width .3s ease;
  position: relative;
}

.bp-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: bp-progressShine 1.5s ease-in-out infinite;
}

@keyframes bp-progressShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* ─── 21. Back Link ─────────────────────────────────────────────────────────── */
.bp-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--bp-muted);
  font-weight: 500;
  transition: all .2s var(--bp-ease);
  margin-bottom: 1rem;
}

.bp-back-link:hover {
  color: var(--bp-accent);
  transform: translateX(-2px);
}


/* ─── 22. Utility Classes ───────────────────────────────────────────────────── */
.bp-text         { color: var(--bp-text) !important; }
.bp-text-2       { color: var(--bp-text-2) !important; }
.bp-text-muted   { color: var(--bp-muted) !important; }
.bp-text-accent  { color: var(--bp-accent) !important; }
.bp-text-success { color: var(--bp-success) !important; }
.bp-text-sm      { font-size: .85rem !important; }
.bp-text-xs      { font-size: .75rem !important; }
.bp-fw-semi      { font-weight: 600 !important; }
.bp-truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-divider      { height: 1px; background: var(--bp-border); border: none; margin: 1rem 0; }


/* ─── 23. FAB (Floating Action Button) ─────────────────────────────────────── */
.bp-fab-group {
  position: fixed;
  bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: .75rem;
  z-index: 1040;
}

.bp-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.12);
  transition: all .25s var(--bp-ease);
  text-decoration: none;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

/* Einzelner FAB */
.bp-fab:not(.bp-fab-group *) {
  position: fixed;
  bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  z-index: 1040;
}
.bp-fab:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.24), 0 4px 8px rgba(0,0,0,.14);
  color: #fff;
}
.bp-fab:active { transform: scale(.95); }
.bp-fab-danger  {
  background: linear-gradient(135deg, var(--bp-accent) 0%, #B8180E 100%);
  box-shadow: 0 4px 16px rgba(215, 29, 16, .3);
}
.bp-fab-success {
  background: linear-gradient(135deg, var(--bp-success) 0%, #0F766E 100%);
}


/* ─── 24. Stagger Animation for Lists ──────────────────────────────────────── */
.bp-stagger > * {
  animation: bp-fadeUp .4s var(--bp-ease) both;
}
.bp-stagger > *:nth-child(1) { animation-delay: .05s; }
.bp-stagger > *:nth-child(2) { animation-delay: .1s; }
.bp-stagger > *:nth-child(3) { animation-delay: .15s; }
.bp-stagger > *:nth-child(4) { animation-delay: .2s; }
.bp-stagger > *:nth-child(5) { animation-delay: .25s; }
.bp-stagger > *:nth-child(6) { animation-delay: .3s; }
.bp-stagger > *:nth-child(n+7) { animation-delay: .35s; }


/* ─── 25. Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .bp-page { padding-top: 1rem; }
  .bp-login-card { padding: 2rem 1.25rem; }
  .bp-page-title { font-size: 1.3rem; }
  .bp-home-greeting { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .bp-event-actions { flex-direction: row; }
}

@media (max-width: 991px) {
  :root {
    --bp-sidebar-w: 260px;
  }
}


/* ─── 26. SweetAlert2 Custom Styling ────────────────────────────────────────── */
.swal2-popup {
  border-radius: var(--bp-radius-lg) !important;
  font-family: 'DM Sans', 'Outfit', sans-serif !important;
}

.swal2-title {
  font-family: 'Outfit', 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  color: var(--bp-text) !important;
}

.swal2-html-container {
  color: var(--bp-text-2) !important;
}

.swal-cancel-ghost {
  background: transparent !important;
  border: 1px solid var(--bp-border) !important;
  color: var(--bp-text) !important;
  border-radius: var(--bp-radius) !important;
  font-weight: 500 !important;
  transition: background .15s, border-color .15s !important;
}
.swal-cancel-ghost:hover {
  background: var(--bp-surface-hover) !important;
  border-color: var(--bp-muted) !important;
}
.swal-label {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: .75rem;   /* raised from .72rem for readability */
  font-weight: 600;
  color: var(--bp-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .5rem;
}


/* ─── 27. Accessibility ────────────────────────────────────────────────────── */

/* Skip-to-content link (keyboard-only) */
.bp-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--bp-accent);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--bp-radius) var(--bp-radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: top .2s var(--bp-ease);
}
.bp-skip-link:focus {
  top: 0;
  outline: 3px solid var(--bp-primary);
  outline-offset: 2px;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Notification bell touch target */
.bp-bell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  position: relative;
  color: rgba(255,255,255,.8);
  text-decoration: none;
}

/* Password toggle button */
.bp-pw-toggle-wrap {
  position: relative;
}
.bp-pw-toggle {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--bp-muted);
  cursor: pointer;
  padding: .25rem;
  font-size: 1rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-pw-toggle:hover { color: var(--bp-text); }

/* Container width utilities */
.bp-container-sm { max-width: 520px; }
.bp-container-md { max-width: 700px; }
.bp-container-lg { max-width: 900px; }
.bp-container-xl { max-width: 1100px; }

/* FAB page bottom padding */
.bp-has-fab { padding-bottom: 5rem; }

/* Safe area for sidebar footer */
.bp-sidebar-footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Safe area for mobile header */
@supports (padding: env(safe-area-inset-top)) {
  .bp-mobile-header {
    padding-left: calc(.6rem + env(safe-area-inset-left, 0px));
    padding-right: calc(.6rem + env(safe-area-inset-right, 0px));
  }
}
