/* AI SUGGESTIONS */

:root {
  /* Brand colors */
  --color-primary: #D94500;
  --color-primary-light: #F06A2E;
  --color-primary-dark: #A33400;

  --color-secondary: #005629;
  --color-secondary-light: #007A3A;
  --color-secondary-dark: #003D1C;

  /* Accent colors (harmonisch met primary + secondary) */
  --color-accent-yellow: #FFC857;
  --color-accent-cream: #FFF4E6;

  /* Neutral palette */
  --color-black: #0A0A0A;
  --color-gray-900: #1A1A1A;
  --color-gray-700: #3A3A3A;
  --color-gray-500: #7A7A7A;
  --color-gray-300: #CCCCCC;
  --color-gray-100: #F2F2F2;
  --color-white: #FFFFFF;

  /* UI states */
  --color-primary-hover: #BF3E00;
  --color-primary-active: #9F3300;

  --color-secondary-hover: #004D24;
  --color-secondary-active: #00381A;

  /* Shadows */
  --shadow-soft: 0 2px 6px rgba(0,0,0,0.15);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.2);
  --shadow-strong: 0 6px 20px rgba(0,0,0,0.25);
}


/* =====================================================     

    . ROOT VARIABLES

   ===================================================== */

:root {
  --primary: #005514   ; /* rgba(0, 85, 20, 1.0) */    
  --secondary: #2F056C; /* rgba(47, 5, 108, 1.0) */
    
  --background: #D5DBE2;
  --header-color: #f9f9f9;
  --background-box: #f9f9f9;
  --primary-dark: #a34b67;
  --text-color: #1a1a1d;
  --text-color-light: #f9f9f9;
  --box-color-color: #005629;
  --font-body: "Montserrat", sans-serif;
  --white: #f9f9f9;

  --points-jersey: purple;
  --mountain-jersey: blue;

  --gray-dark: #333333;
  --gray-light: #bfc3c9;

  --border-gradient-country: linear-gradient(
      to right,
      #003D1C,
      #003D1C,
      #007A3A,
      #007A3A,
      #ffffff,
      #ffffff
    )
    1;
  --border-image-country-header: linear-gradient(
      to right,
       #003D1C,
      #003D1C,
      #007A3A,
      #007A3A,
      #ffffff,
      #ffffff
    )
    100% 1;

  --accent-green: #00c853;
  --accent-red: #e10600;
  --accent-orange: #ff7f50;
  --accent-secondary: gold;

  --text-color-btn-sec: white;
  --border-color-btn-alt: white;
  --tab-button-color: white;

  --fieldset: white;
  --session-block: white;
  --match-card: white;
  --joker-block: white;
  --selected_round: white;

  /* Info boxes */
  --info-box-gray: #cccccc39;
  --info-box-green: #dff0d8;
  --info-box-red: #f2dede;
  --info-box-yellow: #f5dd27;
  --info-box-border: 4px solid #777;
  --info-box-border-green: 4px solid green;
  --info-box-border-red: 4px solid #e10600;
  --info-box-border-yellow: 4px solid #eed511;
  --info-box-background: white;

  --table-border: rgba(176, 170, 170, 0.692);
  --table-row-even: rgba(151, 151, 151, 0.14);
  --table-divider: white;
}

/* =====================================================     

    . GLOBAL STYLES & RESETS

   ===================================================== */

