/* VoiceRACX Unsubscribe System - styles (VoiceRACX brand theme) */

:root {
    --vx-navy:      #081a3a;   /* dark page background        */
    --vx-blue:      #0b3b8c;   /* hero / brand blue           */
    --vx-bright:    #2b6fd6;   /* accent button blue          */
    --vx-cyan:      #36b6e8;   /* accent button cyan          */
    --vx-ink:       #1f2933;   /* body text                   */
    --vx-muted:     #6b7280;   /* secondary text              */
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--vx-ink);
    line-height: 1.55;
    background: radial-gradient(900px 500px at 70% -10%, #11489c 0%, transparent 60%),
                linear-gradient(160deg, var(--vx-blue) 0%, var(--vx-navy) 70%);
    background-attachment: fixed;
}

/* ---------------- Public unsubscribe page ---------------- */
.card {
    max-width: 540px;
    margin: 6vh auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

/* blue brand header strip inside the card */
.brandbar {
    background: linear-gradient(120deg, var(--vx-blue), var(--vx-bright));
    padding: 22px 38px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brandbar img { height: 38px; width: auto; display: block; }
.brand {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .5px;
    color: #fff;
    text-transform: uppercase;
}

.card-body { padding: 34px 38px 30px; }

h1 { font-size: 22px; margin: 0 0 14px; color: var(--vx-navy); }

.lead { font-size: 16px; margin: 0 0 18px; }
.muted { color: var(--vx-muted); font-size: 13px; }

.email-box {
    background: #eef3fb;
    border: 1px solid #d4e0f3;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--vx-blue);
    word-break: break-all;
    margin: 0 0 22px;
}

.btn {
    display: inline-block;
    background: linear-gradient(120deg, var(--vx-bright), var(--vx-cyan));
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(43, 111, 214, .35);
}
.btn:hover { filter: brightness(1.07); }
.btn.small { padding: 9px 15px; font-size: 13px; box-shadow: none; }
.btn.grey  { background: #6b7280; }
.btn.green { background: linear-gradient(120deg, #15803d, #22a85a); }

.text-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd2d9;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 14px;
    font-family: inherit;
}
.text-input:focus { outline: 2px solid var(--vx-bright); border-color: var(--vx-bright); }
textarea.text-input { resize: vertical; }

/* honeypot - hidden from real users */
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.footer {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #eceff1;
    font-size: 12px;
    color: #9aa5b1;
}
.footer a { color: var(--vx-bright); }

a { color: var(--vx-bright); }
.error-text { color: #b91c1c; }

/* ---------------- Admin tool ---------------- */
.admin { max-width: 900px; margin: 34px auto; padding: 0 16px; }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: #fff;
}
.topbar .logout { font-size: 13px; color: #cfe0ff; }

.tabs { display: flex; gap: 4px; }
.tabs a {
    padding: 11px 20px;
    text-decoration: none;
    color: #cfe0ff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px 10px 0 0;
}
.tabs a.active { background: #fff; color: var(--vx-blue); }

.panel {
    background: #fff;
    border-radius: 0 12px 12px 12px;
    padding: 28px 30px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}
.panel h1 { color: var(--vx-navy); }

.searchbar {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.searchbar .text-input { width: auto; flex: 1; min-width: 200px; margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13px;
}
th, td {
    text-align: left;
    padding: 9px 10px;
    border-bottom: 1px solid #eceff1;
    word-break: break-all;
}
th { background: #eef3fb; font-size: 12px; text-transform: uppercase; color: var(--vx-blue); }
.linkcell { font-family: monospace; font-size: 12px; color: #15803d; }

.result-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}
.result-box.good { background: #dcfce7; color: #15803d; }
.result-box.bad  { background: #fee2e2; color: #b91c1c; }

/* admin sign-in re-uses the .card layout */
.admin .card { margin: 8vh auto; }
