* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Altijd standaardruimte zonder rare sprongen */
html, body {
    overflow-y: scroll;  /* Zorg dat scrollbar altijd zichtbaar is */
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Zorg dat formulierelementen geen rare margins hebben */
form, fieldset, legend, label, input, textarea, button, select {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

/* Zorg dat koppen en paragrafen netjes zijn */
h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif; /* zonder schreef */
}

/* Specifiek voor codeblokken (markdown bijv.) */
pre, code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
}

.main-nav {
    background-color: #004080;
    padding: 10px 20px;
}

/* Styling voor kaarttekens */
.card {
    font-weight: bold;
    font-family: sans-serif;
}

.spade, .club {
    color: black;
}

.heart, .diamond {
    color: red;
}

/* Hoofdmenu: ul met class 'menu' */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Menu-items */
.menu-item {
    position: relative;
}

/* Links in het menu */
.menu-item a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Hover effect voor menu-links */
.menu-item a:hover {
    background-color: #0066cc;
}

/* Submenu (ul in ul) */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #004080;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

/* Submenu-items */
.submenu-item a {
    display: block;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

/* Hover effect op submenu-links */
.submenu-item a:hover {
    background-color: #0066cc;
}

/* Laat submenu zien als je over het ouderitem hovert */
.menu-item:hover .submenu {
    display: block;
}


/* tbv Markdown */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 1em;
  font-weight: bold;
}

.markdown-content p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.markdown-content em {
  font-style: italic;
}

.markdown-content strong {
  font-weight: bold;
}

/* Basic styling for the top menu */
nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin-right: 15px;
}

nav ul li a {
  text-decoration: none;
  padding: 10px 15px;
  background-color: #007BFF; /* blauwe achtergrond voor links */
  color: white;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #0056b3; /* donkere blauwe achtergrond bij hover */
}

nav ul li ul {
  display: none;
  position: absolute;
  background-color: #333;
  padding: 10px;
}

nav ul li:hover > ul {
  display: block;
}

/* Aanpassen van de stijl voor codeblokken */
pre {
  background-color: #f5f5f5; /* Grijze achtergrond */
  font-family: 'Courier New', Courier, monospace; /* Courier lettertype */
  padding: 10px; /* Wat ruimte rondom de tekst */
  border-radius: 5px; /* Licht afgeronde hoeken voor een nette uitstraling */
  max-width: 80%; /* Zorgt ervoor dat het codeblok niet breder wordt dan 90% van de pagina */
  margin: 10px auto; /* Wat marge boven en onder het codeblok en gecentreerd */
  white-space: pre-wrap; /* Zorgt ervoor dat lange regels netjes omgebroken worden */
  overflow-x: auto; /* Zorgt ervoor dat lange regels scrollbaar zijn */
  word-wrap: break-word; /* Zorgt ervoor dat lange woorden niet buiten het blok vallen */
}

/* Aanpassing voor de inline code */
code {
  font-family: 'Courier New', Courier, monospace; /* Courier lettertype */
  background-color: #f5f5f5; /* Grijze achtergrond */
  padding: 2px 5px; /* Kleine padding rondom de tekst */
  border-radius: 3px; /* Lichte afgeronde hoeken */
}

/* TBV Top-menu */

.top-bar {
  position: relative !important; /* Nodig voor absolute positionering binnen */
  margin-top: 0 auto;  /*Zorg dat top-bar altijd exact op dezelfde plek staat */
  padding-top: 0;  /*Zorg dat top-bar altijd exact op dezelfde plek staat */
  max-width: 100%; of jouw gekozen max breedte 
/*  max-width: 1100px;  of jouw gekozen max breedte */
  align-items: center !important;
  background-color: #34495e !important;
  height: 80px !important;
  width: 100% !important;
  min-height: 80px !important; /* vaste hoogte */
  max-height: 80px !important;
  padding: 0 !important;
  margin: 0 auto; /* in het midden van de pagina */
  border-radius: 8px; /* optioneel: lichte afronding */
  overflow: hidden !important; /* Voorkom dat content eruit steekt */
  display: block !important; /* Niet flex, we gebruiken absolute positionering */
}