body,
html {
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text-color);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  max-height: 100rem;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
h2,
h5 {
  font-variant: small-caps;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
h2 {
  font-size: 1.4rem;
  color: var(--secondary);
}
h4 {
  font-size: 0.9rem;
}
h5 {
  font-size: 1.2rem;
  margin-top: 1.25em;
}

p {
  margin-top: 0;
}
.h3_underline {
  border-bottom: 2px solid var(--primary);
  width: fit-content;
}
.hidden {
  display: none !important;
}

.show-block {
  display: block !important;
}

/* =====================================================     
     
    . LAY OUT BASICS

   ===================================================== */

.wrapper {
  flex: 1;
  width: 100%;
  padding: 0 0.625rem;
  box-sizing: border-box;
  max-width: 100rem;
  margin: 1rem auto 0;
}

.columns {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* =====================================================     
     
    . BOXES & INFO BOXES

   ===================================================== */

.box,
.box_color {
  padding: 1rem;
  border: 1px solid var(--box-color-color);
  border-radius: 12px;
  background: var(--background-box);
  scroll-margin-top: 10px;

}

.box_color {
  background: var(--primary);
  color: var(--box-color-color);
}

/* Info & Instructie blokken */
.info-box,
.info-box_green,
.info-box_main,
.info-box_red {
  padding: 1rem;
  margin-bottom: 1rem;
}

.info-box_green {
  background: var(--info-box-green);
  border-left: var(--info-box-border-green);
  color: var(--text-color);
}

.info-box_red {
  background: var(--info-box-red);
  border-left: var(--info-box-border-red);
}

/* =====================================================     
     
    . BUTTONS & LINKS

   ===================================================== */

.btn-submit,
.btn-submit_sec,
.btn-quick,
.btn-joker {
  padding: 10px 20px;
  color: var(--text-color-light);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}

.btn-submit_sec {
  background: var(--background);
  border: var(--background);
  color: var(--text-color);
}

.btn-submit {
  background: var(--primary);
  border: var(--primary);
}

.btn-quick {
    background: var(--secondary);
    border: var(--secondary);
    color: var(--text-color-light);
}

.header-with-button {
  display: flex;
  justify-content: space-between; /* Kop links, knop rechts */
  align-items: center; /* Verticaal in het midden */
  margin-bottom: 15px; /* Ruimte onder de header */
  flex-wrap: wrap; /* Zorgt dat het op mobiel onder elkaar past indien nodig */
  gap: 10px;
}

.header-with-button h2 {
  margin: 0; /* Verwijder standaard marges voor betere uitlijning */
}

/* Specifieke styling voor de button als 'btn-submit_alt' nog niet bestaat */
.btn-submit_sl {
  background-color: var(--primary);
  color: var(--text-color-light);
  padding: 4px 8px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s ease;
  white-space: nowrap; /* Voorkomt dat de tekst van de knop afbreekt */
}

.btn-submit_sl:hover {
  background-color: var(--primary);
  color: white !important;
}

.btn-more {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    font-family: var(--font-body);
}

.btn-more:hover { background: var(--primary);opacity: 0.9;}

.btn-admin { 
    background: var(--color-secondary-dark);
    color: white; 
    text-decoration: none; 
    padding: 10px 15px; 
    border-radius: 5px; 
    font-weight: bold; 
    display: inline-block; 
    font-size: 0.85rem; 
}


/* =====================================================     
    
    . LOGOS & IMAGES

   ===================================================== */

  .logo,
  img.logo {
    width: 1.2rem;
    height: 0.85rem;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin: 0.2rem 0.1rem 0.15rem 0.1rem;
    border:1px solid #eee;
  }

      .logo-success {
        flex-shrink: 0;
    }

/* =====================================================     
    
    . CUSTOM DROPDOWN

   ===================================================== */

   .custom-dropdown {
    position: relative; 
    display: inline-block;
    width: 100%;
    max-width: 280px; 
    margin-bottom: 15px; 
}

.dropdown-selected { 
    background: #fff; 
    border:3px solid var(--primary); 
    padding: 8px 12px; 
    border-radius: 8px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.dropdown-items { 
    display: none; 
    position: absolute; 
    background: #fff; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    width: 100%; 
    z-index: 1000; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    max-height: 300px;  /* Hoogte van ongeveer 6-7 items */
    overflow-y: auto;   /* Toon scrollbalk indien nodig */
}

.dropdown-item { 
    padding: 10px 12px; 
    cursor: pointer; 
    border-bottom: 1px solid #eee; 
}

.dropdown-item:hover { 
    background: #f8f8f8; 
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease; /* Zorgt voor een vloeiende beweging */
    margin-left: 8px;
}

/* Wanneer de dropdown open is, draai de pijl */
.custom-dropdown.is-open .arrow {
    transform: rotate(180deg);
}


/* ------------------------------------------
    Stats.php
  ------------------------------------------ */

   .dropdown-selected strong,
    .dropdown-selected span {
        font-weight: bold;
    }

    #cmpADropdown .dropdown-selected {
        border: 3px solid var(--secondary);
        border-radius: 8px;
        padding: 8px;
    }

    #cmpBDropdown .dropdown-selected {
        border: 3px solid var(--primary);
        border-radius: 8px;
        padding: 8px;
    }

/* ========================================
     
    . TABLES

   ======================================== */

/* General tables styling */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  font-family: var(--font-body);
  margin: 1.25rem 0;
  font-size: 1rem;
  overflow: hidden;
  background: var(--background-box);
  border-left: 1px solid rgba(176, 170, 170, 0.3);
  border-right: 1px solid rgba(176, 170, 170, 0.3);
  border-bottom: 1px solid #ddd;
  /* Duidelijke grijze border tussen rows */
  border-radius: 8px 8px 0 0;
}

/* Headers styling */
table th {
  background-color: var(--primary);
  color: var(--header-color);
  padding: 10px 0.5rem;
  text-transform: uppercase;
  border: none;
}

/* Cellen styling */
table td {
  padding: 8px 4px;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid rgba(176, 170, 170, 0.1);
}

/* Verwijder de rechter border bij de laatste kolom */
table td:last-child {
  border-right: none;
}

/* Zebra-strepen */
table tr:nth-child(even) {
  background-color: rgba(151, 151, 151, 0.1);
}

/* Divider voor tussen groepen */
.table-divider {
  height: 1rem;
  background-color: var(--gray-light);
  border: none;
}

/*
.highlight-row {background-color: rgba(255, 47, 114,1.0) !important;}
*/
/* ------------------------------------------
    Index.php - tables 
  ------------------------------------------ */
.standings-table {
  font-size: 1rem;
  text-align:left; 
  font-size:1rem; 
  width:fit-content";
}

.standings-table th{
  font-size: 0.85rem;
}

.standings-table th:first-child, 
.standings-table td:first-child {
    text-align:center; 
    color:var(--primary);
}

