/* SEDLEX AI — Anti-spam : contact form, comment challenge, admin stats. */

/* ---------- Honeypot (must stay invisible to humans) ---------- */
.sedlex-as-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ---------- Hidden challenge (revealed by JS on suspicion) ---------- */
.sedlex-as-challenge.is-hidden,
.sedlex-as-challenge[hidden] {
    display: none !important;
}
.sedlex-as-challenge {
    margin: 1em 0;
    padding: 0.8em 1em;
    border-left: 3px solid #f0b13b;
    background: #fff8e8;
    border-radius: 3px;
}
.sedlex-as-challenge-q {
    margin: 0 0 0.4em 0;
}
.sedlex-as-challenge input[type="text"] {
    width: 12em;
    max-width: 100%;
}

/* ---------- Contact form ---------- */
.sedlex-as-form {
    max-width: 640px;
    margin: 2em auto;
    padding: 1.4em 1.6em;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.sedlex-as-title {
    margin: 0 0 1em 0;
}
.sedlex-as-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25em;
}
.sedlex-as-form input[type="text"],
.sedlex-as-form input[type="email"],
.sedlex-as-form textarea {
    width: 100%;
    padding: 0.55em 0.7em;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    font: inherit;
    box-sizing: border-box;
}
.sedlex-as-form textarea {
    resize: vertical;
    min-height: 8em;
}
.sedlex-as-form .sedlex-as-submit {
    background: #2271b1;
    color: #fff;
    border: 0;
    padding: 0.65em 1.4em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.sedlex-as-form .sedlex-as-submit:hover { background: #135e96; }
.sedlex-as-ok   { color: #1b5e20; background: #e6f4ea; padding: 0.6em 0.9em; border-radius: 4px; }
.sedlex-as-err  { color: #b71c1c; background: #fdecea; padding: 0.6em 0.9em; border-radius: 4px; }
.sedlex-as-warn { color: #6c4a00; background: #fff8e8; padding: 0.6em 0.9em; border-radius: 4px; }

/* ---------- Admin page ---------- */
.sedlex-as-admin .sedlex-as-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 1em 0 1.8em;
}
.sedlex-as-admin .kpi {
    flex: 1 1 130px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 0.9em 1em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.sedlex-as-admin .kpi strong {
    display: block;
    font-size: 1.6em;
    line-height: 1.2;
    font-weight: 700;
    color: #1d2327;
}
.sedlex-as-admin .kpi.block strong { color: #b71c1c; }
.sedlex-as-admin .kpi span {
    display: block;
    color: #50575e;
    font-size: 0.9em;
    margin-top: 2px;
}
.sedlex-as-admin .sedlex-as-table td .bar {
    height: 10px;
    background: linear-gradient(90deg, #2271b1, #72aee6);
    border-radius: 4px;
}
.sedlex-as-admin .sedlex-as-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 180px;
    padding: 6px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow-x: auto;
}
.sedlex-as-admin .sedlex-as-chart .col {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: 22px;
    flex: 0 0 22px;
    height: 100%;
}
.sedlex-as-admin .sedlex-as-chart .col .b {
    width: 100%;
}
.sedlex-as-admin .sedlex-as-chart .col .b.allow  { background: #46b450; }
.sedlex-as-admin .sedlex-as-chart .col .b.review { background: #f0b849; }
.sedlex-as-admin .sedlex-as-chart .col .b.block  { background: #d63638; }
.sedlex-as-admin .sedlex-as-chart .col span {
    font-size: 9px;
    color: #50575e;
    transform: rotate(-60deg);
    transform-origin: top left;
    margin-top: 6px;
    white-space: nowrap;
}
.sedlex-as-admin .legend {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    vertical-align: middle;
}
.sedlex-as-admin .legend.allow  { background: #46b450; }
.sedlex-as-admin .legend.review { background: #f0b849; }
.sedlex-as-admin .legend.block  { background: #d63638; }
