/* Overlay met lichte, moderne blur */
.modal-overlay {
  display: none; position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.4); 
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  justify-content: center; align-items: center; z-index: 99999;
  padding: 16px; box-sizing: border-box;
}

/* De ultra-compacte kaart */
.modal-card-compact {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
  max-width: 400px; /* <--- Stuk smaller gemaakt */
  width: 100%;
  padding: 24px; /* <--- Compacte padding */
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Onopvallende, strakke sluitknop */
.modal-close-btn-compact {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: #94a3b8;
  cursor: pointer; transition: color 0.15s;
  padding: 6px; display: flex; align-items: center; justify-content: center;
}
.modal-close-btn-compact:hover { color: #475569; }

/* Inline Header */
.modal-header-compact {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.modal-logo-compact { max-height: 50px; width: auto; } /* <--- Subtieler logo */
.modal-header-compact h2 { font-size: 16px; color: #0f172a; font-weight: 700; margin: 0; }

/* Subtiele waarschuwing zonder schreeuwerig rood vlak */
.modal-warning-compact {
  background: #f8fafc; border: 1px solid #e2e8f0; border-left: 3px solid #ef4444;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 18px;
}
.modal-warning-compact p { margin: 0; font-size: 12.5px; color: #334155; line-height: 1.4; text-align: left; }

/* Knoppen grid (Naast elkaar op desktop) */
.modal-grid-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }

/* Compacte, moderne knoppen */
.btn-compact {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: 10px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; transition: all 0.2s ease;
}
.os-icon-compact { width: 16px; height: 16px; }

/* Windows - Modern donker/licht contrast */
.btn-win-compact { background: #0f172a; color: #ffffff; }
.btn-win-compact:hover { background: #1e293b; transform: translateY(-1px); }

/* Mac - Minimalistisch clean */
.btn-mac-compact { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.btn-mac-compact:hover { background: #e2e8f0; color: #0f172a; transform: translateY(-1px); }

/* Minimale footer */
.modal-footer-compact { text-align: center; font-size: 12px; color: #64748b; }
.modal-footer-compact a { color: #0284c7; text-decoration: none; font-weight: 600; }
.modal-footer-compact a:hover { text-decoration: underline; }

/* Mobile Optimisatie: blijft compact onderin staan */
@media (max-width: 480px) {
  .modal-overlay { align-items: flex-end; padding: 12px; }
  .modal-card-compact { 
    border-radius: 18px; /* Behoudt zachte hoeken rondom op mobiel */
    padding: 20px;
    animation: mobileSlideCompact 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes mobileSlideCompact {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .modal-grid-compact { grid-template-columns: 1fr; gap: 8px; } /* Onder elkaar op mobiel voor betere touch */
}