.standings-table td:nth-child(3) {
    color: #666;
}

.standings-table td:last-child {
    color: #666;
    text-align: right; 
    padding-right: 10px;
}

.standings-table th:last-child {
    text-align: right; 
    padding-right: 10px;
}
/* ------------------------------------------
    Picks.php - tables 
  ------------------------------------------ */
.rider_categories {
  font-size: 0.8rem;
  text-align: left;
}
.rider_categories td:first-child {
  white-space: nowrap;
  width: 1%;
  /* Zorgt dat deze kolom niet breder wordt dan nodig */
  vertical-align: top;
  padding-left: 8px;
}

/* ------------------------------------------
    Ranking.php - tables 
  ------------------------------------------ */

.ranking-table td:first-child {
color: var(--primary);
}

  .ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) {
    text-align: left;
}

.ranking-table th:nth-child(4),
.ranking-table td:nth-child(4) {
    font-weight: bold;
}

@media (max-width: 499px) {
    .ranking-table {
        font-size: 0.9rem;
    }

.ranking-table td:first-child,
.ranking-table th:first-child {
  max-width: 2px;
  text-align: right;
  }
}
 
/* ------------------------------------------
    Stats.php - tables 
  ------------------------------------------ */
    .stats-picks-table,
    .stats-spelers-table,
    .stats-fans-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        margin-bottom: 1rem;
    }

    .stats-picks-table {display: none;}/* Wordt geopend via JS */
    .stats-picks-table tr {height: 2.2rem;}

    .stats-picks-table td,
    .stats-picks-table th {
        padding: 0 4px;
        vertical-align: middle;
        overflow: hidden;
        white-space: nowrap;
        border: 0.5px solid rgba(37, 148, 205, 0.2);
    }

    .stats-picks-table th:first-child,
    .stats-picks-table td:first-child {
        width: 30px;
        text-align: center;
    }

    .stats-fans-table th:first-child,
    .stats-fans-table td:first-child {
        text-align: left;
    }

    .stats-fans-table th:last-child,
    .stats-fans-table td:last-child {
        width: 5rem;
    }

    .col-match {
        padding-left: 10px;
        text-align: left;
    }

    .stats-picks-table th:nth-last-child(-n+3),
    .stats-picks-table td:nth-last-child(-n+3) {
        width: 2rem;
        text-align: center;
    }

    .stats-spelers-table th:nth-last-child(-n+2),
    .stats-spelers-table td:nth-last-child(-n+2) {
        width: 3rem;
        text-align: center;
    }

    .stats-spelers-table th:first-child,
    .stats-spelers-table td:first-child {
        text-align: left;
    }

/* ========================================
     
    . MATCH CARDS

   ======================================== */
