
    :root {
      --header-height: 100px;
      --footer-height: 40px;
    }

    html, body {
      height: 100%;
      overflow: hidden; /* kolommen scrollen afzonderlijk */
    }

    body {
      margin: 0;
      font-family: "Inter", sans-serif;
      font-size: 14px;
      background-color: #f7f7f7;
      color: #333;
    }

    /* Skip navigation voor accessibility */
    .skip-nav {
      position: absolute;
      top: -40px;
      left: 6px;
      background: #000;
      color: #fff;
      padding: 8px;
      text-decoration: none;
      border-radius: 4px;
      z-index: 1000;
    }
    
    .skip-nav:focus {
      top: 6px;
    }


    /* Input validation styles */
    .validation-error {
      color: #dc3545;
      font-size: 0.8em;
      margin-top: 4px;
      display: block;
    }
    
    .input-group input.invalid,
    .input-group textarea.invalid,
    .input-group select.invalid {
      border-color: #dc3545;
      box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
    }
    
    .input-group input.invalid:focus,
    .input-group textarea.invalid:focus,
    .input-group select.invalid:focus {
      border-color: #dc3545;
      box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
    }

    /* Module selection feedback */
    .main-output label {
      transition: all 0.2s ease;
      border-radius: 4px;
      padding: 8px 12px;
      margin: 4px 0;
      display: block;
      cursor: pointer;
    }
    
    .main-output label.selected {
      background: rgba(0, 124, 186, 0.1);
      border: 1px solid rgba(0, 124, 186, 0.3);
      font-weight: 600;
    }
    
    .main-output label:hover {
      background: rgba(0, 124, 186, 0.05);
    }

    /* Global error messages */
    .global-error-message {
      position: fixed;
      top: 20px;
      right: 20px;
      max-width: 400px;
      padding: 16px 20px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      z-index: 10000;
      display: flex;
      align-items: center;
      gap: 12px;
      animation: slideInRight 0.3s ease-out;
    }
    
    .global-error-message.alert-error {
      background: #f8d7da;
      border: 1px solid #f5c6cb;
      color: #721c24;
    }
    
    .global-error-message.alert-warning {
      background: #fff3cd;
      border: 1px solid #ffeaa7;
      color: #856404;
    }
    
    .global-error-message .error-icon {
      font-size: 18px;
      flex-shrink: 0;
    }
    
    .global-error-message .error-text {
      flex: 1;
      font-size: 14px;
      line-height: 1.4;
    }
    
    .global-error-message .error-close {
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: inherit;
      opacity: 0.7;
      padding: 0;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .global-error-message .error-close:hover {
      opacity: 1;
    }
    
    @keyframes slideInRight {
      from {
        transform: translateX(100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    /* Export functionaliteit styling */
    .box-actions {
      display: flex;
      gap: 8px;
      margin-bottom: 10px;
      align-items: center;
    }
    
    .action-btn {
      padding: 6px 12px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.85em;
      font-weight: 500;
      transition: all 0.2s ease;
    }
    
    .action-btn.primary {
      background: #007cba;
      color: white;
    }
    
    .action-btn.primary:hover {
      background: #005a8b;
    }
    
    .action-btn.secondary {
      background: #6c757d;
      color: white;
    }
    
    .action-btn.secondary:hover {
      background: #5a6268;
    }
    
    
    
    /* Success message styling */
    .global-error-message.alert-success {
      background: #d4edda;
      border: 1px solid #c3e6cb;
      color: #155724;
    }



    /* Keyboard Focus Styling */
    .keyboard-focus {
      outline: 2px solid #007cba !important;
      outline-offset: 2px;
      border-radius: 4px;
    }
    
    input:focus, select:focus, textarea:focus, button:focus {
      outline: 2px solid #007cba;
      outline-offset: 2px;
    }

    /* Modal Styling */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .modal.hidden {
      display: none;
    }
    
    .modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
    }
    
    .modal-content {
      position: relative;
      background: white;
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      max-width: 90vw;
      max-height: 90vh;
      overflow: auto;
    }
    
    .modal-header {
      padding: 20px 24px 16px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .modal-header h2 {
      margin: 0;
      color: #333;
      font-size: 1.4em;
    }
    
    .modal-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: #666;
      padding: 0;
      width: 32px;
      height: 32px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .modal-close:hover {
      background: #f5f5f5;
      color: #333;
    }
    
    .modal-body {
      padding: 20px 24px;
    }

    /* Shortcut Help Modal */
    .shortcut-help {
      width: 600px;
    }
    
    .shortcut-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }
    
    .shortcut-group h3 {
      margin: 0 0 15px 0;
      color: #007cba;
      font-size: 1.1em;
      border-bottom: 2px solid rgba(0, 124, 186, 0.2);
      padding-bottom: 8px;
    }
    
    .shortcut-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid #f0f0f0;
    }
    
    .shortcut-item:last-child {
      border-bottom: none;
    }
    
    kbd {
      background: #f8f9fa;
      border: 1px solid #ddd;
      border-radius: 4px;
      padding: 2px 6px;
      font-size: 0.8em;
      font-family: monospace;
      color: #333;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      margin: 0 2px;
    }

    /* Touch Feedback */
    .touch-active {
      transform: scale(0.95);
      background: rgba(0, 124, 186, 0.1) !important;
    }
    
    .touch-feedback {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.8);
      color: white;
      padding: 12px 20px;
      border-radius: 25px;
      font-size: 0.9em;
      font-weight: 500;
      z-index: 10000;
      display: flex;
      align-items: center;
      gap: 8px;
      pointer-events: none;
      animation: touchFeedbackShow 0.3s ease-out;
    }
    
    .touch-feedback.fade-out {
      animation: touchFeedbackHide 0.5s ease-in forwards;
    }
    
    .touch-icon {
      font-size: 1.2em;
    }
    
    @keyframes touchFeedbackShow {
      from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
      }
      to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }
    
    @keyframes touchFeedbackHide {
      from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
      to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
      }
    }

    /* Mobile Responsive Improvements */
    @media (max-width: 768px) {
      .undo-redo-group {
        gap: 2px;
        margin-right: 8px;
      }
      
      .undo-btn, .redo-btn {
        padding: 4px 6px;
        font-size: 0.7em;
      }
      
      .shortcut-help {
        width: 90vw;
        max-width: 400px;
      }
      
      .shortcut-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      
      .modal-header {
        padding: 16px 20px 12px;
      }
      
      .modal-body {
        padding: 16px 20px;
      }
    }

    /* Touch Device Specific */
    @media (hover: none) and (pointer: coarse) {
      .touch-active {
        transform: scale(0.98);
      }
      
      /* Larger touch targets */
      button, .action-btn {
        min-height: 44px;
        min-width: 44px;
      }
      
      /* Better spacing voor touch */
      .box-actions {
        gap: 12px;
      }
    }


    header.main-header {
  background: #f0f4fa;
  color: #4a4a4a;
  text-align: center;
  height: var(--header-height);
  padding: 3px 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 12px rgba(181, 158, 64, 0.32);
}

