/* ── Objectivity font (alleen rechte varianten) ── */
@font-face {
  font-family: 'Objectivity';
  src: url('https://fonts.cdnfonts.com/s/18151/Objectivity-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Objectivity';
  src: url('https://fonts.cdnfonts.com/s/18151/Objectivity-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Objectivity';
  src: url('https://fonts.cdnfonts.com/s/18151/Objectivity-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Ellio Brand Tokens ── */
:root {
  --ellio-white: #FFFFFF;
  --ellio-warm-grey: #8B8A7D;
  --ellio-light-grey: #C9C6BE;
  --ellio-burgundy: #730907;
  --ellio-vibrant-red: #FF0000;
  --ellio-font: 'Objectivity', sans-serif;
  --ellio-letter-spacing: normal;
}

#testing {
  width: 100%;
  background-color: var(--ellio-burgundy);
  color: var(--ellio-white);
  text-align: center;
  font-size: 1.2rem;
  font-family: var(--ellio-font);
  letter-spacing: var(--ellio-letter-spacing);
}

.bg-ellio {
  background-color: var(--ellio-burgundy) !important;
}

.navbar-brand img {
  max-height: 40px;
}

.navbar-nav .nav-link {
  color: var(--ellio-white) !important;
  margin-left: 1.5rem;
  font-family: var(--ellio-font);
  letter-spacing: var(--ellio-letter-spacing);
}

.navbar-nav .nav-link:hover {
  color: var(--ellio-light-grey) !important;
}

/* Navbar menu overlay: klapt over de inhoud i.p.v. pagina te verschuiven */
#navbarMenu {
  position: relative;
}

#dynamicNavList {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  z-index: 1045;
  margin: 0;
  padding: 0.5rem 0;
  background-color: var(--ellio-burgundy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
  list-style: none;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  border-radius: 0 0 6px 6px;
}

#dynamicNavList .nav-category-title {
  display: block;
  padding: 0.6rem 1rem 0.2rem;
  font-family: var(--ellio-font);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ellio-light-grey);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.3rem;
}

#dynamicNavList .nav-category-title:first-child {
  border-top: none;
  margin-top: 0;
}

#dynamicNavList .nav-item {
  display: block;
}

#dynamicNavList .nav-link i.bi {
  margin-right: 0.4rem;
  font-size: 0.9rem;
}

#dynamicNavList .nav-logout-item {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.5rem;
  margin-left: 0.8rem;
  padding-top: 0.5rem;
}

#logoutBtn:hover {
  color: var(--ellio-burgundy) !important;
}

#dynamicNavList .nav-link {
  display: block;
  padding: 0.5rem 1rem;
  margin-left: 0;
  z-index: 1000;
}

@media (max-width: 1400px) {
  .navbar-nav .nav-link {
    margin-left: 0;
    padding: 0.5rem 1rem;
  }
}

html {
  scroll-behavior: smooth;
}

body:not([data-protected="true"]) {
  background: linear-gradient(rgba(128, 128, 128, 0.3), rgba(128, 128, 128, 0.3)),
    url("../assets/images/login_background.jpg") center/cover no-repeat fixed;
  background-attachment: fixed;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not([data-protected="true"]) .container {
  max-height: 100vh;
  overflow: hidden;
}

h4 {
  text-align: center;
}

.container {
  width: 200%;
}

body:not([data-protected="true"]) .container.form-body {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
}

@media only screen and (max-width: 768px) {
  .container {
    width: 100%;
  }

  body:not([data-protected="true"]) .container.form-body {
    width: 95%;
    padding: 2rem 1.5rem;
  }
}

.form-title {
  font-family: var(--ellio-font);
  font-weight: 700;
  color: var(--ellio-burgundy);
  letter-spacing: var(--ellio-letter-spacing);
}

.form-body {
  font-family: var(--ellio-font);
  font-weight: 400;
  letter-spacing: var(--ellio-letter-spacing);
  color: var(--ellio-warm-grey);
}

.question {
  font-weight: bold;
}

.row-spacer {
  margin-top: 0.5em;
}

.btn-primary {
  background-color: var(--ellio-burgundy);
  border-color: var(--ellio-burgundy);
  font-family: var(--ellio-font);
  letter-spacing: var(--ellio-letter-spacing);
}

.btn-primary:active {
  background-color: var(--ellio-burgundy);
  border-color: var(--ellio-burgundy);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(115, 9, 7, 0.4);
}

.btn-primary:focus {
  background-color: var(--ellio-burgundy);
  border-color: var(--ellio-burgundy);
  outline: none !important;
  box-shadow: inset 0 1px 1px rgba(115, 9, 7, 0.4);
}

.btn-primary:hover {
  background-color: var(--ellio-warm-grey);
  border-color: var(--ellio-warm-grey);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(115, 9, 7, 0.4);
}

.btn-outline-primary {
  color: var(--ellio-burgundy);
  border-color: var(--ellio-burgundy);
  font-family: var(--ellio-font);
  letter-spacing: var(--ellio-letter-spacing);
}

.btn-outline-primary:hover {
  background-color: var(--ellio-burgundy);
  border-color: var(--ellio-burgundy);
  color: var(--ellio-white);
}

.icon {
  color: #fff !important;
  font-size: 1.5rem;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999; /* Just below the menu */
  background: rgba(0,0,0,0.1); /* Slightly dark or totally transparent */
}

.btn-delete-regel{
  color: red;
  cursor: pointer;
  text-align: center;
}

/* ── Home page tile layout ── */
.home-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-family: var(--ellio-font);
  letter-spacing: var(--ellio-letter-spacing);
}

.home-tiles {
  margin-top: 1.5rem;
}

.tile-category {
  margin-bottom: 2rem;
}

.tile-category-title {
  font-family: var(--ellio-font);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ellio-burgundy);
  border-bottom: 2px solid var(--ellio-light-grey);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
}

.tile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.8rem;
  background: var(--ellio-white);
  border: 1px solid var(--ellio-light-grey);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ellio-warm-grey);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.tile-card:hover {
  border-color: var(--ellio-burgundy);
  box-shadow: 0 4px 14px rgba(115, 9, 7, 0.12);
  transform: translateY(-2px);
  color: var(--ellio-burgundy);
  text-decoration: none;
}

.tile-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--ellio-burgundy);
}

.tile-label {
  font-family: var(--ellio-font);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: var(--ellio-letter-spacing);
}

@media (max-width: 576px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}