/* // **** OMSCHRIJVING  *****************************************************  */


@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/*--------------------------------------------------------------
  1. Root Variables
--------------------------------------------------------------*/
:root {
  --primary: #3C5AA6;
  --primary-dark: #0A1E40;
  --text-color: #0A1E40;
  --background: #12131223;
  --white: #ffffff;
  --gray-dark: #320608;

  --accent-green: #00C853;
  --accent-red: #D50000;
  --accent-orange: #FF7F50;
  --accent-secondary: gold;
  --color-secondary: black;
  --font-body: 'Montserrat', sans-serif;
  
  /* Info boxes */
  --info-box-gray: #cccccc39;
  --info-box-green: #DFF0D8;
  --info-box-red: #F2DEDE;
  --info-box-border: 4px solid #777;
  --info-box-border-green: 4px solid green;
  --info-box-border-red: 4px solid red;

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

  --border-gradient-country: linear-gradient(to right, black, #0A1E40, #12131223, #12131223, #12131223, #0A1E40, black) 1;
  --border-image-country-header: linear-gradient(to right, black, #0A1E40, #12131223, #12131223, #0A1E40, black) 100% 1;
}

/*--------------------------------------------------------------
  2. Global Styles & Resets
--------------------------------------------------------------*/
html, body {
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}

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

h1 { 
  font-size: 2.8rem; 
  font-weight: bold; 
  margin-bottom: 1rem; 
}
h2 { 
  font-size: 1.4rem; 
  font-variant: small-caps; 
  text-transform: uppercase; 
  margin-bottom: 0.625rem; 
  color: var(--primary); 
}
h4 { 
  font-size: 0.9rem; 
}
p { 
  margin-top: 0; 
}

.hidden { 
  display: none !important; 
}

.text-align_l { 
  text-align: left; 
}
.text-align_r { 
  text-align: right; 
}
.text-align_c { 
  text-align: center; 
}

/*--------------------------------------------------------------
  3. Layout
--------------------------------------------------------------*/
.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; 
}
.column_picks > .box_color { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
}

/* Login/Reset Password Specific Layout */
.wrapper-login .columns { 
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 1rem; 
}
.wrapper-login .column { 
  flex: 0 0 30rem; 
  max-width: 100%; 
}
.wrapper-login .column > .box,
.wrapper-login .column > .box_color { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
}

.login-actions { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-top: 1rem; 
}

/*--------------------------------------------------------------
  4. Boxes & Panels
--------------------------------------------------------------*/
.box,
.box_color {
  padding: 1rem;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--white);
}

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

.box_profile {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.info-box,
.info-box_main,
.info-box_green,
.info-box_red {
  padding: 1rem;
  margin-bottom: 1rem;
}

.info-box { 
  background: var(--white); 
  border-left: var(--info-box-border); 
}
.info-box_main { 
  background: var(--info-box-gray); 
  border-left: var(--info-box-border); 
}
.info-box_green { 
  background: var(--info-box-green); 
  border-left: var(--info-box-border-green); 
  color: black
}
.info-box_red { 
  background: var(--info-box-red); 
  border-left: var(--info-box-border-red); 
}

/*--------------------------------------------------------------
  5. Logos & Icons
--------------------------------------------------------------*/
.logo,
.grey-logo {
  height: 1.2rem;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.grey-logo { 
  filter: grayscale(100%); 
  opacity: 0.6; 
}
.updateBtn {
  margin-top: 0rem; 
  border: none;
}
.logo_large { 
  width: 180px; 
  height: auto; 
  margin-top: 5px; 
}
img.crestio { 
  width: 100px; 
  height: auto; 
  margin-top: 5px; 
}

/*--------------------------------------------------------------
  6. Tables
--------------------------------------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: var(--font-body);
  margin: 1.25rem 0;
  font-size: 1rem;
}

th, td { 
  padding: 0.25rem; 
  border: 1px solid var(--gray-dark); 
}

.table-divider { 
  height: 1rem; 
  background-color: var(--white); 
  border: none; 
}

table th {
  background-color: var(--primary);
  color: var(--white);
  padding: 6px 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

table td { 
  padding: 3px; 
  border: 1px solid rgba(176, 170, 170, 0.692); 
}
table tr:nth-child(even) { 
  background-color: rgba(151, 151, 151, 0.14); 
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2),
.club-table th:first-child,
.club-table td:first-child {
  text-align: left;
  padding-left: 0.5rem;
}

/*--------------------------------------------------------------
  7. Match Cards & Club Info
--------------------------------------------------------------*/
fieldset {
  background: var(--white);
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  margin-bottom: 32px;
}

.match-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 1rem;
  background: var(--white);
}

legend { 
  font-size: 1.1em; 
  font-weight: bold; 
}

.matchday {
  background: var(--primary);
  padding: 5px;
  border-radius: 3px;
  color: var(--white);
  font-size: 1.6rem;
}
.matchday_large { 
  font-size: 3rem; 
}

.match-choices { 
  display: flex; 
  align-items: center; 
}
.match-option { 
  display: flex; 
  align-items: center; 
  cursor: pointer; 
  padding-bottom: 10px; 
}

.match-option input[type="radio"] { 
  margin: 0; 
  vertical-align: middle; 
}

.vs-text { 
  font-weight: normal; 
  font-size: 0.8rem; 
  margin: 0 6px 10px; 
}

.joker-block {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font: 500 0.9rem/1.2 var(--font-body);
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--primary);
  margin-top: 1.875rem;
  cursor: pointer;
  font-weight: bold;
}