/* Standaard (Desktop): Toon volledige naam, verberg korte naam */
.name-full {
    display: inline;
}
.name-short {
    display: none;
}
/* ------------------------------------------
      Day Blocks  
------------------------------------------ */
  .day-block {
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 0 10px;
    border-radius: 8px;
  }

  .day-header-flex {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .day-deadline-info {
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
    opacity: 70%;
  }

  .deadline-row-styled {
    border-bottom: 1.5px solid var(--gray-dark);
    margin-bottom: -10px;
    padding-bottom: 5px;
    margin-right: 10px;
  }

  .expired-status-label {
    color: red;
    font-weight: bold;
  }

  .session-section {
    margin-top: 10px;
    padding-top: 0;
  }


/* ------------------------------------------
    Round Badges 
  ------------------------------------------ */
  .round-badge,
  .round-badge-turbo,
  .round-badge-success {
    background: var(--primary);
    color: var(--text-color-light);
    border-radius: 50%;
  }

  .round-badge,
  .round-badge-turbo {
    font-size: 1rem;
    padding: 4px 10px;
    margin: 0 10px 0 2px;
  }

   .round-badge-turbo {
    font-size: 1.2rem;
  }

   .round-badge-success {
        width: 45px;
        height: 45px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: bold;
  }

/* ------------------------------------------
      Match Rows  
------------------------------------------ */
    .match-row {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      gap: 12px;
      padding: 10px 0;
      width: 96%;
      border-top: 1px solid #eee;
      border-bottom: 1px solid #eee;
      margin-top: -1px;
      position: relative;
      z-index: 1;
      background: #fff;
    }

    .match-row {
        gap: 6px;
        overflow: hidden; 
    }
    
    .match-row.is-missed .logo {
        filter: grayscale(1) opacity(0.6);
        padding: 2px 0;
    }

        .match-row.needs-action {
        border-top: 1px solid var(--primary);
        border-bottom: 1px solid var(--primary);
        z-index: 10;
        margin-right: 10px;
        
        }


    .match-details {
        flex: 0 0 auto; /* Mag nooit krimpen of groeien */
        text-align: center;
    }

    .team-name {
        flex-shrink: 1;
        min-width: 0; /* Essentieel om ellipse te laten werken in een flex-box */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1rem;
        /* Geen vaste breedte, zodat korte namen kort blijven */
    }

  .score-cell {
    font-size: 0.95rem;
    color: black;
  }

    .is-selected {
    font-weight: bold;
    border-bottom: 2px solid red;
  }

  .is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .team-label {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
  }

    /* Voorkom dat radiobuttons en logo's worden geplet */
    .team-label input[type="radio"],
    .team-label .logo {
        flex-shrink: 0 !important;
    }

  .team-label input[type="radio"] {
    margin: 0;
    padding: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
  }


  .team-label.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .team-label.is-disabled img {
    filter: grayscale(0.8);
  }

  .team-label.is-disabled input[type="radio"]{
    display: none;

    }

.score-display {
    color: var(--primary);
    font-weight: bold;
}

/* ------------------------------------------
      Form actions (knoppen onderin)  
------------------------------------------ */
  .form-actions {
    margin: 20px 0 15px 0;
    display: flex;
    justify-content: center;
    padding-top: 15px;
  }

.form-actions > div {
    display: flex;       /* Zet de knoppen naast elkaar */
    gap: 10px;           /* Zorgt voor een exacte gelijke tussenruimte */
    width: 70%;         /* Laat de container de volle breedte benutten */
    justify-content: center; /* Centreert knoppen binnen de div */}

.form-actions button {
    flex: 1;             /* Dwingt alle knoppen om precies dezelfde breedte te pakken */
    white-space: nowrap; /* Voorkomt dat tekst binnen de knop naar een nieuwe regel gaat */
    text-align: center;  /* Zorg dat de tekst netjes in het midden staat */
    display: inline-block;
    margin-top: 0;       /* Reset eventuele marges die in je basis-CSS staan */
}


 
.joker-toggle-container .btn-joker {
  display: none; /* Forceer zichtbaarheid in de modal */
  min-width: 120px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Zorg dat de actieve stand opvalt in de modal */
.btn-joker.is-active {
  background-color: #f1c40f !important;
  color: black !important;
  border-color: #d4ac0d !important;
}
/* ------------------------------------------
      Joker component styling  
------------------------------------------ */
/* De container voor de Joker in de match-row */
.joker-block {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    transition: all 0.3s ease;
    user-select: none;
    cursor: pointer;
    margin-left: auto !important; /* Duwt joker naar de rechterkant */
}

/* Visuele status wanneer Joker geselecteerd is (ook voor gelockte matches) */
.joker-block:has(.joker-checkbox:checked),
.joker-block:has(.joker-checkbox:disabled:checked) {
    background: #f1c40f !important;
    border-color: #d4ac0d;
}

/* Label wrapper binnen het blokje */
.joker-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    line-height: 1;
}

/* De eigenlijke checkbox styling */
.joker-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 15px !important;
    height: 15px !important;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.joker-checkbox:checked {
        background: #f1c40f !important;
        border-color: #f1c40f;}

.joker-checkbox:disabled {
    cursor: not-allowed;
    background: #f1c40f !important;
    border-color: #f1c40f;
}


/* Het vinkje (getekend met clip-path) */
.joker-checkbox::before {
    content: "";
    width: 12px;
    height: 12px;
    transform: scale(0);
    background-color: rgb(168, 111, 21);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.joker-checkbox:checked::before {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}

/* Tekst en Emoji uitlijning */
.joker-text-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    position: relative;
    top: 1px;
}



/* Joker button */
.btn-joker {
  color: black;
  border: 2px solid #f1c40f;
  display: none !important; 
}


/* De "Aan"-stand */
.btn-joker.is-active {
    background-color: #f1c40f; /* Joker Geel */
}

.btn-joker:active {
    transform: scale(0.95);
}

    .joker-indicator {
        border-radius: 8px;
        padding: 5px 5px;
        border: 1px solid #f1c40f; 
        background: #f1c40f;
        color: #856404;
        box-shadow: 0 2px 8px rgba(241, 196, 15, 0.2);
        font-weight: 600;
        display: flex; 
        align-items: center; 
        margin-left: auto;
        flex-shrink: 0;
    }

    .joker-indicator input {
        margin: 0 10px 0 0;
        width: 18px;
        height: 18px;
        accent-color: #f1c40f;
        
    }

    .joker-emoji { display: none; }


/* 2. Toon de joker button alleen op mobiel */
@media (max-width: 499px) {
  .btn-joker {
    display: flex !important; /* Gebruik flex voor de icon + tekst uitlijning */
    align-items: center;
    justify-content: center;
    flex: 1; /* Zorgt dat hij even groot is als de andere knoppen in je form-actions */
  }

  .btn-submit,
.btn-submit_sec,
.btn-quick {
  border:2px solid transparent;
}
}

/* ------------------------------------------
      Joker responsive  
------------------------------------------ */

@media (max-width: 499px) {
    /* 1. Basis verbergen */
    .joker-block {
        display: none !important; /* Verberg standaard */
        margin-right: 0px;
        padding: 4px;
        gap: 0px;
    }

    /* 2. TONEN als de Modus aan staat */
    body.joker-mode-active .joker-block {
        display: inline-flex !important;
        animation: fadeIn 0.3s ease;
    }

    /* 3. TONEN als hij gecheckt is (ook als modus UIT staat) */
    /* Let op de punt voor .joker-block, die miste in jouw code */
    .joker-block:has(.joker-checkbox:checked) {
        display: inline-flex !important;
        background: #f1c40f !important;
        border-color: #d4ac0d;
    }

    /* 4. Grid voor de knoppen onderin */
    .form-actions > div {
        display: grid !important;
        grid-template-columns: 1fr 1fr; 
        gap: 10px; 
        width: 100% !important;
        max-width: none;
    }

    .form-actions button, 
    .btn-joker {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 44px; /* Forceer gelijke hoogte */
        box-sizing: border-box;
    }

    /* Zorg dat de andere knoppen geen extra ruimte innemen door borders */
    .btn-submit, .btn-submit_sec, .btn-quick {
        border: 2px solid transparent;
    }

    /* Als de joker gecheckt EN disabled is (locked status) */
    .joker-block:has(.joker-checkbox:checked:disabled) {
        padding: 4px;      /* Maak het blokje compacter */
        min-width: 32px;   /* Net breed genoeg voor het vinkje */
        background: #f1c40f !important; /* Houd de gele kleur */
        border-color: #d4ac0d;
        justify-content: center;
    }

    /* Verberg de tekst en de joker emoji in locked status */
    .joker-block:has(.joker-checkbox:checked:disabled) .joker-text-wrapper {
        display: none !important;
    }

    /* Zorg dat de label geen gap meer heeft als de tekst weg is */
    .joker-block:has(.joker-checkbox:checked:disabled) .joker-btn {
        gap: 0;
        margin: 0;
    }

    /* Forceer de checkbox om in het midden te staan */
    .joker-block:has(.joker-checkbox:checked:disabled) .joker-checkbox {
        margin: 0 !important;
    }

    .name-full {
        display: none;
    }
    .name-short {
        display: inline;
    }

    /* Zorg dat de team-name container de tekst netjes afkapt als het echt krap wordt */
    .team-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex: 1;
        font-size: 0.85rem;
    }

    /* Zorg dat de joker tekst op mobiel ook compacter is */
    .joker-text-wrapper .name-full {
        display: none;
    }
    
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


@keyframes popIn {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.6); } /* Kleine overshoot voor 'bounce' effect */
    100% { transform: scale(1); }
}



