/* --- MULTI-TENANT VERSTEK KLEURE --- */
*:root {
  --primary-color: #007bff;
  --secondary-color: #f4f4f4;
}

/* Dwing die agtergrondkleur af ongeag van Bootstrap */
body {
  background-color: var(--secondary-color) !important;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif !important;
  color: #333 !important;
  margin: 0 !important;
}

/* --- GESENTREERDE HEADER MET DOUBLE STREEP --- */
.main-header {
  background-color: #ffffff !important;
  padding: 5px 0 0 0 !important; /* Verwyder onderkant padding sodat die menu spasieer via die element self */
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.header-logo {
  max-height: 65px !important;
  width: auto !important;
}

.header-title {
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #222222 !important;
}

.header-nav .nav-link {
  font-weight: 600 !important;
  font-size: 16px !important;
  color: #555555 !important;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
  color: var(--primary-color) !important;
}

/* As die hero NIE wys nie (bv. publieke bladsye), sit die blou lyn onderaan die header */
.main-header {
  border-bottom: 4px solid var(--primary-color) !important;
}

/* As die hero WEL wys, verwyder ons die header se lyn en skuif dit na die onderkant van die hero */
.main-header:has(.hero-section) {
  border-bottom: none !important;
}

/* 3. HERO / WELKOM SEKSIE (Spierwit agtergrond met die lyne bo en onder) */
.hero-section {
  background-color: #ffffff !important; /* Maak dit spierwit of hou dit #e9f5ff as jy die ligblou verkies */
  /* VOEG DIE LYNE HIER BY: Bo-aan en onderaan die hero balk */
  border-top: 4px solid var(--primary-color) !important;
  border-bottom: 4px solid var(--primary-color) !important;
  width: 100% !important;
  padding: 15px 0 !important;
}

.hero-welcome {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

.join-btn {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
}

.join-btn:hover {
  filter: brightness(90%) !important;
}

/* --- FOTO-KAARTJIES (CARDS) --- */
.gallery-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
}

.gallery-img {
  height: 180px !important;
  width: 100% !important;
  object-fit: cover !important;
}
/* Ekstra spesifieke Dashboard aanpassings vir die Sybalk */
.sidebar-link {
  display: block;
  padding: 12px 15px;
  color: #495057;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: #e9f5ff;
  color: var(--primary-color, #007bff);
}

.sidebar-link.active {
  background-color: var(--primary-color, #007bff) !important;
  color: white !important;
}

.sidebar-link.text-danger:hover {
  background-color: #f8d7da;
}
/* --- ONAFHANKLIKE EN STICKY SYBALK --- */
/* --- NUWE APP-STYL DASHBOARD UITLEY (Slegs vir groter skerms) --- */
/* --- APP-STYL DASHBOARD UITLEY (Slegs vir skerms van 768px en wyer) --- */
@media (min-width: 768px) {
  /* 1. Stop die hoof-browservenster om te scroll */
  body:has(.sticky-sidebar-container) {
    overflow: hidden !important;
    height: 100vh !important;
  }

  /* 2. Linkerkant (Sybalk) se eie scroll-houer */
  .sticky-sidebar-container {
    position: sticky !important;
    top: 150px !important; /* Pas aan volgens die hoogte van jou nuwe header */
    height: calc(
      100vh - 170px
    ) !important; /* Beperk die hoogte tot die skerm-uitsig minus header */
    overflow-y: auto !important; /* Gee die sybalk sy eie scrollbar indien nodig */
    padding-right: 5px;
  }

  /* 3. REGTERKANT (Hoofinhoud) se eie scroll-houer - DIT IS DIE REGMAAK */
  .scrollable-content-container {
    height: calc(
      100vh - 170px
    ) !important; /* Presies dieselfde beskikbare hoogte as die sybalk */
    overflow-y: auto !important; /* ENABELL DIE SCROLLBAR VIR DIE TABEL / INHOUD */
    padding-right: 15px; /* Gee bietjie spasie sodat die scrollbar nie teenaan die kaarte lê nie */
  }
}

/* --- KRAGTIGE INTERNE MENU STYLE (Herhaal vanaf dashboard) --- */
.sidebar-link {
  display: block !important;
  padding: 12px 15px !important;
  color: #495057 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.sidebar-link:hover {
  background-color: #e9f5ff !important;
  color: var(--primary-color, #007bff) !important;
}

.sidebar-link.active {
  background-color: var(--primary-color, #007bff) !important;
  color: white !important;
}

.sidebar-link.text-danger:hover {
  background-color: #f8d7da !important;
}
/* Generic Footer Styling */
/* Generic Footer Styling */
footer {
  position: fixed; /* Voeg dit by om die footer aan die venster te anker */
  bottom: 0; /* Plak dit aan die heel onderkant van die skerm */
  left: 0; /* Begin van die heel linkerkant af */
  width: 100%; /* Strek oor die volle breedte van die skerm */
  z-index: 1020; /* Sorg dat dit bo-op die gallery-kaarte lê wanneer jy scroll */

  flex-shrink: 0; /* */
  background-color: #333; /* */
  color: #fff; /*[cite: 3] */
  padding: 15px 20px; /* Effens minder padding sodat dit nie te veel skermspasie op selfone opneem nie */
  text-align: center; /*[cite: 3] */
  font-family: Arial, sans-serif; /*[cite: 3] */
  font-size: 0.9rem; /*[cite: 3] */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15); /* Voeg 'n ligte skaduwee bo-aan die footer by vir definisie */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  margin-bottom: 5px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #007bff;
  text-decoration: underline;
}

.footer-copyright {
  color: #bbb;
  font-size: 0.85rem;
  margin: 0;
}