.menu-left ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Linker menu - altijd helemaal links */
.menu-left {
    position: absolute !important;
    left: 20px !important; /* Vaste afstand van links */
    top: 50% !important;
    transform: translateY(-50%) !important; /* Verticaal centreren */
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Rechter menu - altijd helemaal rechts */
.menu-right {
    position: absolute !important;
    right: 20px !important; /* Vaste afstand van rechts */
    top: 50% !important;
    transform: translateY(-50%) !important; /* Verticaal centreren */
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row !important; /* Items naast elkaar */
    white-space: nowrap !important; /* Voorkom line wrapping */
}

/* Zorg dat individuele items in het rechtermenu goed uitlijnen */
.menu-right > * {
    flex-shrink: 0 !important; /* Items mogen niet kleiner worden */
}

/* Debug info voor alle header elementen */
.menu-right header {
    background-color: rgba(0, 0, 255, 0.3) !important; /* Blauwe achtergrond */
    border: 1px solid blue !important;
}

.menu-left ul li {
  margin-right: 20px;
}

.menu-left ul li a {
  text-decoration: none;
  color: white; /* <-- hier worden de menuletters wit! */
  font-weight: bold;
  transition: color 0.3s;
}

.menu-left ul li a:hover {
  color: #ffcc00; /* Geel op hover, lekker duidelijk */
}

.menu-right form {
  display: flex;
  align-items: center;
}

.menu-right input[type="text"] {
  padding: 5px;
  border: none;
  border-radius: 4px;
  margin-right: 5px;
}

.menu-right button {
  padding: 5px 10px;
  border: none;
  background-color: #ffcc00;
  color: black;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.menu-right button:hover {
  background-color: #e6b800;
}


.top-bar, .menu-left, .menu-left ul, .menu-left li, .menu-left a,
.menu-right, .menu-right form, .menu-right input, .menu-right button,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* Hover effect op menu links */
.menu-left li a:hover {
    background-color: #555;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

/* Hover effect op top-menu links */
.top-bar a:hover {
    background-color: #555;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

/* Zoekknop bij hover iets lichter */
.menu-right button:hover {
    background-color: #0056b3;
    transition: background-color 0.3s;
}
.loginnaam {
    font-size: 0.6em;
    color: white !important;
}

.page-body {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}
.homepage-wrapper {
    width: 100vw;
    max-width: none !important;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.homepage-title {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.homepage-subtitle {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #666;
}

.homepage-intro {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.homepage-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.homepage-button:hover {
    background-color: #e6b800;
}
.main-wrapper {
  display: flex;
  max-width: none;
  margin: 40px 0 0 0;
  text-align: left;
  padding: 20px;
}

.left-menu {
/*  flex: 0 0 250px;  vaste breedte */
  margin-right: 20px;
}

.left-menu ul {
  list-style-type: none;
  list-style: none;
  padding: 0;
}

.left-menu ul li {
  display: block; !important;
  margin-bottom: 10px;
}

.left-menu ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block;
  padding: 8px;
  background-color: #f0f0f0;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.left-menu ul li a:hover {
  background-color: #ddd;
}

.page-body {
  flex: 1;
}
/* Linkermenu styling - verticaal */
/* Left sidebar perfect uitgelijnd met topbar */
/* Container voor de hele layout */
.layout-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Zorg dat de main content naast de sidebar komt */
.main-content {
    margin-left: 220px; /* Iets meer dan de sidebar breedte */
    flex: 1; /* neemt alle resterende ruimte */
    padding: 20px;
    overflow-y: auto;
}



/* Top menu styling - horizontaal (blijft hetzelfde) */
.top-bar .menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
}

.top-bar .menu li {
    display: inline-block;
    margin-right: 15px;
}

.top-bar .menu li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

.top-bar .menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
/* Content wrapper - flexbox layout */
.content-wrapper {
    max-width: none !important;
    display: flex !important;
    padding-left: 250px !important; /* Ruimte voor de sidebar */
    margin: 0 auto !important;
    padding: 20px 0;
    min-height: 500px;
}

/* Linkersidebar - veritcaal menu */

/* Menu styling voor linkerzijbalk */
/* Main content area */
.main-content {
    flex: 1 !important;
    padding-top: 40px;
    padding: 0 20px !important;
    margin-left: 0 !important; /* Reset eventuele margin */
}

/* Responsive design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
.top-bar button {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    color: white;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-bar button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.top-bar button svg {
    margin-right: 5px;
}

/* Welkomstbericht bij logout-knop */
.welcome-message {
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.menu-right {
    display: flex;
    align-items: center;
}
/* Specifieke styling voor zoekknop */
.search-form button {
    background-color: #f1c40f !important; /* Geel */
    color: #333 !important; /* Zwart */
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.search-form button:hover {
    background-color: #f39c12 !important; /* Donkergeel bij hover */
    color: #333 !important;
}

.search-form button svg {
    stroke: #333 !important; /* Zwarte icoon */
}
/* Search form binnen top bar */
.top-bar .search-form {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
}

.top-bar .search-box {
    display: flex;
    align-items: center;
    flex-direction: row; /* Zorg dat items horizontaal staan */
}

.top-bar .search-box input {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px 0 0 3px; /* Linker hoeken afgerond */
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    width: 180px;
    margin: 0;
}

.top-bar .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar .search-box button {
    background-color: #f1c40f !important; /* Geel */
    color: #333 !important; /* Zwart */
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
    border-radius: 0 3px 3px 0; /* Rechter hoeken afgerond */
    padding: 6px 12px;
    border-left: none; /* Verwijder linker border */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar .search-box button:hover {
    background-color: #f39c12 !important; /* Donkergeel bij hover */
}

.top-bar .search-box button svg {
    stroke: #333 !important; /* Zwarte icoon */
}

/* Zorg ervoor dat de search box onmiddellijk naast elkaar staan */
.search-box > * {
    float: none;
    display: inline-block;
    vertical-align: middle;
}
.search-form {
    border: 2px solid red !important;
    padding: 5px !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
}
/* Consistent styling voor login/logout en zoek knoppen */
.top-bar .search-box button,
.top-bar .auth-form button {
    background-color: #f1c40f !important; /* Geel */
    color: #333 !important; /* Zwart */
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-bar .search-box button:hover,
.top-bar .auth-form button:hover {
    background-color: #f39c12 !important; /* Donkergeel bij hover */
    color: #333 !important;
}

.top-bar .search-box button svg,
.top-bar .auth-form button svg {
    stroke: #333 !important; /* Zwarte icoon */
    margin-right: 5px;
}

/* Styling voor welcome message */
.auth-form .welcome-message {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 0.9em;
    vertical-align: middle;
}

/* Uitlijning van logout form (username naast de button) */
.logout-form .auth-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Menu right uitlijning */
.menu-right {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.menu-right header {
    display: inline-flex;
    margin: 0 5px;
}

.top-bar form {
    display: inline-flex;
    margin: 0;
}
/* Top bar spacing */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #34495e;
}

/* Zorg dat items in het menu netjes uitgelijnd zijn */
.menu-left, .menu-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 100% !important;
}

.menu-right > header:not(:last-child) {
    margin-right: 10px;
}
/* Standaard content container */
.content-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
}

/* Login form styling */
.login-container,
.register-container,
.password-reset-container {
    width: 100%;
    max-width: 800px;
    margin: 0;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    margin-bottom: 30px;
    color: #34495e;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.register-link {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.register-link a {
    color: #3498db;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}
/* Messages area - vaste ruimte en betere positionering */
.messages-area {
    position: relative; /* Verander van fixed naar relative */
    margin: 0 auto;
    width: 80%;
    max-width: none;
    left: 0; /* Verwijder centerpositionering */
    padding: 10px 0;
}

/* Zorg voor vaste hoogte om springen te voorkomen */
.messages-placeholder {
    min-height: 60px; /* Reserveer ruimte, zelfs als er geen messages zijn */
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Betere kleuren (zoals je had) */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-info {
    color: #054b63;
    background-color: #d9ecf7;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

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

.close-alert {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    opacity: .5;
    cursor: pointer;
}

.close-alert:hover {
    opacity: .75;
}

/* Auto-hide messages after 5 seconds */
.auto-hide {
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
.alert::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
}

.alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23155724'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z'/%3E%3C/svg%3E");
}

.alert-error::before, .alert-danger::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23721c24'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z'/%3E%3C/svg%3E");
}

/* Zorg voor consistente padding */
.main-content h1:first-child,
.content-container h1:first-child {
    margin-top: 0;
}
.suit {
    font-size: 1.1em;
    font-weight: bold;
    padding: 0 0.1em;
}

.suit-hearts,
.suit-diamonds {
    color: red;
}

.suit-spades,
.suit-clubs {
    color: black;
}

.contact-form button[type="submit"] {
    /* Kopieer hier de stijl van auth-btn */
    background-color: #FFD700 !important;  /* Of welke kleur je zoekknop ook heeft */
    /* Andere stijleigenschappen */
}

.post-meta {
    margin-bottom: 20px;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.blog-type {
    font-weight: bold;
    color: #444;
}
.author {
    font-style: italic;
}
.date {
    color: #888;
}
.blog-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.intro {
    font-weight: bold;
    margin-bottom: 20px;
}
/* Voeg dit toe aan je template CSS */
.additional-info img {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
  max-width: 300px;
}
  
.additional-info::after {
  content: "";
  display: table;
  clear: both;
}

/* ===== LAYOUT FIX - Voeg dit toe aan je mysite.css ===== */

/* 1. Top-bar: Fixed bovenaan, gecentreerd */
.top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: none !important;
    height: 80px !important;
    background-color: #34495e !important;
    z-index: 1001 !important;
    border-radius: 0 !important; /* Geen rounding voor fixed menu */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    margin: 0 !important;
}

/* 2. Messages placeholder: Fixed onder top-bar - ACHTERGROND AANGEPAST */
.messages-placeholder {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: none !important;
    height: 80px !important; /* Vaste hoogte in plaats van min-height */
    z-index: 1000 !important;
    background-color: #f5f5f5 !important; /* Zelfde als body achtergrond */
    padding: 10px 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Voorkom dat het groter wordt */
}

/* 3. Body padding voor fixed elements - VERHOOGD */
body {
    padding-top: 180px !important; /* Was 160px, nu 180px voor extra ruimte */
}

/* 4. Content wrapper: Flexbox layout, gecentreerd - VERBETERD */
.content-wrapper {
    display: flex !important;
    width: 100% !important; /* Volle breedte */
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 20px !important; /* Zijkant padding */
    min-height: calc(100vh - 200px) !important; /* Voor footer ruimte */
    box-sizing: border-box !important;
}

/* 5. Left sidebar: Vaste breedte, scrollbaar - ACHTERGROND AANGEPAST */
/* 6. Main content: Neemt resterende ruimte - ACHTERGROND AANGEPAST */
.main-content {
    /* Reset ALLE positioning uit andere CSS files */
    position: static !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    
    /* Flexbox properties */
    flex: 1 !important; /* Neemt alle resterende ruimte */
    min-width: 0 !important; /* Belangrijk voor flexbox */
    
    /* Styling - zelfde achtergrond als body */
    padding: 20px !important;
    background-color: #f5f5f5 !important; /* Was #fff, nu zelfde als body */
    overflow-y: auto !important;
}

/* 7. Messages styling verbeteren - VOLLEDIGE BREEDTE */
.messages-container {
    width: 100% !important; /* Volle breedte */
    min-height: 60px !important; /* Minimale hoogte */
    max-height: 60px !important; /* Maximale hoogte */
    overflow-y: auto !important; /* Scroll als er teveel messages zijn */
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f5f5f5 !important; /* Zelfde achtergrond */
}

.messages-container .alert {
    width: 100% !important; /* Volle breedte van container */
    margin-bottom: 5px !important; /* Kleinere margins */
    padding: 8px 15px !important; /* Kleinere padding */
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    font-size: 14px !important; /* Kleinere font voor compactheid */
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

/* 8. Responsive: Op kleinere schermen sidebar boven content */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column !important;
    }
    
/* 9. Menu links in sidebar - reset conflicterende styling */
/* 10. Top-bar menu positionering (uit sticky-topbar.css) */
.menu-left {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.menu-right {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
}

/* ===== EINDE LAYOUT FIX ===== */

/* AI HELP WIDGET FIX - hogere z-index dan layout */
.ai-help-widget {
    z-index: 9999 !important; /* Hoger dan onze layout */
}

/* LINKERMENU SCROLL FIX - krachtige reset */
/* Reset ook eventuele JavaScript positioning */
/* MESSAGES GEEN INVLOED OP LAYOUT */
.messages-placeholder {
    position: fixed !important;
    height: 80px !important;
    overflow: hidden !important;
    /* Voorkom layout shifts */
    margin: 0 !important;
    padding: 10px 20px !important;
    box-sizing: border-box !important;
}

/* ===== SCHONE LEFT-SIDEBAR DEFINITIES ===== */

/* Left sidebar - scrollt mee met de pagina */
.left-sidebar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    padding: 20px 10px;
    /* GEEN position, float, top, left - gewoon static */
}

/* Menu in de sidebar */
.left-sidebar .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-sidebar .menu li {
    display: block;
    margin-bottom: 10px;
    list-style: none;
}

.left-sidebar .menu li a {
    text-align: center;
    font-weight: bold;
    color: #fff;
    padding: 10px 15px;
    background-color: #007bff;
    border-radius: 4px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.left-sidebar .menu li a:hover {
    background-color: #0056b3;
    transform: translateX(5px);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .left-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }
}

/* ===== EINDE SIDEBAR CSS ===== */

/* ===== COMPLETE LAYOUT SYSTEEM ===== */

/* 1. Body padding voor de fixed top elementen */
body {
    padding-top: 160px !important; /* Ruimte voor top-bar + messages */
}

/* 2. Content wrapper - flexbox container */
.content-wrapper {
    display: flex !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    min-height: calc(100vh - 200px) !important;
    box-sizing: border-box !important;
}

/* 3. Left sidebar - scrollt mee met de pagina */
.left-sidebar {
    width: 250px !important;
    min-width: 250px !important;
    flex-shrink: 0 !important;
    background-color: #f5f5f5 !important;
    border-right: 1px solid #ddd !important;
    padding: 20px 10px !important;
    /* GEEN position, float, top, left - gewoon static */
}

/* 4. Main content - neemt resterende ruimte */
.main-content {
    flex: 1 !important;
    padding: 20px !important;
    background-color: #f5f5f5 !important;
    margin-left: 0 !important;
    min-width: 0 !important; /* Belangrijk voor flexbox */
}

/* 5. Menu in de sidebar */
.left-sidebar .menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.left-sidebar .menu li {
    display: block !important;
    margin-bottom: 10px !important;
    list-style: none !important;
}

.left-sidebar .menu li a {
    text-align: center !important;
    font-weight: bold !important;
    color: #fff !important;
    padding: 10px 15px !important;
    background-color: #007bff !important;
    border-radius: 4px !important;
    display: block !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.left-sidebar .menu li a:hover {
    background-color: #0056b3 !important;
    transform: translateX(5px) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* 6. Messages placeholder - fixed maar geen invloed op layout */
.messages-placeholder {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: none !important;
    height: 80px !important;
    z-index: 999 !important;
    background-color: transparent !important; /* GEEN grijze achtergrond meer */
    padding: 10px 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.messages-container {
    width: 100% !important;
    min-height: 60px !important;
    max-height: 60px !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important; /* GEEN grijze achtergrond meer */
}

.messages-container .alert {
    width: 100% !important;
    margin-bottom: 8px !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
}

/* SUCCESS messages - groen */
.messages-container .alert-success {
    color: #155724 !important;
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

/* ERROR messages - rood */
.messages-container .alert-error,
.messages-container .alert-danger {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}

/* WARNING messages - geel */
.messages-container .alert-warning {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
}

/* INFO messages - blauw */
.messages-container .alert-info {
    color: #0c5460 !important;
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
}

/* Hover effect */
.messages-container .alert:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px) !important;
}


/* 7. AI Help Widget */
.ai-help-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

/* 8. Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column !important;
    }
    
    .left-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #ddd !important;
        margin-bottom: 20px !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* ===== EINDE COMPLETE LAYOUT ===== */
