/* ── 1. Variabelen & Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700;800&family=Karla:wght@400;500;700&display=swap');

:root {
  /* Kleurenpalet */
  --bb-blue:    rgb(82, 121, 186);
  --bb-teal:    rgb(4, 184, 188);
  --bb-red:     rgb(233, 17, 68);
  --bb-indigo:  rgb(55, 66, 143);
  --bb-mint:    rgb(151, 215, 218);
  --bb-light-blue: #e1efff;
  --bb-accent-blue: #b8c7ff;

  /* Systeemkleuren */
  --bg:      #f7f9fc;
  --text:    #1c1f2a;
  --card:    #ffffff;
  
  /* Styling */
  --radius:  12px;
  --shadow:  0 8px 24px rgba(0, 0, 0, 0.06);
  --transition: all 0.2s ease-in-out;
}

/* ── 2. Basis & Reset ── */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Karla", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ── 3. Typografie ── */
h1, h2, h3 {
  margin: 0 0 12px;
  font-family: "Inconsolata", monospace;
  font-weight: 800;
}

a {
  color: var(--bb-indigo);
  text-decoration: none;
  transition: var(--transition);
}

/* ── 4. Layout Containers ── */
.main, footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

footer {
  margin-top: 30px;
  color: color-mix(in srgb, var(--text) 70%, white);
}

/* ── 5. Navigatie ── */
.navbar {
  background: var(--bb-indigo);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 60px;
}

