/* Administrator ModSecurity WAF. Layout only; API behavior is unchanged. */
.modsec-page{max-width:1380px;margin:0 auto;padding:2px 0 40px;display:flex;flex-direction:column;gap:16px;min-width:0;color:#1d2433}
.modsec-page-header{align-items:center;margin-bottom:0}
.modsec-title-group{display:flex;align-items:center;gap:15px;min-width:0}
.modsec-title-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:15px;background:linear-gradient(135deg,#8b5cf6,#6741d9);box-shadow:0 10px 24px rgba(104,65,217,.22);color:#fff}
.modsec-title-icon svg{width:24px;height:24px;fill:none;stroke:#fff!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.modsec-eyebrow{display:block;margin-bottom:4px;color:#6b3fd0;font-size:11px;font-weight:800;line-height:1.3;letter-spacing:.09em;text-transform:uppercase}
.modsec-page-header .wp-page-title{display:block;margin:0;font-size:28px;line-height:1.2;color:#171b28}
.modsec-page-header .wp-page-subtitle{margin:5px 0 0;max-width:640px;color:#4f5668;font-size:14px;line-height:1.5}
.modsec-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;flex-shrink:0}
.modsec-header-actions button{min-height:38px;white-space:nowrap}
.modsec-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.modsec-stat{display:flex;align-items:center;gap:14px;min-width:0;padding:17px 18px;border:1px solid #e6e8ef;border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(31,35,48,.035)}
.modsec-stat-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#F6F2FE;color:#8352F1}
.modsec-stat-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.modsec-stat-icon--green{background:#eafaf3;color:#09a476}
.modsec-stat-icon--amber{background:#fff7e6;color:#e89700}
.modsec-stat-icon--red{background:#fef3f2;color:#d92d20}
.modsec-stat>div{min-width:0}
.modsec-stat span:not(.modsec-stat-icon){display:block;color:#4f5767;font-size:11px;font-weight:700}
.modsec-stat strong{display:block;margin-top:4px;color:#272d3d;font-size:20px;line-height:1.25;overflow-wrap:anywhere}
.modsec-overview,.modsec-card{border:1px solid #e6e8ef;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(31,35,48,.045);overflow:hidden;min-width:0}
.modsec-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:22px 24px;background:linear-gradient(125deg,#fff,#fbfaff)}
.modsec-overview-main{display:flex;align-items:flex-start;gap:14px;min-width:0}
.modsec-overview-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:13px;color:#a46b15;background:#fff7e6}
.modsec-overview-icon.is-active{color:#087653;background:#eafbf2}
.modsec-overview-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.modsec-status-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.modsec-status-line h2{margin:0;font-size:18px;color:#171b28}
.modsec-overview-main p{margin:7px 0 0;color:#4f5668;font-size:13px;line-height:1.6}
.modsec-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.modsec-badge i{width:7px;height:7px;border-radius:50%}
.modsec-badge.is-active{color:#087653;background:#eafbf2}
.modsec-badge.is-active i{background:#12b76a}
.modsec-badge.is-inactive{color:#a15c07;background:#fff5df}
.modsec-badge.is-inactive i{background:#f59e0b}
.modsec-badge.is-missing{color:#b42318;background:#fef3f2}
.modsec-badge.is-missing i{background:#d92d20}
.modsec-overview-actions{display:flex;align-items:flex-start;gap:9px;flex-wrap:wrap}
.modsec-overview-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;white-space:nowrap}
.modsec-overview-actions button svg{display:block;width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.modsec-overview-actions #modsec-enable:not(:disabled){color:#fff!important;background:#079455!important;border-color:#079455!important}
.modsec-overview-actions #modsec-enable:disabled{color:#067647!important;background:#ecfdf3!important;border-color:#a6f4c5!important;opacity:1!important}
.modsec-overview-actions #modsec-disable:not(:disabled){color:#fff!important;background:#d92d20!important;border-color:#d92d20!important}
.modsec-overview-actions #modsec-disable:disabled{color:#b42318!important;background:#fef3f2!important;border-color:#fecdca!important;opacity:1!important}
.modsec-note{display:flex;align-items:flex-start;gap:10px;grid-column:1/-1;padding:12px 14px;border:1px solid #e8dffc;border-radius:11px;color:#4a425d;background:#faf8ff;font-size:13px;line-height:1.55}
.modsec-note>svg{width:18px;height:18px;flex:0 0 18px;margin-top:2px;color:#7950dc;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.modsec-note strong{color:#2c2344}
.modsec-result{grid-column:1/-1;min-height:20px;margin:0;font-size:13px;line-height:1.5;color:#4f5668}
.modsec-result.is-error{color:#b42318}
.modsec-result.is-success{color:#067647}
.modsec-card-header{display:flex;align-items:flex-start;gap:14px;padding:18px 22px;border-bottom:1px solid #eceef3;background:linear-gradient(135deg,#fcfbff,#fff)}
.modsec-card-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:#efe8ff;color:#5f34c8}
.modsec-card-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.modsec-card-header h2{margin:0;color:#171b28;font-size:18px;line-height:1.3}
.modsec-card-header p{margin:5px 0 0;color:#4f5668;font-size:13px;line-height:1.55}
.modsec-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px 22px 22px}
.modsec-detail{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #eee8fb;border-radius:12px;background:#faf8ff}
.modsec-detail span{color:#5b6475;font-size:12px;font-weight:700}
.modsec-detail strong,.modsec-detail code{display:block;margin-top:5px;color:#171b28;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.modsec-detail code{font-size:12px;font-weight:650;padding:4px 8px;border-radius:6px;background:#fff;color:#5f34c8}
.modsec-loading,.modsec-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:36px 22px;border:1px solid #e6e8ef;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(31,35,48,.045);text-align:center;color:#5b6475}
.modsec-loading strong,.modsec-empty strong{color:#171b28;font-size:16px}
.modsec-loading p,.modsec-empty p{margin:0;font-size:13px;line-height:1.55}
@media(max-width:1100px){.modsec-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
    .modsec-overview{grid-template-columns:1fr}
    .modsec-overview-actions{grid-column:1}
    .modsec-details{grid-template-columns:1fr}
}
@media(max-width:620px){
    .modsec-title-icon{display:none}
    .modsec-page-header .wp-page-title{font-size:24px}
    .modsec-summary{grid-template-columns:1fr}
    .modsec-overview,.modsec-card-header,.modsec-details{padding-left:18px;padding-right:18px}
    .modsec-overview-actions button{flex:1}
    .modsec-detail{flex-direction:column}
}
