/* =========================================================
   CORE DESIGN SYSTEM
========================================================= */

:root {
  --bg: #eef1f5;
  --card: #ffffff;

  --text: #1f2937;
  --muted: #6b7280;

  --border: rgba(0,0,0,0.06);

  --radius: 16px;
  --radius-sm: 12px;

  --shadow: 0 2px 6px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 16px rgba(0,0,0,0.06);

  --primary: #0d6efd;
}

/* =========================================================
   LAYOUT FOUNDATION (FIXED + CLEAN)
========================================================= */

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background: var(--bg);
  color: var(--text);

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Ensures footer pushes down */
.content-wrapper,
.content {
  flex: 1;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1, h2, h3,
h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
}

.text-muted {
  color: var(--muted) !important;
}

a, u {
  text-decoration: none;
}

/* =========================================================
   CARD SYSTEM (MODERN UI FOUNDATION)
========================================================= */

.card {
  border-radius: var(--radius);
}

.card-modern {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);

  border-radius: 16px;

  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.06);

  transition: all 0.2s ease;
  overflow: hidden;
}

.card-modern:hover {
  transform: translateY(-2px);

  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    0 12px 28px rgba(0,0,0,0.10);
}

/* =========================================================
   MESSAGE SYSTEM (THREADS + CHAT UX)
========================================================= */

/* Thread cards (list views) */
.message-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

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

/* Chat bubbles */
.message-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.message-bubble.incoming {
  background: #f3f4f6;
  color: var(--text);
}

.message-bubble.outgoing {
  background: var(--primary);
  color: white;
  margin-left: auto;
}

/* Meta row (sender, time, etc.) */
.message-meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Reply composer box */
.message-reply-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* =========================================================
   FLOATING NAVIGATION BUTTON
========================================================= */

.fab-go-bottom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.fab-go-bottom .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-weight: 500;

    border-radius: var(--radius-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.fab-go-bottom .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .fab-go-bottom {
        bottom: 12px;
        right: 12px;
    }

    .fab-go-bottom .label {
        display: none;
    }

    .fab-go-bottom .btn {
        padding: 0.5rem 0.65rem;
        border-radius: var(--radius-sm);
    }

    .fab-go-bottom .btn i {
        margin: 0;
        font-size: 1rem;
    }
}

/* =========================================================
   META UI SYSTEM (IMPORTANT FOR YOUR TEMPLATES)
========================================================= */