.logo {
  font-family: "Inconsolata", monospace;
  font-weight: 700;
  font-size: 16px;
  color: white;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.nav-links {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover {
  color: white;
}

.nav-profiel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-naam {
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.nav-profiel a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
}

.nav-profiel a:hover {
  color: white;
}

/* ── 6. Componenten ── */
.card {
  padding: 18px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--bb-mint) 55%, white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary   { color: #fff; background: var(--bb-blue); }
.btn-secondary { color: #fff; background: var(--bb-teal); }
.btn-gevaar    { color: #fff; background: var(--bb-red); }

.btn:hover {
  filter: brightness(0.9);
}

/* ── 7. Formulieren & Tabellen ── */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--bb-teal) 35%, white);
  border-color: var(--bb-teal);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
}

th {
  background: color-mix(in srgb, var(--bb-blue) 10%, white);
}

/* ── 8. Sessie Pagina Specifiek ── */
.sessie-wrapper {
  width: 100%;
  padding: 40px 20px;
}

.sessie-columns {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.sessie-kolom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  background-color: var(--bb-light-blue);
  border-radius: var(--radius);
}

.sessie-kolom.linker {
  flex: 2;
  min-width: 300px;
  justify-content: center;
  text-align: center;
}

.sessie-kolom.rechter {
  flex: 3;
  min-width: 450px;
  justify-content: flex-start;
  text-align: center;
}

/* Timer & Grafiek */
#timer {
  font-size: clamp(3rem, 8vw, 6rem); /* Schaaalt mee met schermgrootte */
  font-weight: 700;
  letter-spacing: 4px;
  background-color: var(--bb-accent-blue);
  border-radius: var(--radius);
  padding: 10px 30px;
  margin: 20% 0 20px;
}

.sessie-grafiek {
  width: 90%;
  height: 300px;
  background-color: var(--bb-accent-blue);
  color: white;
  border-radius: var(--radius);
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sessie-btn-container {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ── 9. Media Queries ── */
@media (max-width: 1024px) {
  .sessie-columns {
    flex-direction: column;
  }
  
  .sessie-kolom {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .logo {
    position: static;
    transform: none;
    margin-left: auto;
  }
  
  .navbar {
    justify-content: space-between;
  }
}

.docent-vragen-container {
    background-color: #c9e0ff; /* Lichtblauwe achtergrond */
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    margin: 40px auto;
}

.docent-vragen-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.vraag-rij-wrapper {
    margin-bottom: 20px;
}

.vraag-rij {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.vraag-bubbel {
    background-color: white;
    border-radius: 20px;
    padding: 20px 25px;
    flex-grow: 1;
    border: 3px solid;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Automatisch wisselende randkleuren */
.vraag-rij-wrapper:nth-child(5n+1) .vraag-bubbel { border-color: #b057e6; } /* Paars */
.vraag-rij-wrapper:nth-child(5n+2) .vraag-bubbel { border-color: #ff3b3b; } /* Rood */
.vraag-rij-wrapper:nth-child(5n+3) .vraag-bubbel { border-color: #d11181; } /* Roze */
.vraag-rij-wrapper:nth-child(5n+4) .vraag-bubbel { border-color: #ffeb3b; } /* Geel */
.vraag-rij-wrapper:nth-child(5n+5) .vraag-bubbel { border-color: #1a56ff; } /* Blauw */

.vraag-acties {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-actie {
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
}

.btn-groen {
    background-color: #a3d9a5;
    color: #333;
}
.btn-groen:hover { background-color: #8cc48e; }

.btn-rood {
    background-color: #ff6b6b;
    color: white;
}
.btn-rood:hover { background-color: #e55a5a; }


/* De grote witte/lichte container waar alles in zit */
.main-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.5); 
    padding: 40px;
    border-radius: 30px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* De individuele vraag-capsule */
.vraag-capsule {
    background: white;
    border-radius: 100px;
    padding: 20px 45px;
    margin-bottom: 15px;
    border: 3px solid; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.border-paars { border-color: #C18BFF; }
.border-rood   { border-color: #FF3B3B; }
.border-roze   { border-color: #FF5CC2; }
.border-geel   { border-color: #FFF200; }
.border-blauw  { border-color: #2D5BFF; }

/* Tekst binnen de capsule */
.vraag-tekst {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.antwoord-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.antwoord-tekst {
    color: #444;
    margin: 0;
}


    /* De Grid (2x2) Layout voor het dashboard */
    .dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 40px; 
        max-width: 1400px; 
        margin: 0 auto;
    }

    /* Styling voor de 4 lichtblauwe hoofd-vlakken */
    .dashboard-sectie {
        background-color: #c9e0ff; 
        border-radius: 25px; 
        padding: 35px; 
        min-height: 450px; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column;
        min-width: 0; 
    }

    .dashboard-sectie h3 {
        margin-top: 0;
        margin-bottom: 25px;
        color: #333;
        font-size: 24px; 
    }

    /* Styling voor de witte vraag-bubbeltjes */
    .preview-vraag {
        background-color: white;
        border: 2px solid #b057e6; 
        border-radius: 20px; 
        padding: 16px 24px; 
        margin-bottom: 18px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .preview-vraag p {
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Maakt netjes '...' van tekst die te lang is */
        font-size: 16px; 
        font-weight: bold;
        color: #333;
    }

    /* Tijdelijke styling voor de lege vakken */
    .placeholder-content {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px dashed #9fbbe3;
        border-radius: 15px;
        color: #7b9bc9;
        font-style: italic;
        font-size: 18px; 
        text-align: center;
    }

.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-color: #2c3e8c;
    padding: 10px 30px;
    height: 70px; 
    color: white;
}

.nav-left, .nav-center, .nav-right {
    flex: 1; 
    display: flex;
    align-items: center;
}

/* Links uitlijnen */
.nav-left {
    justify-content: flex-start;
    gap: 25px;
}

.nav-logo {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Midden uitlijnen */
.nav-center {
    justify-content: center;
    text-align: center;
}

.brand-text {
    font-weight: 500;
    text-transform: lowercase;
    line-height: 1;
    font-size: 20px;
}

/* Rechts uitlijnen */
.nav-right {
    justify-content: flex-end;
    gap: 20px;
}

.user-name {
    font-weight: bold;
}

/* Linkjes styling */
.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.logout-btn {
    padding: 6px 12px;
    border: 1px solid white;
    border-radius: 4px;
    transition: 0.3s;
}

.logout-btn:hover {
    background-color: white;
    color: #2c3e8c;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 12px;
    min-width: 180px;
    z-index: 100;
}

.user-dropdown-menu::before {
    content: '';
    display: block;
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: -1;
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #2c3e8c !important;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.user-dropdown-menu a:hover {
    background-color: #f0f3ff;
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
}