/* ===========================================
    
    INDEX.PHP

  =========================================== */

.filter-container {
  display: flex;
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
  background-color: #fff;
  margin-bottom: 15px;
  overflow: hidden; 
  border: 1px solid #ddd;
  border-left: 4px solid var(--background); 
}

#TennisSearchInput {

  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box; 
  padding: 6px 12px;
}

.filter-input {
  border-left: 4px solid var(--background); 
}

/* ===========================================
    
    PICKS.PHP

  =========================================== */
  /* ------------------------------------------
    Uitleg Box 
  ------------------------------------------ */
  .uitleg-box {
    display: none;
    position: relative;
    background: #faf2ee;
    border-left: 5px solid var(--primary);
  }

  .uitleg-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
  }

  .uitleg-hide-action {
    font-size: 0.8rem;
    background: none;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 4px 8px;
    border-radius: 24px;
    cursor: pointer;
    font-family: var(--font-body);
  }

  .info-icon-sup {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50%;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: bold;
    font-size: 8px;
    line-height: 1;
  }
  /* ------------------------------------------
    Turbo Picks - General 
  ------------------------------------------ */

  #turboListContainer {
    width: 98%;
  }

  #turboListContainer .match-row {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
  }

  .turbo-promo-container {
    border: 3px solid var(--primary);
    position: relative;
  }

  .turbo-header-flex {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.4rem;
  }


/* ------------------------------------------
    xxx - General 
  ------------------------------------------ */

/* ========================================
     
    . PREDICTION SUCCESS

   ======================================== */

