/* ============================================
   COMPLIMENTENMUUR - styling
   Sluit aan op het design system in style.css
   (var(--primary), --text-dark, --radius-lg, etc.)
   ============================================ */

/* ---------- Klasbalk ---------- */
.cm-classbar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cm-classbar-field { display: flex; flex-direction: column; gap: 6px; }
.cm-classbar-field label { font-size: 13px; font-weight: 600; color: var(--text-medium); }
.cm-classbar select {
    min-width: 220px;
    padding: 10px 14px;
    border: 1px solid var(--border, #E8E8F0);
    border-radius: var(--radius-md, 10px);
    background: var(--bg-white, #fff);
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ---------- Leeg ---------- */
.cm-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-medium);
    background: var(--bg-white, #fff);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm);
}
.cm-empty-icon { font-size: 48px; margin-bottom: 12px; }
.cm-empty p { margin: 0; line-height: 1.6; }

/* ---------- Algemene bouwstenen ---------- */
.cm-card {
    background: var(--bg-white, #fff);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm);
    padding: 24px 26px;
}
.cm-h2 { font-size: 20px; margin: 0 0 6px; color: var(--text-dark); }
.cm-h3 { font-size: 16px; margin: 0; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.cm-sub { margin: 0 0 20px; color: var(--text-medium); font-size: 14px; line-height: 1.55; }

.cm-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 24px; padding: 0 8px;
    border-radius: 999px;
    background: var(--bg-light, #F1F0FA); color: var(--text-medium);
    font-size: 13px; font-weight: 700;
}
.cm-count-amber { background: #FFF1DB; color: #B26B00; }
.cm-count-green { background: #DFF5E3; color: #1E7B3A; }

/* ---------- Knoppen ---------- */
.cm-btn {
    border: none; border-radius: 999px; cursor: pointer;
    font-size: 14px; font-weight: 600; padding: 10px 18px;
    display: inline-flex; align-items: center; gap: 7px;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.cm-btn:active { transform: translateY(1px); }
.cm-btn:disabled { opacity: .45; cursor: not-allowed; }
.cm-btn-lg { padding: 13px 26px; font-size: 16px; }
.cm-btn-primary { background: var(--primary, #6C63FF); color: #fff; }
.cm-btn-primary:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(108,99,255,.32); }
.cm-btn-ghost { background: var(--bg-light, #F1F0FA); color: var(--text-dark); }
.cm-btn-ghost:hover { background: #E7E5F6; }
.cm-btn-danger-soft { background: #FCE7E7; color: #C0392B; }
.cm-btn-danger-soft:hover { background: #F8D5D5; }

/* ---------- Setup ---------- */
.cm-setup-card { max-width: 640px; }
.cm-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-medium); margin-bottom: 8px; }
.cm-focus-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cm-focus-preview {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 16px; background: var(--bg-light, #F1F0FA);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.cm-focus-preview img { width: 100%; height: 100%; object-fit: contain; }
.cm-focus-preview.is-empty::after { content: "?"; font-size: 26px; color: #B9B6D6; font-weight: 700; }
.cm-select-lg {
    flex: 1; padding: 13px 16px; font-size: 16px;
    border: 1px solid var(--border, #E8E8F0); border-radius: var(--radius-md, 10px);
    background: var(--bg-white, #fff); color: var(--text-dark); cursor: pointer;
}

.cm-options { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.cm-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cm-switch-track {
    flex-shrink: 0; margin-top: 2px;
    width: 44px; height: 26px; border-radius: 999px;
    background: #D4D2E4; position: relative; transition: background .15s ease;
}
.cm-switch-track::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
.cm-switch input:checked + .cm-switch-track { background: var(--primary, #6C63FF); }
.cm-switch input:checked + .cm-switch-track::after { transform: translateX(18px); }
.cm-switch input:focus-visible + .cm-switch-track { outline: 2px solid var(--primary); outline-offset: 2px; }
.cm-switch-text { display: flex; flex-direction: column; gap: 2px; }
.cm-switch-text strong { font-size: 14px; color: var(--text-dark); }
.cm-switch-text small { font-size: 12.5px; color: var(--text-medium); line-height: 1.45; }

/* ---------- Historie ---------- */
.cm-history { margin-top: 28px; }
.cm-history-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cm-history-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-white, #fff); border: 1px solid var(--border, #E8E8F0);
    border-radius: var(--radius-md, 10px); padding: 12px 16px;
}
.cm-history-item img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.cm-history-item .cm-hi-text { flex: 1; min-width: 0; }
.cm-history-item .cm-hi-name { font-weight: 600; color: var(--text-dark); }
.cm-history-item .cm-hi-meta { font-size: 12.5px; color: var(--text-medium); }
.cm-history-item .cm-btn { padding: 7px 14px; font-size: 13px; }

/* ---------- Sessie-balk ---------- */
.cm-session-bar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--bg-white, #fff); border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm); padding: 14px 18px; margin-bottom: 20px;
}
.cm-focus-chip { display: flex; align-items: center; gap: 12px; }
.cm-focus-chip-monster {
    width: 48px; height: 48px; object-fit: contain;
    background: var(--bg-light, #F1F0FA); border-radius: 12px; padding: 2px;
}
.cm-focus-chip-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-medium); }
.cm-focus-chip-text strong { font-size: 18px; color: var(--text-dark); }
.cm-status-pill {
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: var(--bg-light, #F1F0FA); color: var(--text-medium);
}
.cm-status-pill.is-lobby { background: #E7E5F6; color: #5A52D5; }
.cm-status-pill.is-collecting { background: #DFF5E3; color: #1E7B3A; }
.cm-status-pill.is-closed { background: #EAEAEA; color: #666; }
.cm-session-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* ---------- Meedoen-blok (code + QR) ---------- */
.cm-joinbox {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    background: linear-gradient(135deg, #6C63FF 0%, #8B7FFF 55%, #FF7AA8 130%);
    color: #fff; border-radius: var(--radius-lg, 16px);
    padding: 26px 32px; margin-bottom: 22px; flex-wrap: wrap;
}
.cm-join-lead { margin: 0; font-size: 16px; opacity: .92; }
.cm-join-url { margin: 2px 0 14px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.cm-code-big {
    font-size: 64px; font-weight: 800; letter-spacing: .12em; line-height: 1;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: rgba(255,255,255,.16); border-radius: 16px;
    padding: 14px 24px; display: inline-block;
}
.cm-joinbox-right { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cm-qr { background: #fff; border-radius: 14px; padding: 10px; line-height: 0; }
.cm-qr img { display: block; width: 150px; height: 150px; }
.cm-qr-hint { font-size: 13px; opacity: .92; }

/* ---------- Lobby ---------- */
.cm-lobby { background: var(--bg-white, #fff); border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-sm); padding: 22px 24px; }
.cm-lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cm-lobby-hint { margin: 0 0 16px; color: var(--text-medium); font-size: 14px; }
.cm-participants { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-chip {
    background: var(--bg-light, #F1F0FA); color: var(--text-dark);
    border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600;
    animation: cm-pop .25s ease;
}
@keyframes cm-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Bord ---------- */
.cm-board { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .cm-board { grid-template-columns: 1fr; } }

.cm-queue {
    background: var(--bg-white, #fff); border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm); padding: 18px 18px; position: sticky; top: 16px;
}
.cm-queue-hint { font-size: 12.5px; color: var(--text-medium); margin: 10px 0 12px; }
.cm-queue-list { display: flex; flex-direction: column; gap: 10px; }
.cm-queue-empty, .cm-wall-empty {
    color: var(--text-medium); font-size: 14px; padding: 14px 4px; text-align: center;
}
.cm-q-item {
    background: #FFFBF3; border: 1px solid #F0E2C4;
    border-radius: 12px; padding: 12px 14px; animation: cm-pop .2s ease;
}
.cm-q-text { font-size: 15px; color: var(--text-dark); line-height: 1.4; }
.cm-q-author { font-size: 12.5px; color: var(--text-medium); margin-top: 4px; }
.cm-q-actions { display: flex; gap: 8px; margin-top: 10px; }
.cm-q-btn {
    flex: 1; border: none; border-radius: 8px; padding: 8px; cursor: pointer;
    font-size: 16px; font-weight: 700;
}
.cm-q-approve { background: #DFF5E3; color: #1E7B3A; }
.cm-q-approve:hover { background: #C9EDD0; }
.cm-q-reject { background: #FCE7E7; color: #C0392B; }
.cm-q-reject:hover { background: #F6D6D6; }

/* ---------- Muur (cards) ---------- */
.cm-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cm-note {
    position: relative;
    border-radius: 14px; padding: 16px 16px 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,.07);
    animation: cm-pop .25s ease;
    transform: rotate(var(--rot, 0deg));
}
.cm-note-text { font-size: 16px; line-height: 1.4; color: #3A3A3A; }
.cm-note-author { margin-top: 10px; font-size: 13px; font-weight: 700; color: rgba(0,0,0,.55); }
.cm-note-remove {
    position: absolute; top: 6px; right: 6px;
    width: 24px; height: 24px; border: none; border-radius: 50%;
    background: rgba(0,0,0,.12); color: rgba(0,0,0,.55);
    cursor: pointer; font-size: 13px; line-height: 1;
    opacity: 0; transition: opacity .15s ease;
}
.cm-note:hover .cm-note-remove { opacity: 1; }
.cm-note-remove:hover { background: rgba(0,0,0,.22); }

/* ---------- Presenteer-overlay ---------- */
.cm-present {
    position: fixed; inset: 0; z-index: 4000;
    background: radial-gradient(circle at 30% 0%, #7A70FF 0%, #5B51D6 45%, #3F37A8 100%);
    overflow-y: auto; padding: 32px 40px 56px;
}
.cm-present-close {
    position: fixed; top: 20px; right: 24px; z-index: 4010;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.18); color: #fff; font-size: 20px;
}
.cm-present-close:hover { background: rgba(255,255,255,.3); }
.cm-present-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; color: #fff; }
.cm-present-monster { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)); }
.cm-present-head h2 { font-size: 38px; margin: 0; text-align: center; }
.cm-present-wall {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px; max-width: 1400px; margin: 0 auto;
}
.cm-present-wall .cm-note { box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.cm-present-wall .cm-note-text { font-size: 19px; }
.cm-present-empty { text-align: center; color: rgba(255,255,255,.8); font-size: 18px; margin-top: 40px; }
body.cm-presenting { overflow: hidden; }

/* ---------- Popup: wie heeft ingevuld ---------- */
.cm-modal {
    position: fixed; inset: 0; z-index: 4200;
    background: rgba(45,52,54,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.cm-modal-card {
    background: var(--bg-white, #fff); border-radius: var(--radius-lg, 16px);
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    width: 100%; max-width: 600px; max-height: 86vh; overflow-y: auto;
    padding: 26px 26px 24px; position: relative;
    animation: cm-pop .2s ease;
}
.cm-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px; border: none; border-radius: 50%; cursor: pointer;
    background: var(--bg-light, #F1F0FA); color: var(--text-medium); font-size: 16px;
}
.cm-modal-close:hover { background: #E7E5F6; }
.cm-modal-sub { color: var(--text-medium); font-size: 14px; margin: 6px 0 20px; }
.cm-modal-hint { color: var(--text-medium); font-size: 12.5px; margin: 2px 0 10px; line-height: 1.45; }

.cm-check-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px) { .cm-check-cols { grid-template-columns: 1fr; } }
.cm-check-col .cm-h3 { margin-bottom: 12px; }
.cm-check-list { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.cm-name-pill {
    border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600;
}
.cm-name-pill.is-done { background: #DFF5E3; color: #1E7B3A; }
.cm-name-pill.is-todo { background: var(--bg-light, #F1F0FA); color: var(--text-dark); }
.cm-name-pill.is-unmatched { background: #FFF1DB; color: #B26B00; }
.cm-check-empty { color: var(--text-medium); font-size: 13.5px; padding: 2px; }

.cm-check-unmatched { margin-top: 22px; border-top: 1px solid var(--border, #E8E8F0); padding-top: 16px; }
.cm-check-unmatched-title { font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