.team-name { 
  margin: 0; 
  padding: 0; 
  vertical-align: middle; 
}
.highlight-red { 
  color: var(--accent-red); 
  font-weight: bold; 
}

label img,
.result img { 
  height: 24px; 
  vertical-align: middle; 
  margin: 0 6px; 
}

.match small { 
  display: block; 
  font-size: 0.8em; 
  color: #555; 
  margin-bottom: 28px; 
}
.match-past { 
  color: #999; 
}
.match-future { 
  color: #000; 
}

label:has(input[type="radio"]:checked) .team-name,
.chosen-team-highlight,
.highlighted-choice {
  border-bottom: 2px solid var(--accent-red);
  font-weight: bold;
}

/*--------------------------------------------------------------
  8. Forms & Inputs
--------------------------------------------------------------*/
.selected_round {
  min-width: 160px;
  margin: 0 40px 15px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 10px 32px 10px 12px;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'><path fill='%23333' d='M0 0l5 5 5-5z'/></svg>") no-repeat right 10px center/10px 5px;
  outline: none;
}

.contact-box input,
.register-box input,
.login-box input,
.reset-box input {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--gray-dark);
  border-radius: 4px;
  font-size: 1em;
  font-family: var(--font-body);
}

.form-message {
  margin-top: 1rem;
  display: block;
}

/*--------------------------------------------------------------
  9. Buttons & Links
--------------------------------------------------------------*/
.btn-submit,
.btn-submit_alt,
.btn-submit_sec {
  padding: 10px 20px;
  color: var(--white);
  border-radius: 24px;
  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 { 
  background: var(--primary); 
  border: none; 
}
.btn-submit_alt { 
  background: var(--primary); 
  border: 2px solid var(--white); 
}
.btn-submit_sec { background: var(--accent-orange); border: 2px solid var(--white); }


/* Knoppen Stand */
.tab-button,
.sub-tab-button {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 5px;
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  border-radius: 24px;
  font-variant: small-caps;
  text-transform: uppercase;
}

.tab-button.active,
.sub-tab-button.active {
  background: var(--accent-orange);
  color:white; 
  font-weight: bold; 
}

.tab-content { 
  display: none; 
}
.tab-content.active { 
  display: block; 
}

.extra-links { 
  text-align: right; 
}
.extra-links a { 
  color: var(--primary); 
  text-decoration: none; 
}
.extra-links a:hover { 
  text-decoration: underline; 
}

.change_club a {
  font-size: 0.7em;
  text-decoration: none;
  font-variant: small-caps;
  text-transform: uppercase;
  color: var(--primary);
}
.change_club a:visited { 
  color: var(--primary); 
}
.change_club a:hover { 
  text-decoration: underline; 
}

.login-actions .forgot-link { 
  text-decoration: none; 
  margin-left: 1rem; 
  color: var(--primary); 
}
.login-actions .forgot-link:hover { 
  text-decoration: underline; 
}

/*--------------------------------------------------------------
  10. Profile Page
--------------------------------------------------------------*/
.profile_header { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  margin-bottom: 2rem; 
}
.right-side { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}
.club-display { 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
  gap: 5px; 
}
#club-form { 
  display: none; 
}