/* ------------------------------------------
    xxx - General 
  ------------------------------------------ */
  
        .success-header {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin: 0 0 10px 0;
        color: var(--secondary);
    }

        .session-info {
        border-bottom: 2px solid var(--primary);
        padding-bottom: 10px;
        font-weight: 500;
        color: #555;
    }

        .match-tennis { 
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.15);
        font-size: 1rem;
    }

    .match-tennis:first-of-type { border-top: 1px solid rgba(0,0,0,0.15); }

      .team-container {
        display: inline-flex;
        flex-direction: column;
        min-width: 0;
    }

      .vs-text { color: #999; font-size: 0.85rem; margin: 0 4px; flex-shrink: 0; }


/* ========================================
     
    RANKING.PHP

   ======================================== */
/*subleague area */
.subleague-header-name { color: var(--gray-dark); }

/* update area */
.last-match-wrapper { margin-bottom:2px; }

.last-match-label {
    color:#666;
    display:block;
    margin-bottom:5px;
}

.last-match-row {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:0.9rem;
}

.match-crest {
    width:20px;
    height:20px;
    object-fit:contain;
}

.update-time {
  font-size: 0.8rem;
  text-align: left;
  color: #666;
  font-style:italic;

}

.admin-success {
    background:#d4edda;
    color:#155724;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
}

.stand-info-list {
    font-size:0.9rem;
    line-height:1.6;
}

/* ========================================
     
    STATS.PHP

   ======================================== */
/* ------------------------------------------
    Highlights
  ------------------------------------------ */

    .highlighted-choice {
        font-weight: bold;
        border-bottom: 2px solid red;
    }

    .name-shorthand.highlighted-choice {
        text-decoration: underline;
    }

    .highlight-red {
        font-weight: bold !important;
        font-size: 1.051rem;
        background-color: rgba(231, 76, 60, 0.1);
        color: #c0392b;
        border-radius: 50%;
        padding: 2px 8px;
    }

    .highlight-yellow {
        font-weight: bold !important;
        font-size: 1.051rem;
    background-color: rgba(241, 196, 15, 0.2); /* Zachte gele/gouden tint */
        color: #d35400;
        border-radius: 50%;
        padding: 2px 8px;
    }

/* ------------------------------------------
    Summary bar
  ------------------------------------------ */

  /* De tabel die de ronde-informatie bevat */
.summary-bar-table {
    width: 100%;
    margin: 0;
    cursor: pointer;
    border-radius: 0%;
    border:none;
    border-bottom: 0.5px solid rgba(0,0,0,0.3);
}




/* Animatie van het pijltje wanneer de ronde opengeklapt is */
.summary-bar-table.open .triangle-cell {
    display: inline-block; /* Nodig om te kunnen roteren */
    transform: rotate(90deg);
    

}

/* ------------------------------------------
    Toggle bar
  ------------------------------------------ */

    .table-controls {
        display: none;
        /* Standaard uit, aan via JS/Mobile classes */
        gap: 8px;
        justify-content: flex-end;
        width: 100%;
        margin: 0;
        padding-top: 10px;
    }

    .btn-toggle {
        background: #f0f0f0;
        border: 1px solid var(--primary);
        padding: 4px 10px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: 0.2s;
    }

    .btn-toggle.active {
        background: var(--primary);
        border-color: var(--primary);
        font-weight: bold;
    }

/* ------------------------------------------
    Badges (win groen, verlies rood)
  ------------------------------------------ */
    .pts-badge {
        display: inline-block;
        width: 25px;
        line-height: 20px;
        border-radius: 4px;
        font-weight: bold;
        text-align: center;
    }

    .pts-win {
        background-color: rgba(46, 204, 113, 0.2);
        color: #27ae60;
    }

    .pts-zero {
        background-color: rgba(231, 76, 60, 0.1);
        color: #c0392b;
    }

/* ------------------------------------------
    Various
  ------------------------------------------ */

    .team-wrapper,
    .team-row {
        display: flex;
        align-items: center;
        gap: 8px;
        overflow: hidden;
    }

    .logo_stats {
        max-width: 20px;
        max-height: 18px;
        object-fit: contain;
        flex-shrink: 0;
        border-radius: 1px;
    }

    .team-name-shorthand,
    .name-wrapper {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

/* ------------------------------------------
    Vergelijking
  ------------------------------------------ */
 

/* Grafiek en Tabel */
.chart-wrapper {
  height: 350px;
  margin-bottom: 20px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}

.compare-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.compare-vs-text {
    font-weight: bold;
    color: #999;
    font-size: 0.9rem;
    margin: 0 5px 15px;
    
}
/* ------------------------------------------
    Responsive
  ------------------------------------------ */
  
    /* Desktop Only */
    @media (min-width: 769px) {
        .mobile-only-text {
            display: none !important;
        }

        .col-joker,
        .col-score,
        .col-pts {
            display: table-cell !important;
        }
    }
/* Tablet/Mobiel */
    @media (max-width: 768px) {
        .desktop-only-text {
            display: none !important;
        }

        .col-joker,
        .col-score,
        .col-pts {
            display: none;
        }

        .active-col {
            display: table-cell !important;
        }

        /* 1. Verberg de controls ALTIJD standaard op mobiel */
        .table-controls {
            display: none !important;
        }

        /* 2. Toon de controls ALLEEN als de summary bar de class 'open' heeft */
        /* De + selector pakt de direct volgende div (.table-controls) */
        .summary-bar-table.open + .table-controls {
            display: flex !important;
            gap: 8px;
            justify-content: flex-end;
            width: 100%;
            margin: 5px 0;
        }

        .stats-table td {
            font-size: 0.95rem;
        }

        /* De container van de twee dropdowns */
        #userCompareBox .controls-wrapper {
            flex-direction: column;
            align-items: stretch;
            gap: 15px;
        }

        #userCompareBox .custom-dropdown {
            width: 100%;
        }

        .vs-divider {
            text-align: center;
            margin: -5px 0;
            font-weight: bold;
        }

/*        #compareBox .compare-container {
            flex-direction: column;
            gap: 15px !important;
        }

        #compareBox .compare-field {
            width: 100%;
            flex: none;
        }

        #compareBox .compare-field label {
            display: block;
            margin-bottom: 5px;
            font-size: 0.9rem;
        }

        #compareBox .custom-dropdown {
            width: 100%;
        }

        #compareBox .chart-container {
            height: 250px !important;
            margin-top: 10px;
        }*/
    }

    /* Kleine Mobiel */
    @media (max-width: 600px) {

        .stats-picks-table,
        .stats-fans-table,
        .stats-spelers-table {
            font-size: 0.85rem;
        }

        .stats-picks-table tr {
            height: 2rem;
        }

        .stats-picks-table th:first-child,
        .stats-picks-table td:first-child {
            width: 16px;
            font-size: 0.85rem;
        }

        .stats-spelers-table th:nth-last-child(-n+2),
        .stats-spelers-table td:nth-last-child(-n+2) {
            width: 2rem;
        }

        .logo_stats {
            max-width: 18px;
            max-height: 18px;
        }

        .team-wrapper {
            gap: 4px;
        }
    }

