:root {
    --bg-color: #0f172a; --card-bg: rgba(30, 41, 59, 0.7); --text-main: #f8fafc;
    --text-muted: #94a3b8; --accent: #3b82f6; --accent-hover: #2563eb;
    --danger: #ef4444; --danger-glow: rgba(239, 68, 68, 0.3);
    --success: #10b981; --success-glow: rgba(16, 185, 129, 0.3);
}

body {
    margin: 0; font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color); color: var(--text-main);
    min-height: 100vh; display: flex; justify-content: center;
    align-items: center; padding: 2rem; flex-direction: column;
}

body.dashboard { background-image: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%); background-attachment: fixed; }
body.clickjacking { background-image: radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.15) 0px, transparent 50%); }
body.geen { background-image: radial-gradient(at 0% 0%, rgba(239, 68, 68, 0.15) 0px, transparent 50%); }
body.standaard { background-image: radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%); }
body.strict { background-image: radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.15) 0px, transparent 50%); }

.container { max-width: 1600px; width: 100%; text-align: center; }
.dashboard-container { width: 100%; max-width: 1200px; }
.header { text-align: center; margin-bottom: 3rem; }
.header h1 { font-size: 3rem; font-weight: 800; margin: 0; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.05em; }
.header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: var(--card-bg); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.1); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.card-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; flex-grow: 1; margin: 0 0 1.5rem 0; }