/*--------------------------------------------------------------
  11. Spinner & Modal
--------------------------------------------------------------*/
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.8s ease;
}
.spinner-container.fade-out { 
  opacity: 0; 
  pointer-events: none; 
}

.spinner {
  width: 40px;
  height: 40px;
  border: 8px solid #ccc;
  border-top: 8px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1rem auto 20px;
}

@keyframes spin { 
  to { transform: rotate(360deg); } 
}
@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

#spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

/*--------------------------------------------------------------
  12. Responsive
--------------------------------------------------------------*/
.mobile { 
  display: none; 
  flex-direction: column; 
  align-items: flex-start; 
  gap: 2px; 
}
.desktop { 
  display: flex; 
}
.show-mobile { 
  display: none; 
}
.rotate-icon { 
  display: none; 
}

.mobile-only {
  display: none;
}
.desktop-only {
  display: inline;
}

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

  .wrapper-login .column,
  .wrapper-reset .column { 
    flex: 1 1 100%; 
  }

  .btn-picks {
    padding: 0.6rem 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
  }

  .standings-table th,
  .standings-table td {
    padding: 0.25rem 0.2rem;

  }

.standings-table th:nth-child(0),
.standings-table td:nth-child(0) {
  padding: 0rem;
}

  .pick-table th,
  .pick-table td {
    padding: 0.25rem 0.15rem;
    font-size: 1rem;
  }

  .tab-button .full-label,
  .sub-tab-button .full-label {
    display: none;
  }
  .tab-button::after,
  .sub-tab-button::after {
    content: attr(data-short);
    font-weight: 700;
  }

    .club-table .logo {
    /* Plaats hier uw stijlen */
    width: auto;          /* Bijv. maak het logo 30 pixels breed */
    height: 1rem;         /* En 30 pixels hoog */
    margin-right: -2px;   /* Voeg wat ruimte rechts toe */
    margin-left: -2px;   /* Voeg wat ruimte rechts toe */
}

  .hide-mobile { 
    display: none; 
  }
  .show-mobile { 
    display: block; 
  }
  .columns { 
    flex-direction: column; 
  }

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

  .mobile { 
    display: flex; 
  }
  .desktop { 
    display: none; 
  }
  .vs-text { 
    display: none; 
  }
  .match-option { 
    justify-content: flex-start; 
  }

  .mobile-only { 
    display: inline; 
  }        
  .desktop-only { 
    display: none; 
  }

  .tab-button, .sub-tab-button {
    /* Minder verticale padding, minder breedte */
    padding: 8px 16px; 
    
    /* Verminderde ruimte tussen de knoppen */
    margin: 0 4px 0 0; 
}

    /* Zorg ervoor dat de desktop tekst verdwijnt */
    .desktop-only-text {
        display: none !important; 
    }

    /* Zorg ervoor dat de mobiele tekst verschijnt */
    .mobile-only-text {
        display: inline !important; 
    }

}



/*--------------------------------------------------------------
  13. Stand (ranking.php)
--------------------------------------------------------------*/
.rotate-icon {
  max-height: 1.2rem;
  height: 1em;
  vertical-align: middle;
  margin-left: 8px;
}

.update-info { 
  font-style: italic; 
}

hr {
  border: none;
  height: 1px;
  background-color: color-mix(in srgb, var(--primary) 40%, transparent);
  margin: 0rem 0 0 0;
}

hr.match-hr {
  border: 0;
  border-bottom: 2px solid transparent;
  border-image: var(--border-gradient-country);
  border-image-slice: 1;
  margin: -1rem auto 1rem auto;
  width: 15rem;
}

small[data-utc-time] {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
  font-weight: bold;
  margin-left: 0.5rem;
}

.gespeeld {
  margin-top: 1.5rem;
  font-weight: bold;
}

/*--------------------------------------------------------------
  13. Profielpage
--------------------------------------------------------------*/

/* Game list */
ul.game-list {
  list-style: none;
  padding: 0;
  color: var(--primary); /* geldt voor de hele lijst */
}

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(--primary); /* 1x hier is genoeg */
  transition: background-color 0.3s ease;
}

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

ul.game-list a:visited {
  color: var(--primary);
}

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

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

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

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;
}

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

/*--------------------------------------------------------------
  13. Subleagues
--------------------------------------------------------------*/