@media (max-width: 768px) {
    .compare-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0px; /* Veel minder ruimte tussen de boxen op mobiel */
    }
    .compare-vs-text {
       display: none;
    }
}
/* ===========================================
    
    MIJN PROFIEL

  =========================================== */

input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* Game list */
ul.game-list {
  list-style: none;
  padding: 0;
  color: var(--text-color);
}

ul.game-list li {
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

ul.game-list a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  font-weight: 500;
  color: var(--text-color);
  transition: background-color 0.3s ease;
}
ul.game-list a:hover {
  background-color: rgba(0, 0, 0, 0.12);
  font-weight: bold;
  color: var(--primary);
}

ul.game-list .game-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

ul.game-list .game-logo {
  width: 1.2rem;
  height: 1.2rem;
}

/* Action list */
ul.action-list {
  list-style: none;
  padding: 0;
  color: var(--text-color-light);
}

ul.action-list li {
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

ul.action-list a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  font-weight: 500;
  color: var(--text-color);
  transition: background-color 0.3s ease;
}

ul.action-list a:hover {
  background-color: rgba(0, 0, 0, 0.12);
  font-weight: bold;
  color: var(--primary);
}

/* Active state for password link */
#toggle-password-link.active {
  font-weight: bold;
  color: var(--f1-white);
  background-color: var(--primary);
}

/* ===========================================
    
    SUBLEAGUE PAGE

  =========================================== */

.subleague-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subleague-list li {
  margin-bottom: 0.5rem;
}

.subleague-list a {
  text-decoration: none;
  color: var(--text-color);
  display: block;
  padding: 1rem;
  background-color: #f0f0f0;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subleague-list h3 {
  margin: 0.5rem;
  font-size: 1.2rem;
}

.subleague-list a.active,
.subleague-list li.active a {
  background-color: #e0e0e0;
}
.subleague-list a:hover {
  background-color: #dcdcdc;
}
.subleague-list li.open a {
  background-color: var(--primary);
  color: var(--text-color-light);
}

.form-box-subleague {
  border: 1px solid var(--primary);
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  background-color: #f9f9f9;
}
.form-box-subleague_sec {
  border: 1px solid #ccc;
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.form-box-subleague input[type="text"] {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-top: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Container styling */
.form-box-invite {
  margin-left: 0;
}

.form-container {
  display: none;
}

/* Ledenbeheer */
.form-inline {
  display: inline;
}

.invite_friends {
  margin-left: 1.5rem;
}

/* De textarea voor de uitnodiging */
.invite-input {
  font-family: var(--font-body);
  font-size: 1em;
  line-height: 1.4;
  width: 100%; /* Voorheen 80%, nu 100% voor betere weergave */
  min-height: 100px;
  padding: 0.6em 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  resize: none;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow: hidden;
  margin-top: 0.5rem;
}

/* Uitnodiging details & Labels */
.invite-details {
  margin-top: 20px;
}

.invite-label-group {
  margin-left: 20px;
}

.invite-code-display {
  display: none;
}

/* Actie knoppen (Copy/WhatsApp etc) */
.invite-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.btn-icon-delete {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.2rem;
}

.button-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;

  /* Centreert de knoppen horizontaal */
  justify-content: center;

  /* Centreert de knoppen verticaal (indien de rij een vaste hoogte heeft) */
  align-items: center;
}

/* De container voor de WhatsApp/Mail pills 
.link-row {
  display: flex;
  gap: 10px; /* Iets ruimer dan 5px is vaak mooier 
  margin-top: 15px;
  align-items: center;
  margin-left: 0.5rem;
}

.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
  gap: 1.4em;
  margin-left: 0.5rem;
}
*/
.link-row,
.link-row-success {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
  gap: 1.4em;
  margin-left: 0.5rem;
}

.link-row-success {
    margin-top: 20px;
    padding-top: 20px;
    width: 100%;
}



/* De Pills basis */
.pill-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  color: #ffffff !important;
}

/* Specifieke Pill Kleuren */
.pill-wa {
  background-color: #25d366;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
}

.pill-wa:hover {
  background-color: #20ba5a;
}

.pill-mail {
  background-color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}
.pill-mail:hover {
  background-color: #0069d9;
}

/* Font Awesome Icon styling binnen de pill */
.pill-small i {
  font-size: 1.1rem;
}



/* Feedback box */
#temp-info-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  border: 1px solid var(--primary);
  background: var(--primary);
  border-radius: 8px;
  z-index: 10000;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: none;
  color: var(--text-color-light);
}

