/* migratie.wpts.nl — eigen styling bovenop wpts.nl styles.css */

body.migratie {
    background: var(--bg-soft);
    font-family: var(--font);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Site-header — gelijk aan wpts.nl */
.site-header {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 28px;
}
.site-header-inner {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--green);
    color: var(--navy);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
    position: relative;
}
.logo-mark::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1.5px solid var(--green);
    border-radius: 50%;
    opacity: 0.4;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
}
.logo-text small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--green);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Shell */
.migratie-shell {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 44px 20px 80px;
}

.migratie-card {
    width: 100%;
    max-width: 540px;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 40px 44px 36px;
}

.migratie-card h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0 0 14px;
}

.migratie-card .lead {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Velden */
.field {
    margin-bottom: 20px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.field .hint {
    font-size: 12.5px;
    color: var(--text-dim);
    margin-top: 6px;
    line-height: 1.45;
}

.field input[type="email"],
.field input[type="text"],
.field input[type="password"],
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}
.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(14, 30, 61, 0.08);
}
.field input[readonly] {
    background: var(--bg-soft);
    color: var(--text-muted);
    cursor: default;
}

/* Button — wpts.nl btn-green stijl */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--green);
    color: var(--navy);
    border: 2px solid var(--green);
    border-radius: 6px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    margin-top: 8px;
}
.btn:hover {
    background: var(--green-2);
    border-color: var(--green-2);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Live IMAP-test status */
.test-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 8px;
}
.test-status.test-loading {
    background: var(--bg-soft);
    color: var(--text-muted);
}
.test-status.test-ok {
    background: var(--green-tint);
    color: var(--navy);
    font-weight: 600;
}
.test-status.test-ok::before {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    background: var(--green);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.test-status.test-fail {
    background: #fef2f2;
    color: #991b1b;
    font-weight: 600;
}
.test-status.test-fail::before {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    background: #dc2626;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Error / info */
.error-box {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Progress */
.progress-wrap {
    margin: 24px 0 8px;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.progress-bar-fill {
    height: 100%;
    background: var(--green);
    transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.progress-stats .stat strong {
    display: block;
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    text-transform: none;
}
.progress-current {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 10px 12px;
    border-radius: 6px;
    word-break: break-all;
    border-left: 2px solid var(--green);
}

/* Klaar-pagina key-value */
.kv-grid {
    margin: 12px 0 4px;
    border-top: 1px solid var(--border);
}
.kv-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.5;
}
.kv-k {
    color: var(--text-muted);
    font-weight: 500;
}
.kv-v { color: var(--text); }
.kv-v a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--green);
    padding-bottom: 1px;
}
.kv-v a:hover {
    color: var(--green-2);
}

.sub {
    margin: 28px 0 -4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.note {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* Stappen-blok voor "Hoe het verder gaat" */
.steps {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps .num {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    position: relative;
}
.steps .num::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green);
    margin-top: 8px;
}
.steps strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.steps p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
}
.footer-jobid {
    margin-top: 18px;
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.footer-line {
    text-align: center;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}
.footer-line a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-line a:hover { color: var(--navy); }

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(14, 30, 61, 0.18);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

@media (max-width: 600px) {
    .migratie-card { padding: 28px 22px; }
    .migratie-card h1 { font-size: 24px; }
    .progress-stats { grid-template-columns: 1fr 1fr; }
}