.section-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-line {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Pill style (replace heavy badge usage over time) */
.pill {
  display: inline-flex;
  align-items: center;
  align-items: center;
  gap: 6px;

  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;

  background: #f3f4f6;
  color: #374151;
}


/* =========================================================
   LIST CARD INTERACTIONS (EVENT + NOTICE LISTS)
========================================================= */

.hover-card {
  transition: all 0.2s ease;
}

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

/* Optional: tighter meta variant for dense list views */
.meta-line.compact {
  gap: 10px;
  font-size: 0.8rem;
}

/* Optional: slightly stronger icon consistency */
.meta-line i {
  opacity: 0.7;
}


/* =========================================================
   IMAGE PLACEHOLDERS / MEDIA
========================================================= */

.card-img-soft {
  height: 160px;
  background: #e9eef5;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--muted);
  font-size: 2rem;
}

/* =========================================================
   BRAND STYLING (PRESERVED)
========================================================= */

.brand-name .strata {
  font-family: 'Lobster', cursive;
  font-weight: 700;
  color: #0a3d62;
  letter-spacing: 0.5px;
}

.brand-name .deets {
  font-family: 'Lobster', cursive;
  font-weight: 400;
  font-size: 1.15em;

  margin-left: 2px;

  background: linear-gradient(45deg, #0d6efd, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 0.5px #0a3d62;

  text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 1px;
}

.brand-name:hover .deets {
  background: linear-gradient(45deg, #3b82f6, #0d6efd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

/* =========================================================
   NAVBAR / HEADER (LIGHT CLEANUP ONLY)
========================================================= */

.site-header .navbar-nav .nav-link {
  color: #dbcbd5;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

/* =========================================================
   BACKGROUND / HERO (PRESERVED)
========================================================= */

.bg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  height: 580px;
  margin: 0;

  background-image: url("/static/base/sdeets1400.872fdced3a1e.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  background-attachment: fixed;
}

.parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
}

.parallax .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: rgba(0,0,0,0.3);

  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

/* =========================================================
   UTILITY COLORS (KEEPING YOUR EXISTING ONES)
========================================================= */

.bg-steel { background-color: #5f788a; }
.bg-blue { background-color: #5A7EC7; }
.bg-ssprimary { background-color: #Ff6347; }

/* =========================================================
   FOOTER SYSTEM (PRESERVED BEHAVIOR)
========================================================= */

.footer {
  background-color: #343a40;
  padding: 20px 0;
  flex-shrink: 0;
}

.site-footer {
  height: 100px;
  bottom: 0;
  width: 100%;
}

/* =========================================================
   CONTENT / SECTIONS
========================================================= */

.content-section {
  background: #ffffff;
  padding: 10px 20px;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 20px;
}

/* =========================================================
   ARTICLE SYSTEM (LEGACY - KEEP BUT DE-EMPHASIZE)
========================================================= */

.article-title {
  color: #444444;
}

a.article-title:hover {
  color: #428bca;
}

.article-content {
  white-space: pre-line;
}

.article-img {
  height: 50px;
  width: 50px;
  margin-right: 16px;
  border-radius: 50%;
}

.article-metadata {
  padding-bottom: 1px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e3e3e3;
}

/* =========================================================
   PROFILE IMAGES
========================================================= */

.profile-img-menu { height: 30px; width: 30px; margin-right: 5px; }
.profile-img-small { height: 30px; width: 30px; }
.profile-img-medium { height: 40px; width: 40px; margin-right: 5px; }
.profile-img-large { height: 125px; width: 125px; margin-right: 5px; }

/* =========================================================
   HELPERS
========================================================= */

.fakeimg {
  height: 200px;
  background: #aaa;
}

.card-link {
  padding: 0;
}

.alert.error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.border-left-yellow {
  border-left: 5px solid var(--bs-warning);
}

.border-left-green {
  border-left: 5px solid var(--bs-success);
}

.name-tooltip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .name-tooltip {
    max-width: 15ch;
  }
}

.image-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}



/* =========================================
   OFFCANVAS UI STABILIZATION
========================================= */

.offcanvas .offcanvas-tool {
    width: 100%;
}

/* Normalize dropdown triggers inside offcanvas */
.offcanvas .dropdown-menu {
    z-index: 2000 !important;
}

/* Make all tool components visually consistent */
.offcanvas .nav-item > .nav-link {
    font-size: 0.95rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* Prevent icon oversizing mismatch */
.offcanvas i {
    font-size: 1.05rem;
}

/* Ensure badges don’t visually collide */
.offcanvas #task-badge {
    z-index: 2100 !important;
}

.offcanvas .offcanvas-tool {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offcanvas .offcanvas-tool .nav-item,
.offcanvas .offcanvas-tool li {
    width: 100%;
}

.offcanvas .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* =====================================================
   MESSAGE FOLDER PILLS
===================================================== */

.nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.nav-pills .nav-link {
    white-space: nowrap;
    border-radius: 9999px;

    display: flex;
    align-items: center;
    gap: 0.4rem;

    color: var(--bs-secondary-color);
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-secondary-border-subtle);

    padding: 0.45rem 0.85rem;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.nav-pills .nav-link:hover {
    border-color: var(--bs-secondary);
    background-color: var(--bs-body-bg);
}

.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.nav-pills .nav-link.active .custom-badge {
    background-color: rgba(255,255,255,.2) !important;
    color: #fff !important;
}

.tab-label {
    white-space: nowrap;
}

.custom-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.45rem;
}

@media (max-width: 576px) {

    .nav-pills .nav-link {
        padding: 0.4rem 0.75rem;
    }

    .custom-badge {
        font-size: 0.7rem;
    }
}


.filter-pill {
    border-radius: 9999px;
    padding: 0.45rem 0.85rem;

    color: var(--bs-secondary-color);
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-secondary-border-subtle);

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.filter-pill:hover {
    border-color: var(--bs-secondary);
    background-color: var(--bs-body-bg);
}

.filter-pill.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}


.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 2px;
  margin-bottom: 14px;

  border-bottom: 1px solid var(--border);
}


.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}