/* style.css */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #e5e7eb;
    --secondary-hover: #d1d5db;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

.wizard-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 650px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* Typografie */
h2 { font-weight: 600; margin-bottom: 0.5rem; font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.1rem; margin-top: 25px; margin-bottom: 10px; color: var(--primary); }
h4 { margin-top: 0; margin-bottom: 10px; }
p, li { color: var(--text-muted); line-height: 1.6; margin-top: 0; margin-bottom: 1rem; }
ul, ol { padding-left: 20px; color: var(--text-muted); margin-bottom: 1rem; }
strong { color: var(--text-main); }

/* Stappen Animatie */
.step { display: none; animation: fadeIn 0.4s ease-in-out; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Inputs */
.input-group { margin: 25px 0; }
input[type="email"] {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: 0.2s;
}
input[type="email"]:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Grid Knoppen */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 25px;
}
.tile-btn {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: 500;
    color: var(--text-main);
}
.tile-btn i { font-size: 2rem; margin-bottom: 10px; color: var(--primary); }
.tile-btn:hover { border-color: var(--primary); background-color: #eff6ff; transform: translateY(-2px); }

/* Knoppen */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 2px solid var(--secondary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.btn-secondary:hover { background-color: var(--secondary); color: var(--text-main); border-color: #cbd5e1; }
.btn-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }

/* Decision Buttons */
.decision-block {
    background: #f0fdf4; 
    border: 1px solid #bbf7d0; 
    padding: 20px; 
    border-radius: 8px; 
    text-align: center; 
    margin-top: 30px;
}
.decision-block h4 { color: #166534; }
.decision-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-yes { background-color: #166534; border-color:#166534; flex:1; color: white; }
.btn-no { background-color: white; border-color: #dc2626; color: #dc2626; flex:1; }

/* Alerts & Info Cards */
.alert-box { padding: 15px; border-radius: 8px; margin-bottom: 25px; display: none; font-size: 15px; border: 1px solid transparent; }
.error { background-color: var(--error-bg); color: var(--error-text); border-color: #fecaca; }
.success { background-color: var(--success-bg); color: var(--success-text); border-color: #bbf7d0; }

.info-card {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95em;
}
.data-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.data-row:last-child { border-bottom: none; }
.data-label { font-weight: 600; color: var(--text-muted); }
.data-value { font-family: monospace; color: var(--text-main); font-size: 1.1em; }

/* Nieuwe styles voor DNS records weergave */
.dns-details {
    margin-top: 5px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f3f4f6;
}
.dns-details:last-child { border-bottom: none; }

.dns-label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.95em;
    margin-bottom: 2px;
}

.dns-value {
    font-family: 'Consolas', 'Monaco', monospace; /* Code font */
    font-size: 0.8em;
    color: #6b7280;
    background: #f9fafb;
    padding: 4px;
    border-radius: 4px;
    word-break: break-all; /* Zorgt dat lange DKIM keys niet buiten beeld vallen */
    line-height: 1.3;
    display: block;
}

.dns-error { color: #dc2626; font-style: italic; font-size: 0.8em; }

/* --- DYNAMISCHE SCREENSHOTS CSS --- */
.screenshot-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.screenshot-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* AANGEPAST: Transparant en geen rand */
.overlay-text {
    position: absolute;
    transform: translate(0, -50%);
    font-family: 'Segoe UI', sans-serif;
    color: #000;
    
    /* Transparantie */
    background: transparent;
    border: none;
    padding: 0;
    
    white-space: nowrap;
    pointer-events: none;
    font-size: 13px;
    font-weight: 500; /* Iets dikker zodat het leesbaar blijft zonder wit vlak */
    z-index: 10;
}

@media (max-width: 600px) { .overlay-text { font-size: 10px; } }
@media (max-width: 400px) { .overlay-text { font-size: 8px; } }

/* Progress Dots */
.progress-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.progress-dot { height: 6px; flex-grow: 1; background-color: #e5e7eb; border-radius: 3px; transition: background-color 0.3s; }
.progress-dot.active { background-color: var(--primary); }

/* Loader Fix: Gebruik ID selector ipv class */
#loader { display: none; margin-left: 10px; }

/* --- MODAL / POPUP STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Donkere achtergrond */
    z-index: 9999;
    display: none; /* Standaard verborgen */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px); /* Mooi blur effect */
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    text-align: center;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
}
.close-modal-btn:hover { color: #4b5563; }

/* Tabel in de popup voor vergelijking */
.comparison-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 0.9em;
}
.comparison-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.comparison-table td:first-child { font-weight: 600; color: #6b7280; width: 30%; }
.comparison-table .val-wrong { color: #dc2626; font-family: monospace; }
.comparison-table .val-correct { color: #166534; font-family: monospace; font-weight: 600; }