.logo-link {
  display: inline-block;
}

.logo-img {
  height: 100px;
  vertical-align: middle;
  margin-left: 1rem;
}

.header-title {
  vertical-align: middle;
  font-size: 2.2em;
  font-weight: bold;
  letter-spacing: 0.5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fca311;
  text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.506);
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.clear-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 1rem;
}

.clear-btn:hover {
  background: #ff5252;
  transform: scale(1.05);
}

.feedback-header-btn {
  background: #007cba;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.feedback-header-btn:hover {
  background: #005a8b;
  color: white;
  transform: scale(1.05);
  text-decoration: none;
}

.pwa-install-btn {
  background: #28a745;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.pwa-install-btn:hover {
  background: #218838;
  transform: scale(1.05);
}

.pwa-install-btn.can-install {
  animation: pulse 2s infinite;
}

.pwa-install-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

    .container {
      display: flex;
      height: calc(100vh - var(--header-height) - var(--footer-height));
      overflow: hidden; /* verberg paginascroll, kolommen scrollen */
    }

    /* Zorg dat flex-kinderen kunnen scrollen (Safari/Chrome fix) */
    .container > * { min-height: 0; }

    .sidebar-left, .sidebar-right {
      width: 25%;
      padding: 2rem;
      padding-bottom: 3rem; /* Extra ruimte onderaan voor scroll */
      background-color: #ffffff;
      box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
      overflow-y: auto; /* eigen scroller */
      height: calc(100vh - var(--header-height) - var(--footer-height));
      box-sizing: border-box;
    }

    .sidebar-left {
      border-right: 1px solid #ddd;
    }

    .sidebar-right {
      border-left: 1px solid #ddd;
      transition: width 0.3s ease, min-width 0.3s ease;
    }

    .sidebar-right.collapsed {
      width: 50px !important;
      min-width: 50px !important;
      flex-shrink: 0;
      overflow: hidden;
    }
    
    /* Zorg dat main-output zich aanpast wanneer sidebar collapsed is */
    .container.sidebar-collapsed .main-output {
      flex: 1 1 auto;
      width: auto;
      max-width: calc(75% - 50px);
    }

    .sidebar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }

    .toggle-btn {
      background: #f0f4f8;
      border: 1px solid #c9d6e2;
      color: #0f3d5e;
      border-radius: 4px;
      font-size: 18px;
      width: 32px;
      height: 32px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .toggle-btn:hover {
      background: #e6eef6;
      transform: scale(1.05);
    }

    .sidebar-right.collapsed .sidebar-header h2 {
      display: none;
    }

    .sidebar-right.collapsed .info-section {
      display: none;
    }

    .sidebar-right.collapsed .toggle-btn {
      margin: 0 auto;
      transform: rotate(180deg);
    }

    /* Input sections voor linkerbalk */
    .sidebar-left .input-section {
      background: #fafbfc;
      border: 1px solid #e6e9ed;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1.25rem;
    }

    .sidebar-left .input-section h3 {
      color: #2c3e50;
      font-size: 0.95rem;
      margin-top: 0;
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid #e0e4e8;
    }

    .sidebar-left .input-section:nth-child(3) { /* Basisinformatie */
      background: #f8fafe;
      border-color: #d8e2f0;
    }

    .sidebar-left .input-section:nth-child(4) { /* Beginsituatie & Leerdoelen */
      background: #fef9f8;
      border-color: #f0dcd8;
    }

    .sidebar-left .input-section:nth-child(5) { /* Inhoud & Opdracht */
      background: #f8fdf9;
      border-color: #d8eadc;
    }

    .sidebar-left .input-section:nth-child(6) { /* Werkvormen & Materialen */
      background: #fdfaf8;
      border-color: #eadcd8;
    }

    .sidebar-left .input-section:nth-child(7) { /* Lesstructuur */
      background: #fbf8fd;
      border-color: #e2d8f0;
    }

    .sidebar-left .input-section:nth-child(8) { /* Afsluiting & Reflectie */
      background: #f8fcfd;
      border-color: #d8e6ea;
    }

    .sidebar-left .input-section:nth-child(9) { /* Module-specifieke instellingen */
      background: #fffdf8;
      border-color: #eae6d8;
    }

    /* Checkbox groep voor werkvormen */
    .checkbox-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      padding: 0.5rem;
      background: #f9f9f9;
      border: 1px solid #ddd;
      border-radius: 4px;
      max-height: 200px;
      overflow-y: auto;
    }

    .checkbox-label {
      display: flex;
      align-items: center;
      cursor: pointer;
      padding: 0.25rem;
      transition: background-color 0.2s;
    }

    .checkbox-label:hover {
      background-color: #f0f0f0;
      border-radius: 3px;
    }

    .checkbox-label input[type="checkbox"] {
      margin-right: 0.5rem;
      cursor: pointer;
    }

    /* Info sections voor handleiding (rechterbalk) */
    .info-section {
      background: #f8f9fa;
      border: 1px solid #e1e8ed;
      border-radius: 6px;
      padding: 1rem;
      margin-bottom: 1rem;
    }

    .info-section h3 {
      color: #2c3e50;
      font-size: 0.95rem;
      margin-top: 0;
      margin-bottom: 0.75rem;
      border-bottom: 2px solid #007acc;
      padding-bottom: 0.5rem;
    }

    .info-section p {
      color: #555;
      line-height: 1.6;
      margin: 0.5rem 0;
    }

    .info-section ul, .info-section ol {
      margin: 0.5rem 0;
      padding-left: 1.5rem;
    }

    .info-section li {
      color: #555;
      line-height: 1.8;
      margin-bottom: 0.5rem;
    }

    .info-section li strong {
      color: #333;
    }

    .info-section a {
      color: #007acc;
      text-decoration: none;
    }

    .info-section a:hover {
      text-decoration: underline;
    }

    .info-section.tips {
      background: #fff9e6;
      border-color: #ffd166;
    }

    .info-section.tips h3 {
      border-bottom-color: #fca311;
    }

    .main-output {
      flex: 1;
      padding: 1rem;
      padding-bottom: 3rem; /* Extra ruimte onderaan voor scroll */
      background-color: #fafafa;
      display: flex;
      flex-direction: column;
      overflow-y: auto; /* eigen scroller */
      height: calc(100vh - var(--header-height));
      box-sizing: border-box;
    }

    .actions {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .actions button {
      background-color: #007acc;
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 0.5rem 0.75rem;
      font-size: 13px;
      cursor: pointer;
    }

    .actions button:hover {
      background-color: #0062a3;
    }

    h2 {
      font-size: 1rem;
      margin-top: 1.2rem;
      margin-bottom: 0.5rem;
      color: #222;
    }

    label {
      display: block;
      margin-bottom: 0.2rem;
      font-weight: 500;
    }

    /* Kleuraccenten voor linker inputlabels, sync met tokens */
    label[for="lesonderwerp"] { color: #6b9bd1; }
    label[for="doelgroep"] { color: #6b9bd1; }
    label[for="taalniveau"] { color: #6b9bd1; }
    label[for="lesduur"] { color: #6b9bd1; }
    label[for="groepsgrootte"] { color: #6b9bd1; }
    label[for="beginsituatie"] { color: #7db87d; }
    label[for="leerdoelen"] { color: #7db87d; }
    label[for="evaluatievorm"] { color: #7db87d; }
    label[for="aantal-leerdoelen"] { color: #7db87d; }
    label[for="bloom-niveau"] { color: #7db87d; }
    label[for="tijdskader"] { color: #7db87d; }
    label[for="opdrachtbeschrijving"] { color: #b8956b; }
    label[for="leerinhoud"] { color: #b8956b; }
    label[for="werkvormtype"] { color: #9b7bb8; }
    label[for="lesmateriaal"] { color: #9b7bb8; }
    label[for="materiaal-opdracht"] { color: #9b7bb8; }
    label[for="doel-reflectie"] { color: #c86868; }
    label[for="vorm-reflectie"] { color: #c86868; }
    label[for="reflectieonderwerp"] { color: #c86868; }
    label[for="tijdschema"] { color: #c4a860; }
    label[for="didactischmodel"] { color: #c4a860; }
    label[for="aantal-slides"] { color: #888888; }
    label[for="toon-presentatie"] { color: #888888; }
    label[for="media"] { color: #888888; }
    label[for="aantal-flashcards"] { color: #888888; }
    label[for="flashcard-type"] { color: #888888; }
    label[for="flashcard-antwoordtype"] { color: #888888; }
    label[for="flashcard-stijl"] { color: #888888; }
    label[for="onderwerp-evaluatie"] { color: #888888; }
    label[for="doel-evaluatie"] { color: #888888; }
    label[for="evaluatie-schaal"] { color: #888888; }
    label[for="aantal-onderdelen-evaluatie"] { color: #888888; }
    label[for="evaluatie-indeling"] { color: #888888; }
    label[for="evaluatie-opmerkingenveld"] { color: #888888; }
    label[for="aantal-opdrachten"] { color: #888888; }
    label[for="type-opdrachten"] { color: #888888; }
    label[for="aantal-vragen"] { color: #888888; }
    label[for="toetsvorm"] { color: #888888; }
    label[for="moeilijkheidsgraad"] { color: #888888; }
    label[for="taxonomieniveau"] { color: #888888; }
    label[for="antwoordtype"] { color: #888888; }

    input[type="text"],
    input[type="number"],
    select,
    textarea {
      width: 95%;
      padding: 0.4rem;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 12px;
    }

    textarea {
      resize: vertical;
    }

    .output-box {
      background-color: #fff;
      border: 1px solid #ddd;
      padding: 1rem;
      margin-bottom: 1rem;
      border-radius: 5px;
      min-height: 150px;
      max-height: 600px; /* Maximale hoogte om overflow te voorkomen */
      overflow-y: auto; /* Scroll binnen box bij lange content */
      white-space: pre-wrap;
      cursor: text;
      transition: all 0.3s ease;
      position: relative;
    }

    .output-box .box-actions {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      display: flex;
      gap: 0.25rem;
      opacity: 0.9;
    }

    .output-box .box-actions button {
      background: #f0f4f8;
      border: 1px solid #c9d6e2;
      color: #0f3d5e;
      border-radius: 4px;
      font-size: 12px;
      padding: 0.25rem 0.4rem;
      cursor: pointer;
    }

    .output-box .box-actions button:hover {
      background: #e6eef6;
    }

    .output-box:hover {
      border-color: #4a4a4a;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .output-box.active {
      border-color: #007acc;
      background-color: #f8fbff;
    }

    .output-box.expanded {
      min-height: 300px;
      max-height: 600px; /* Behoud maximale hoogte ook bij expanded */
      border-color: #007acc;
      box-shadow: 0 4px 12px rgba(0, 122, 204, 0.15);
    }

    .output-box::after {
      content: "✏️ Je kunt de prompt aanvullen";
      display: block;
      text-align: center;
      padding: 0.5rem;
      margin-top: 0.5rem;
      font-size: 0.75rem;
      color: #999;
      background: rgba(248, 251, 255, 0.8);
      border-top: 1px solid #e6e9ed;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .output-box:hover::after {
      opacity: 1;
    }

    .output-box.active::after {
      content: "✏️ Je kunt de prompt aanvullen";
    }

    .output-box.expanded::after { content: ""; }

    .output-box .box-content {
      white-space: pre-wrap;
      min-height: 120px;
      outline: none;
      line-height: 1.4;
      font-size: 13px;
    }

    /* Kleurcodering voor tokens (linker input en midden prompt) */
    .token-lesonderwerp { color: #6b9bd1; font-weight: 600; }
    .token-doelgroep { color: #6b9bd1; }
    .token-taalniveau { color: #6b9bd1; }
    .token-lesduur { color: #6b9bd1; }
    .token-groepsgrootte { color: #6b9bd1; }
    .token-beginsituatie { color: #7db87d; }
    .token-leerdoelen { color: #7db87d; }
    .token-evaluatiecriteria { color: #7db87d; }
    .token-aantal-leerdoelen { color: #7db87d; }
    .token-bloom-niveau { color: #7db87d; }
    .token-tijdskader { color: #7db87d; }
    .token-opdrachtbeschrijving { color: #b8956b; }
    .token-leerinhoud { color: #b8956b; }
    .token-werkvormtype { color: #9b7bb8; }
    .token-lesmateriaal { color: #9b7bb8; }
    .token-materiaal-opdracht { color: #9b7bb8; }
    .token-doel-reflectie { color: #c86868; }
    .token-vorm-reflectie { color: #c86868; }
    .token-reflectieonderwerp { color: #c86868; }
    .token-tijdschema { color: #c4a860; }
    .token-didactischmodel { color: #c4a860; }
    .token-aantal-slides { color: #888888; }
    .token-toon-presentatie { color: #888888; }
    .token-media { color: #888888; }
    .token-aantal-flashcards { color: #888888; }
    .token-flashcard-type { color: #888888; }
    .token-flashcard-antwoordtype { color: #888888; }
    .token-flashcard-stijl { color: #888888; }
    .token-onderwerp-evaluatie { color: #888888; }
    .token-doel-evaluatie { color: #888888; }
    .token-evaluatie-schaal { color: #888888; }
    .token-aantal-onderdelen-evaluatie { color: #888888; }
    .token-evaluatie-indeling { color: #888888; }
    .token-evaluatie-opmerkingenveld { color: #888888; }
    .token-aantal-opdrachten { color: #888888; }
    .token-type-opdrachten { color: #888888; }
    .token-aantal-vragen { color: #888888; }
    .token-toetsvorm { color: #888888; }
    .token-moeilijkheidsgraad { color: #888888; }
    .token-taxonomieniveau { color: #888888; }
    .token-antwoordtype { color: #888888; }

    .checkbox-group label {
      display: flex;
      align-items: center;
      margin-bottom: 0.6rem;
      cursor: pointer;
    }

    .checkbox-group input {
      margin-right: 0.5rem;
    }

    .input-group {
      margin-bottom: 1rem;
    }
    
    /* Module-specific input fields zijn standaard verborgen */
    .input-group[data-module] {
      display: none;
    }
    
    /* Gedeelde velden zijn ook standaard verborgen */
    .input-group[data-type="shared"] {
      display: none;
    }

    /* Automatisch inklappen rechter menu op kleinere schermen */
    @media (max-width: 1400px) and (min-width: 961px) {
      .sidebar-right {
        width: 40px !important;
        padding: 1rem 0.5rem !important;
        overflow: hidden !important;
        flex-shrink: 0;
      }
      
      .sidebar-right .sidebar-header h2 {
        display: none;
      }
      
      .sidebar-right .info-section {
        display: none;
      }
      
      .sidebar-right .toggle-btn {
        transform: rotate(180deg);
      }
      
      /* Pas main output aan voor meer ruimte - gebruik flex in plaats van width */
      .main-output {
        flex: 1;
        width: auto;
      }
      
      /* Zorg dat sidebar-left zijn breedte behoudt */
      .sidebar-left {
        width: 25%;
        flex-shrink: 0;
      }
    }

    @media (max-width: 960px) {
      /* Op mobiel terug naar paginascroll */
      html, body { overflow: auto; }
      .container {
        flex-direction: column;
        height: auto;
        overflow: visible;
      }
      .sidebar-left, .sidebar-right, .main-output {
        width: 100%;
        border: none;
        height: auto;
        overflow: visible;
      }
      .main-output { width: 100%; }
      
      /* Herstel rechter sidebar op mobiel */
      .sidebar-right {
        width: 100% !important;
        padding: 2rem !important;
        overflow: visible !important;
      }
      
      .sidebar-right .sidebar-header h2 {
        display: block;
      }
      
      .sidebar-right .info-section {
        display: block;
      }
    }

/* Push Notification styles - REMOVED per user request */

/* Tip Modal styles */
.tip-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  animation: fadeIn 0.3s ease;
}

.tip-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: scaleIn 0.3s ease;
}

.tip-modal-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tip-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.tip-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.tip-modal-close:hover {
  background: #f0f0f0;
  color: #666;
}

.tip-modal-content {
  padding: 20px;
  text-align: center;
}

.tip-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.tip-modal-content p {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

.tip-modal-footer {
  padding: 0 20px 20px;
  text-align: center;
}

/* Notification animations */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer styles */
.main-footer {
  background: #f0f4fa;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #666;
  padding: 0 1rem;
  box-sizing: border-box;
}

.footer-content {
  text-align: center;
  line-height: 1.4;
}

.footer-content a {
  color: #007cba;
  text-decoration: none;
  margin: 0 2px;
}

.footer-content a:hover {
  text-decoration: underline;
}