.badge { background: rgba(239, 68, 68, 0.1); color: var(--danger); padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.badge.fixed { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.btn { display: inline-block; background: rgba(255, 255, 255, 0.05); color: var(--text-main); text-decoration: none; padding: 0.75rem 1rem; border-radius: 8px; text-align: center; font-weight: 500; transition: all 0.2s ease; border: 1px solid rgba(255, 255, 255, 0.05); }
.btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.btn-large { margin-top: 2rem; padding: 0.75rem 1.5rem; }

/* Subpagina's center card */
.center-card { background: var(--card-bg); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 2.5rem; max-width: 600px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); text-align: center; }
.center-card h1 { margin: 0 0 1rem 0; font-size: 2.5rem; }
.center-card p { color: #94a3b8; line-height: 1.6; font-size: 1.1rem; }

.title-geen { background: linear-gradient(to right, #fca5a5, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.title-standaard { background: linear-gradient(to right, #93c5fd, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.title-strict { background: linear-gradient(to right, #6ee7b7, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.border-geen { border-color: rgba(239, 68, 68, 0.2); }
.border-standaard { border-color: rgba(59, 130, 246, 0.2); }
.border-strict { border-color: rgba(16, 185, 129, 0.2); }

.test-box { background: rgba(0,0,0,0.2); padding: 1rem; border-radius: 8px; margin: 1.5rem 0; text-align: left; border: 1px solid rgba(255,255,255,0.05); }
.status { font-weight: 600; padding: 0.5rem; border-radius: 4px; display: inline-block; margin-top: 0.5rem; }
.status.danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.status.success { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* Interactief (Master Switch) */
.header-nav { width: 100%; max-width: 1600px; margin-bottom: 2rem; text-align:left; }
.back-btn { color: #94a3b8; text-decoration: none; font-weight: 500; }
.back-btn:hover { color: white; }
.giant-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5); border: 4px solid var(--current-color);
    box-shadow: 0 0 40px var(--current-glow), inset 0 0 20px var(--current-glow);
    border-radius: 99px; padding: 1rem 3rem; margin: 2rem 0 4rem 0;
    text-decoration: none; color: white; font-size: 2.5rem; font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.giant-btn:hover { transform: scale(1.05); box-shadow: 0 0 60px var(--current-glow), inset 0 0 30px var(--current-glow); }
.giant-btn .indicator { width: 30px; height: 30px; border-radius: 50%; background: var(--current-color); margin-right: 1.5rem; box-shadow: 0 0 15px var(--current-color); }
.tests-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; text-align: left; }
.test-card { background: rgba(30, 41, 59, 0.7); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.test-card h3 { margin-top: 0; font-size: 1.2rem; display: flex; justify-content: space-between; }
.status-badge { font-size: 0.8rem; padding: 0.25rem 0.75rem; border-radius: 99px; background: rgba(0,0,0,0.3); }
.live-area { margin-top: 1rem; padding: 1rem; background: rgba(0,0,0,0.3); border-radius: 8px; font-family: monospace; font-size: 0.9rem; min-height: 80px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(255,255,255,0.2); }
.live-area iframe { width: 100%; height: 120px; border: none; background: #000; border-radius: 4px; }
.danger-text { color: #fca5a5; }
.success-text { color: #6ee7b7; }

/* Clickjacking frames */
iframe.cj-frame { width: 100%; height: 400px; border: 2px dashed rgba(255,255,255,0.2); border-radius: 8px; background: #000; margin-top: 1rem; }
/* Classes ter vervanging van inline styles (CSP fix) */
.interactief-title { margin:0; font-size: 3rem; }
.desc-text { color:#94a3b8; font-size: 1.2rem; }
.small-desc-text { color:#94a3b8; font-size: 0.9rem; }
.loading-text { color:#94a3b8; }
.live-area-no-padding { padding:0 !important; }
.badge-fortress { background: rgba(59, 130, 246, 0.1) !important; color: var(--accent) !important; }
.demo-header { margin-top: 4rem; margin-bottom: 2rem; }
.demo-title { font-size: 2rem; margin: 0; }
.card-interactief { border-color: rgba(59, 130, 246, 0.4) !important; box-shadow: 0 0 20px rgba(59, 130, 246, 0.2) !important; }
.title-interactief { color: #93c5fd !important; }
.badge-nieuw { background: var(--accent) !important; color: white !important; }
.btn-interactief { background: var(--accent) !important; color: white !important; text-align: center; font-weight: bold; }
.card-cj { border-color: rgba(139, 92, 246, 0.3) !important; }
.title-cj { color: #c4b5fd !important; }
.btn-cj { border-color: var(--accent) !important; color: #c4b5fd !important; }
.strict-desc-text { font-size: 0.9rem; color: #94a3b8; }
.strict-img { max-width: 100px; margin-top: 10px; border: 1px dashed red; }
.cj-desc-large { color: #94a3b8; margin-bottom: 2rem; font-size: 1.1rem; }

/* Dynamic status classes for interactief.php */
body.status-aan { --current-color: var(--success); --current-glow: var(--success-glow); }
body.status-uit { --current-color: var(--danger); --current-glow: var(--danger-glow); }

/* Advanced Control Panel specific styles */
.master-controls { display: flex; gap: 2rem; justify-content: center; margin-bottom: 2rem; }
.master-btn { font-size: 1.1rem; padding: 0.8rem 2rem; border-radius: 99px; transition: all 0.3s; opacity: 0.6; border: 2px solid transparent; }
.master-btn.active { opacity: 1; transform: scale(1.05); }
.master-btn.on.active { border-color: var(--success); box-shadow: 0 0 30px var(--success-glow); background: rgba(16, 185, 129, 0.1); }
.master-btn.off.active { border-color: var(--danger); box-shadow: 0 0 30px var(--danger-glow); background: rgba(239, 68, 68, 0.1); }

.control-panel-grid { display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.cp-row { display: grid; grid-template-columns: 2fr 2fr 100px; gap: 1.5rem; align-items: center; background: rgba(30,41,59,0.7); padding: 1rem 1.5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }
.row-safe { border-left: 4px solid var(--success); box-shadow: -4px 0 15px var(--success-glow); }
.row-danger { border-left: 4px solid var(--danger); box-shadow: -4px 0 15px var(--danger-glow); }

.cp-info h2 { margin: 0 0 0.25rem 0; font-size: 1.15rem; display: flex; align-items: center; justify-content: space-between; }
.badge-tag { font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 4px; background: rgba(255,255,255,0.1); font-weight: normal; }
.tutorial-desc { font-size: 0.85rem; line-height: 1.5; color: #94a3b8; margin: 0.5rem 0; }
.tutorial-desc strong { color: #e2e8f0; font-weight: 600; }
.cp-info code { display: block; padding: 0.5rem; border-radius: 6px; font-family: monospace; font-size: 0.85rem; margin-top: 0.5rem; word-break: break-all; }
.code-active { background: rgba(16, 185, 129, 0.1); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.code-inactive { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px dashed rgba(239,68,68,0.3); opacity: 0.8; }

.cp-test { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 0.75rem 1rem; min-height: 60px; display: flex; align-items: center; justify-content: flex-start; gap: 1rem; border: 1px solid rgba(255,255,255,0.05); text-align: left; }
.test-safe { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #6ee7b7; }
.test-danger { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #fca5a5; box-shadow: inset 0 0 20px rgba(239,68,68,0.2); }
.status-icon { font-size: 2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.status-text { display: flex; flex-direction: column; }
.status-text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.status-text .detail { font-size: 0.8rem; opacity: 0.9; margin-top: 0.2rem; line-height: 1.3; }

.frame-test { padding: 0 !important; overflow: hidden; display: block; }
.frame-test iframe { width: 100%; height: 60px; border: none; background: transparent; }

.cp-action { display: flex; justify-content: flex-end; }
.switch { position: relative; width: 64px; height: 32px; border-radius: 99px; transition: all 0.3s; display: block; border: 2px solid transparent; }
.s-on { background: rgba(16,185,129,0.2); border-color: var(--success); box-shadow: 0 0 15px var(--success-glow); }
.s-off { background: rgba(239,68,68,0.2); border-color: var(--danger); box-shadow: 0 0 15px var(--danger-glow); }
.knob { position: absolute; top: 2px; width: 24px; height: 24px; border-radius: 50%; transition: all 0.3s; }
.s-on .knob { background: var(--success); right: 4px; }
.s-off .knob { background: var(--danger); left: 4px; }

/* Tutorial Wizard Styles */
.wizard-box { background: rgba(30,41,59,0.9); border: 2px solid var(--accent); border-radius: 12px; margin-bottom: 2rem; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.wizard-header { background: var(--accent); color: white; padding: 0.75rem 1rem; font-weight: bold; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; }
.wizard-steps { display: flex; text-align: left; padding: 1rem; gap: 1rem; }
.w-step { flex: 1; display: flex; gap: 1rem; padding: 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; opacity: 0.4; filter: grayscale(1); background: rgba(0,0,0,0.2); }
.w-step.w-done { opacity: 0.8; filter: grayscale(0); border-color: var(--success); }
.w-step.w-active { opacity: 1; filter: grayscale(0); border-color: var(--accent); background: rgba(59,130,246,0.15); box-shadow: 0 0 20px rgba(59,130,246,0.2); transform: scale(1.02); }
.w-num { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; flex-shrink: 0; }
.w-active .w-num { background: var(--accent); color: white; box-shadow: 0 0 15px var(--accent); }
.w-done .w-num { background: var(--success); color: white; }
.w-text { font-size: 0.9rem; line-height: 1.4; }
.w-text strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }

/* Additional utility classes */
.container-1400 { max-width: 1400px; }
.mb-3 { margin-bottom: 3rem; }
.iframe-body { margin:0; padding: 0; font-family: monospace; font-size: 0.9rem; background: transparent; color: #fff; height: 100vh; box-sizing: border-box; overflow: hidden; display: block; }
.text-danger { color: #fca5a5; }
.text-safe { color: #6ee7b7; }

/* Helper classes to replace inline styles */
.hero-wizard-box {
    margin-top: 2rem;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.hero-wizard-header {
    text-align: center;
    font-size: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
}
.hero-wizard-body {
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
}
.hero-wizard-title {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-wizard-desc {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}
.btn-cta-simulator {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    background: #3b82f6;
    color: white;
    font-weight: bold;
    border-radius: 99px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.risk-highlight {
    color: #fb923c;
}
.mt-15 {
    margin-top: 1.5rem;
}
.full-cell-frame {
    margin: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.ref-detail {
    font-family: monospace;
    font-size: 0.75rem;
}
.mock-bank-body {
    margin: 0;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    border: 2px dashed #3b82f6;
    box-sizing: border-box;
}


/* ==========================================================================
   COMPACT DESKTOP & WINDOWS 125%-150% SCALING (1280x600 - 1536x750)
   ========================================================================== */
@media (max-width: 1440px), (max-height: 820px) {
    body {
        padding: 1.25rem;
    }

    .header {
        margin-bottom: 1.5rem;
    }

    .header h1,
    .interactief-title,
    .hero-wizard-title {
        font-size: 2.2rem;
    }

    .hero-wizard-body {
        padding: 1.75rem 1.5rem;
    }

    .giant-btn {
        font-size: 1.8rem;
        padding: 0.75rem 2rem;
        margin: 1.25rem 0 2rem 0;
    }

    .cp-row {
        grid-template-columns: 1.6fr 1.6fr 80px;
        gap: 1rem;
        padding: 0.85rem 1.15rem;
    }
}

@media (max-width: 900px) {
    .cp-row {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        flex-direction: column;
    }
}
