/* ISC2 Chapter Nederland - Mailer v2.0.0
   Sober admin UI in ISC2-groen. */

:root {
    --green:       #046a38;
    --green-dark:  #03502b;
    --green-tint:  #e7f1ec;
    --ink:         #22302a;
    --muted:       #6d7a74;
    --line:        #dbe3de;
    --bg:          #f3f5f4;
    --white:       #ffffff;
    --error:       #a52a22;
    --error-tint:  #f9e9e7;
    --ok-tint:     #e7f1ec;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.55 system-ui, "Segoe UI", Arial, sans-serif;
}

/* ---- topbar -------------------------------------------------------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green);
    color: var(--white);
    padding: 10px 22px;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.topbar-brand small { font-weight: 400; opacity: .75; margin-left: 4px; }
.topbar-brand img { border-radius: 4px; background: var(--white); }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar .muted { color: rgba(255,255,255,.75); }
.btn-link { color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.5); padding: 5px 12px; border-radius: 4px; }
.btn-link:hover { background: rgba(255,255,255,.12); }

/* ---- layout -------------------------------------------------------- */
.wrap { max-width: 880px; margin: 26px auto; padding: 0 16px; }
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px 26px;
    margin-bottom: 24px;
}
.card h2 { margin: 0 0 6px; font-size: 19px; color: var(--green-dark); }
.muted { color: var(--muted); }
code { background: var(--green-tint); padding: 1px 5px; border-radius: 3px; font-size: 13px; }

/* ---- forms --------------------------------------------------------- */
label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 13.5px; }
input[type=text], input[type=email], input[type=password], textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font: inherit;
    background: var(--white);
}
input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

fieldset {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 16px 16px;
}
legend { font-weight: 600; font-size: 13.5px; padding: 0 6px; }

button {
    font: inherit;
    border: 0;
    border-radius: 5px;
    padding: 10px 18px;
    cursor: pointer;
}
.btn-primary   { background: var(--green); color: var(--white); font-weight: 600; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--green-tint); color: var(--green-dark); margin-top: 12px; }
.btn-secondary:hover { background: #d8e8df; }
.send-all { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---- preview ------------------------------------------------------- */
.preview-box { margin-top: 14px; }
.preview-box summary { cursor: pointer; color: var(--green-dark); font-weight: 600; }
.preview-box iframe {
    width: 100%;
    height: 320px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
}

/* ---- messages ------------------------------------------------------ */
.msg { padding: 11px 14px; border-radius: 6px; margin: 0 0 18px; }
.msg-ok    { background: var(--ok-tint);   color: var(--green-dark); border: 1px solid #c4dcce; }
.msg-error { background: var(--error-tint); color: var(--error);     border: 1px solid #e6c4c0; }

/* ---- status table -------------------------------------------------- */
.status-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.status-table th, .status-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.status-table th { color: var(--muted); font-weight: 600; }
.badge { padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-queued    { background: #eef1ef; color: var(--muted); }
.badge-sending   { background: #fdf3d7; color: #8a6d00; }
.badge-done      { background: var(--green-tint); color: var(--green-dark); }
.badge-cancelled { background: var(--error-tint); color: var(--error); }

/* ---- login / unsubscribe ------------------------------------------- */
.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-card {
    width: 360px;
    max-width: 92vw;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: 8px;
    padding: 34px 32px;
    text-align: center;
}
.login-card h1 { margin: 14px 0 2px; font-size: 21px; color: var(--green-dark); }
.login-card form { text-align: left; margin-top: 18px; }
.login-card button { width: 100%; margin-top: 20px; background: var(--green); color: var(--white); font-weight: 600; }
.login-card button:hover { background: var(--green-dark); }