/* Code genereren box */
.generate-code-box {
  background: rgba(0, 0, 0, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0 15px 20px;
}

.generate-code-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.input-code-edit {
  text-transform: uppercase;
  width: 160px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn-generate {
  margin: 0;
  background-color: #6c757d;
}

.flash-border {
  animation: codeFlash 1.5s ease-in-out;
}

/* ========================================
     
    . RESPONSIVE

   ======================================== */

/* ########## Algemeen ########## */
.mobile {
  display: none;
}

@media (max-width: 499px) {
  h2 {
    font-size: 1.3rem;
    font-variant: small-caps;
    text-transform: uppercase;
    margin-bottom: 0.625rem;
  }

  .mobile {
    display: flex;
  }
  .desktop {
    display: none;
  }
  .columns {
    flex-direction: column;
  }

  /* ########## Picks Page ########## */
  .stage-detail {
    font-size: 0.7rem;
  }
  .stage-label {
    width: 75px;
  }
  .pick-confirmation {
    min-height: 100px;
  }

  /* ########## Ranking Page ########## */

  .rotate-icon {
    display: inline-block;
  }

  .stage-container {
    justify-content: center;
    margin-left: 0;
    text-align: left;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
  }

  .label-text {
    width: 100%;
  }

  .stage-info {
    width: 100%;
    justify-content: start;
  }

  /* ########## Stats Page ########## */
  .table-stats td,
  .table-stats th {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .table-vergelijk {
    font-size: 0.65rem;
  }

  /* Verberg de specifieke kolommen standaard op mobiel */
  .col-gc,
  .col-mountain,
  .col-points {
    display: none !important;
  }
  .col-gc.active-col,
  .col-mountain.active-col,
  .col-points.active-col {
    display: table-cell !important;
  }

  /* Styling voor de toggle knoppen */
  .table-controls {
    display: flex;
    gap: 5px;
    margin-bottom: -10px;
    justify-content: flex-end;
  }

  .btn-toggle {
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #eee;
    opacity: 0.6;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
  }

  .btn-toggle i.fa-shirt {
    background: transparent !important;
    padding: 4px;
    transition: all 0.3s ease;
  }
  .btn-toggle.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .btn-toggle.active {
    opacity: 1;
    color: white;
  }

  /* Specifieke kleur voor GC */
  .btn-toggle.active[onclick*="col-gc"] {
    background: var(--primary);
    border-color: var(--primary);
  }

  /* Specifieke kleur voor Points/Shirt (bijv. Paars zoals je inline had) */
  .btn-toggle.active[onclick*="col-points"] {
    background: var(--points-jersey);
    border-color: var(--points-jersey);
  }

  /* Specifieke kleur voor Points/Shirt (bijv. Paars zoals je inline had) */
  .btn-toggle.active[onclick*="col-mountain"] {
    background: var(--mountain-jersey);
    border-color: var(--mountain-jersey);
  }

  /* Als de knop actief is, mag het shirt wel de witte cirkel krijgen */
  .btn-toggle.active i.fa-shirt {
    background: var(--white) !important;
  }

  /* Specifieke kleur voor de derde toggle (bijv. Blauw) */
  .btn-toggle.active[onclick*="col-mountain"] {
    background: var(--mountain-jersey);
    border-color: var(--mountain-jersey);
  }

  .hun-vergelijk {
    font-size: 0.6rem;
  }

  /* Closing Accolade */
}

  /* ########## Match Cards ########## */






/* ========================================
     
    . KEYFRAMES

   ======================================== */

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
@keyframes slowRide {
  0% {
    left: -15%;
  }
  100% {
    left: 110%;
  }
}
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(231, 76, 60, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

@keyframes codeFlash {
  0% {
    border: 4px solid var(--primary);
    font-weight: bold;
    transform: scale(1.1);
  }
  100% {
    border: 1px solid #ccc;
    font-weight: normal;
    transform: scale(1);
  }
}


/*-------------------------------------------------------------
  14. Chat
--------------------------------------------------------------*/

/* Floating Button */
#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

#chat-button:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Chat Window */
#chat-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 90%;
  max-width: 380px;
  height: 85%;
  background: #121212;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: none;
  overflow: hidden;
  z-index: 10000;
  transition: all 0.2s ease-in-out;
}

#chat-window iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.0); /* volledig transparant */
  display: none;
  z-index: 9998;
}

/* Desktop layout */
@media (min-width: 769px) {
  #chat-window {
    bottom: 80px;
    right: 20px;
    width: 380px;
    height: 85vh;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  }
}

/* Mobiel layout (De Fake Fullscreen) */
@media (max-width: 768px) {

/* Als de chat open is, verbergen we de losse knop op de achtergrond */
  body.chat-open #chat-button {
    display: none !important;
  }
      
  #chat-window {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /* vw zorgt voor de volledige breedte van het scherm, ongeacht parent containers */
    width: 100vw !important; 
    height: 100% !important; 
    max-width: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  
  /* Verberg de overlay op mobiel aangezien de chat 100% vult */
  #chat-overlay {
    display: none !important;
  }
}

