/* modal.css - VAR MONITOR EDITION */

:root {
  --var-blue: #001c58;
  --var-white: #ffffff;
  --var-font-family: "Archivo Black", "Arial Black", sans-serif;
}

/* --- BASIS MODAL OVERLAYS --- */
.modal-overlay,
.confirm-modal-overlay,
.nothing-selected-overlay {
  left: 0;
  top: 0;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(8px);
}

/* --- DE VAR MONITOR CONTAINER (Vervangt de tennisbaan) --- */
.confirm-modal-content,
.confirm-modal-content1 {
  margin: auto;
  background: transparent;
  max-width: 500px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.var-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

/* De blauwe schermkast */
.var-screen {
  background-color: var(--var-blue);
  border: 10px solid var(--var-white);
  border-radius: 2px;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  justify-content: center;
  align-items: top;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.var-content {
  color: var(--var-white);
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
  padding: 10px;
}

.var-content h3 {
  font-family: var(--var-font-family);
  font-weight: 900;
  font-size: 2.8rem;
  margin: 0;
  letter-spacing: -1px;
  line-height: 1;
}

.var-content p {
  font-size: 1.1rem;
  margin: 15px 10px 0;
  text-transform: none;
  font-family: var(--font-body);
}

.var-stand {
  width: 45%;
  height: 15px;
  background-color: var(--var-white);
  /* Verbeterde schuine voet (Trapezium) */
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  margin-top: -2px;
}

.var-user-title {
  display: inline-block;
  font-size: 1.4rem;
  margin-bottom: 8px;
  margin-top: 32px;
  padding: 10px 20px;
  border: 2px solid var(--var-white); /* Gebruikt je witte variabele */
  border-radius: 22px;
  font-weight: bold;
  text-transform: uppercase;
}

/* --- KNOPPEN STYLING --- */
.confirm-modal-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.btn-quick:hover,
.btn-submit_sec:hover,
.btn-submit:hover {
  transform: scale(1.05);
}

/* --- TURBO LIST MODAL (Witte lijst) --- */
.modal-content-turbo {
  background: #fff;
  margin: 2% auto;
  padding: 20px;
  width: 75%;
  max-width: 700px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-footer-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .modal-content-turbo {
    width: 90% !important;
    margin: 5% auto !important;
    padding: 10px !important;
  }

  /* 1. De standaard witte lijst modal */
  .modal-content-turbo {
    width: 85% !important; /* Bijna schermbreed */
    margin: 10% auto !important; /* Iets meer ruimte vanaf de bovenkant */
    padding: 15px !important;
    max-width: none;
  }

  /* 4. De knoppen onderin de modal (2x2 of naast elkaar) */
  .confirm-modal-footer {
    flex-direction: row; /* Houd ze naast elkaar voor HawkEye look */
    gap: 10px;
    width: 100%;
  }

  .confirm-modal-footer .btn-quick,
  .confirm-modal-footer .btn-submit_sec {
    flex: 1; /* Beide knoppen even breed */
    padding: 10px 5px !important;
    font-size: 0.9rem;
    border: none;
  }

  /* Schakel over naar flex zodat knoppen eigen breedte bepalen */
  #turboModal .modal-footer-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important; /* Knoppen in het midden, of gebruik flex-end voor rechts */
    align-items: center !important;
  }

  /* Container van de joker mag niet meer oprekken */
  #turboModal .joker-toggle-container {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 6px;
  }

  /* Knoppen pakken alleen de breedte van de tekst */
  #turboModal .btn-quick,
  #turboModal .btn-submit_sec,
  #turboModal .btn-joker {
    width: auto !important; /* Breedte op basis van inhoud */
    min-width: 0 !important; /* Voorkom ongewenst rekken */
    height: 38px !important; /* Iets compacter voor mobiel */
    padding: 0 12px !important; /* Zijwaartse padding voor ademruimte tekst */
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 0.99rem;
  }

  .modal-footer-btn {
    border: none;
  }

  /* Joker icoon weg zoals gevraagd */
  #turboModal .btn-joker .joker-icon {
    display: none !important;
  }

  /* Tekst 'Joker' weer tonen omdat het icoon weg is, anders is de knop leeg */
  #turboModal .btn-joker .joker-text {
    display: inline !important;
  }
}