.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(--white);
}

.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;
}

.form-box-subleague button {
  padding: 0.8rem 1.5rem;
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.form-box-invite {
  margin-left: 0rem;
}


.invite_friends {
  margin-left: 1.5rem;
}

.invite-input {
  font-family: var(--font-body);
  font-size: 1em;
  width: 80%;
  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;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1em;
}

.share-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1em;
  text-decoration: none;
  padding: 0.6em 0.5em;
  border-radius: 6px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  transition: background-color 0.3s ease;
  color: var(--text-color);
  width: fit-content;
}

.share-link:hover {
  background-color: #e0e0e0;
}

.share-link:visited {
  color: var(--text-color);
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 0.2em;
}

.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-left: 0.5rem;
}

.button-row {
  display: flex;
  gap: 1.5rem;
}

#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);
  animation: fadeInOut 3s forwards;
  text-align: center;
  display: none;
  color: var(--white);
}

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

.nav-left a,
.nav-right a {
  text-decoration: none;
  font-weight: bold;
}

.whatsapp-icon {
  font-size: 1.2em;         /* maakt het groter */
  color: #25D366;           /* officiële WhatsApp-groen */
  margin-left: 0.3em;       /* optioneel: ruimte tussen tekst en icoon */
  vertical-align: middle;   /* uitlijning met tekst */
}


/* Standaard (Desktop): Toon de lange tekst, verberg de korte tekst */
.desktop-only-text {
    display: inline;
}

.mobile-only-text {
    display: none;
}

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

}

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

}

ul.game-list li 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(--primary);
  transition: background-color 0.3s ease;
}

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

ul.game-list li a:visited {
  color: var(--primary);
}

ul.game-list .game-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  color: var(--primary);
  gap: 0.4rem;
}

ul.game-list .game-logo {
  width: 1.3rem;
}
*/

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

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

ul.action-list li 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 li a:hover {
  background-color: rgba(0, 0, 0, 0.12);
  font-weight: bold;
}

ul.action-list {
  color: var(--primary);
}



#toggle-password-link.active {
  font-weight: bold;
  color: var(--white);
  background-color: var(--primary);
}

.table-tabs button.active { 
  background: gold;
  color:black; 
  font-weight: bold; 
  border: 1px solid black; 
}

/* ===========================================
    
    . 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;
  }
}

/* ===========================================
    
    . SCAN ACTION 

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

   .status-badge {
        display: inline-block;
        padding: 8px 16px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .status-paid {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .status-unpaid {
        background-color: #fff3cd;
        color: #856404;
        border: 1px solid #ffeeba;
    }

    .status-none {
        background-color: #e2e3e5;
        color: #383d41;
        border: 1px solid #d6d8db;
    }

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

    .beer-box {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        color: #000;
        border-radius: 15px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: 2px solid #fff;
    }

    .qr-frame {
        background: #fff;
        padding: 10px;
        display: inline-block;
        border-radius: 10px;
        margin: 10px 0;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .qr-frame img {
        display: block;
        width: 180px;
        height: 180px;
    }

    .live-clock {
        font-family: 'Courier New', monospace;
        font-weight: bold;
        background: rgba(255, 255, 255, 0.6);
        padding: 5px 12px;
        border-radius: 5px;
        font-size: 0.9rem;
    }

    .announcement-box {
        background-color: #e3f2fd;
        color: #0d47a1;
        border: 1px solid #bbdefb;
        border-radius: 10px;
        padding: 15px;
    }

    /* De hoofdlijst */
    #action-pubs {
        list-style-type: disc;
        /* De standaard bullet */
        list-style-position: inside;
        padding: 0;
        margin: 10px;
        width: 95%;
        text-align: left;
    }

    /* Het item (de balk) */
    #action-pubs li {
        background: rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        /* Zorgt dat de bullet netjes binnen de padding valt */
        transition: background 0.2s;
    }

    /* De klikbare link */
    #action-pubs li a {
        align-items: center;
        width: calc(100% - 20px);
        /* Ruimte voor de bullet aan de linkerkant */
        text-decoration: none;
        color: inherit;
    }

    /* De Location Arrow aan de rechterkant */
    #action-pubs li a::after {
        content: '\f124';
        /* FontAwesome location-arrow */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        opacity: 0.7;
        font-size: 1rem;
    }
  