/* Reset en basis */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f4f7f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #172b3a;
  line-height: 1.55;
}

/* Sidebar standaard uit */
.sidebar {
  display: none;
  background-color: #ffffff;
  border-right: 1px solid #dee2e6;
  padding: 28px 18px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 248px;
  margin-top: 48px;
}

/* Sidebar pas tonen vanaf laptops (lg en groter = 992px) */
@media (min-width: 1200px) {
  .sidebar {
    display: block;
  }
}

.sidebar .logo {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 145px;
}
.sidebar .nav-link {
  display: block;
  margin-bottom: 6px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  color: #005a7c;
  text-align: left;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.sidebar .nav-link:hover {
  background-color: #e8f4f7;
  color: #004f6d;
}
.sidebar .nav-link.active { background:#005f7f; color:#fff; box-shadow:0 6px 16px rgba(0,95,127,.2); }
.sidebar .nav-link.text-danger {
  border-color: #d9534f;
  color: #d9534f;
}
.sidebar .nav-link.text-danger:hover {
  background-color: #d9534f;
  color: #fff;
}

/* Main content */
.main {
  margin-left: 248px;
  padding: 42px 4vw;
  margin-top: 40px;
}

/* Mededeling */
.mededeling {
  background: linear-gradient(135deg, #e9f7fa, #f8fcfd);
  border: 1px solid #b8dce5;
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 30px;
}
.mededeling strong {
  display: block;
  margin-bottom: 8px;
}

/* Actuele opdrachten cards */
.card-opdracht {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  min-width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.card-opdracht h6 {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Websiteknop */
.btn-website {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid #005a7c;
  border-radius: 5px;
  text-decoration: none;
  color: #005a7c;
  transition: background 0.2s, color 0.2s;
}
.btn-website:hover {
  background-color: #005a7c;
  color: #fff;
}

/* Custom knoppen */
.btn-custom {
  border: 2px solid #005a7c;
  border-radius: 5px;
  padding: 6px 12px;
  color: #005a7c;
  background: #fff;
  transition: background .2s, color .2s;
}
.btn-custom:hover {
  background: #005a7c;
  color: #fff;
}
.btn-sm {
  font-size: .875rem;
  padding: .25rem .5rem;
}

/* Actieknoppen in cards */
.btn-action {
  border: 2px solid #005a7c;
  background: #fff;
  color: #005a7c;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  transition: background .2s, color .2s;
}
.btn-action:hover {
  background: #005a7c;
  color: #fff;
}

/* Mobiele weergave */
@media (max-width: 767.98px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0 !important;
    padding: 20px !important;
  }

  .navbar .nav-link {
    display: block;
    margin-bottom: 10px;
    padding: 10px 15px;
    border: 2px solid #005a7c;
    border-radius: 5px;
    text-decoration: none;
    color: #005a7c;
    text-align: center;
    transition: background 0.2s, color 0.2s;
  }
  .navbar .nav-link:hover {
    background-color: #005a7c;
    color: #fff;
  }
  .navbar .nav-link.text-danger {
    border-color: #d9534f;
    color: #d9534f;
  }
  .navbar .nav-link.text-danger:hover {
    background-color: #d9534f;
    color: #fff;
  }
}

/* Stijl voor de linker streep in cards */
.card .border-start {
  border-left-width: 4px !important;
  border-left-color: #005a7c !important;
}

a.link-wachtwoord {
  color: #005a7c;
  font-weight: 500;
  text-decoration: none;
}
a.link-wachtwoord:hover {
  text-decoration: underline;
  color: #003f59;
}

/* Nieuws ticker */
#nieuws-ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #004e68, #007b9e);
  color: white;
  font-size: 14px;
  padding: 6px 20px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

h1,h2,h3,h4,h5 { color:#142f3e; letter-spacing:-.02em; }
h2 { font-weight:750; }
.card { border:1px solid #e0e8ec; border-radius:14px; box-shadow:0 8px 24px rgba(26,55,70,.06); overflow:hidden; }
.card-img-top { aspect-ratio:16/9; object-fit:contain; background:#fff; padding:10px; }
.alert { border:0; border-radius:12px; }
.form-control,.form-select { border-color:#cfdde3; border-radius:8px; }
.form-control:focus,.form-select:focus { border-color:#0b7899; box-shadow:0 0 0 3px rgba(11,120,153,.12); }
.btn-website.active { background:#005f7f; color:#fff; }

.calendar-shell { background:#fff; border:1px solid #e0e8ec; border-radius:16px; padding:18px; box-shadow:0 10px 30px rgba(26,55,70,.06); }
.calendar-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; margin-bottom:8px; }
.calendar-weekdays span { color:#657983; font-size:.75rem; font-weight:700; text-align:center; text-transform:uppercase; letter-spacing:.06em; }
.calendar-grid,.calendar { gap:8px !important; }
.calendar-day,.day { border:1px solid #e1e9ed !important; border-left:1px solid #e1e9ed !important; border-radius:10px !important; min-height:100px !important; transition:.18s ease; }
.calendar-day:hover,.day:hover { border-color:#66a9bd !important; transform:translateY(-1px); box-shadow:0 6px 14px rgba(27,74,91,.08); }
.calendar-day.has { background:#edf8fa !important; border-color:#acd7e0 !important; }
.calendar-number,.day-number { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; font-weight:700; }
.calendar-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.calendar-toolbar h2,.calendar-toolbar h3 { margin:0; text-transform:capitalize; }
.calendar-legend { display:flex; flex-wrap:wrap; gap:14px; color:#60737d; font-size:.85rem; margin:14px 0 0; }
.calendar-legend span { display:inline-flex; align-items:center; gap:6px; }
@media (min-width:1367px) { body > main.container { margin-left:248px; width:calc(100% - 248px); max-width:none; padding:42px 4vw !important; } }
@media (max-width:767.98px) { .calendar-shell{overflow-x:auto;padding:12px}.calendar-weekdays,.calendar-grid,.calendar{min-width:700px}.calendar-toolbar{align-items:flex-start}.calendar-toolbar h2,.calendar-toolbar h3{font-size:1.35rem} }

/* Sidebar standaard alleen op desktops (≥1200px) */
.sidebar {
  display: none;
}
@media (min-width: 1200px) {
  .sidebar {
    display: block;
  }
}

/* 🚫 Forceer tablets altijd hamburger, ook in landscape */
@media screen and (max-width: 1366px) {
  .sidebar {
    display: none !important;
  }
  .mobile-nav {
    display: flex !important;
  }
}

