
/* ==========================================================
   RAID SHIELD - FASE 4.3
   Detectie & bescherming compacter en strakker
   Laad dit bestand NA je bestaande style.css.
   ========================================================== */

.raid-two-column > .panel:first-child {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(17, 24, 39, 0.98),
            rgba(15, 23, 42, 0.96)
        );
}

.raid-two-column > .panel:first-child .panel-title-row {
    margin-bottom: 18px;
}

.raid-two-column > .panel:first-child .panel-title-row h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.raid-two-column > .panel:first-child .panel-title-row p {
    margin: 0;
    font-size: 13px;
}

/* Hoofdschakelaars */
.raid-two-column > .panel:first-child > .switch-row {
    min-height: 48px;
    margin: 0 0 10px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.34);
}

.raid-two-column > .panel:first-child > .switch-row:hover {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(15, 23, 42, 0.68);
}

/* Thresholds */
.raid-threshold-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 12px;
}

.raid-threshold-card {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.30);
}

.raid-threshold-card > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
}

.raid-threshold-card label {
    display: grid;
    gap: 5px;
    margin-top: 9px;
}

.raid-threshold-card label span,
.raid-setting-grid label span {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

.raid-threshold-card input,
.raid-setting-grid input,
.raid-link-add input {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 11px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
}

.raid-threshold-card input:focus,
.raid-setting-grid input:focus,
.raid-link-add input:focus {
    border-color: rgba(96, 165, 250, 0.72);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Quarantine / slowmode / stability */
.raid-setting-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 22px;
}

.raid-setting-grid > label {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 13px;
    background: rgba(2, 6, 23, 0.26);
}

.raid-setting-grid label small {
    color: #64748b;
    font-size: 11px;
}

/* Shield 2 blok */
.raid-shield2-settings {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.raid-shield2-settings > .panel-title-row {
    margin-bottom: 14px !important;
}

.raid-shield2-settings > .switch-row {
    min-height: 48px;
    margin: 8px 0;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.28);
}

.raid-shield2-settings > .switch-row:hover {
    border-color: rgba(249, 115, 22, 0.28);
}

/* Domeinen */
.raid-link-filter-box {
    margin: 14px 0;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.30);
}

.raid-link-filter-box > strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.raid-link-filter-box > p {
    margin: 0 0 12px;
    font-size: 12px;
}

.raid-link-whitelist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.raid-link-domain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.62);
}

.raid-link-domain span {
    min-width: 0;
    overflow: hidden;
    color: #dbeafe;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.raid-link-domain button {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(248, 113, 113, 0.30);
    border-radius: 7px;
    background: rgba(220, 38, 38, 0.14);
    color: #fecaca;
}

.raid-link-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    margin-top: 10px;
}

.raid-link-add button {
    min-width: 110px;
    min-height: 40px;
    border-radius: 9px;
}

/* Opslaan */
.raid-save-row {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px -22px -22px;
    padding: 14px 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0 0 18px 18px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(8px);
}

.raid-save-row button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 800;
}

/* Responsief */
@media (max-width: 900px) {
    .raid-threshold-grid,
    .raid-setting-grid {
        grid-template-columns: 1fr;
    }

    .raid-link-whitelist {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .raid-two-column > .panel:first-child {
        padding: 16px;
    }

    .raid-save-row {
        margin: 18px -16px -16px;
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .raid-save-row button {
        width: 100%;
    }

    .raid-link-add {
        grid-template-columns: 1fr;
    }

    .raid-link-add button {
        width: 100%;
    }
}
