/* =========================
   GLOBAL
========================= */

body {
    background: radial-gradient(circle at top, #0f172a 0%, #020617 70%);
    color: #e2e8f0;
    font-family: 'Segoe UI', 'Inter', sans-serif;
    font-size: 14px;
    overflow-x: hidden;
}

h2 {
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: #f1f5f9;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: 95%;
    margin: auto;
    padding-top: 20px;
}

/* =========================
   CARDS
========================= */

.card {
    background: linear-gradient(145deg, #111827, #0f172a);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.05);
    transition: 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 150, 0.15);
}

/* =========================
   METRIC CARDS
========================= */

.card h6 {
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

.card h3 {
    font-weight: 600;
    margin-top: 8px;
}

/* =========================
   CHART GRID
========================= */

.charts {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.chart {
    height: 300px;
    border-radius: 10px;
}

/* =========================
   TABLE
========================= */

.table {
    font-size: 13px;
}

.table-dark {
    --bs-table-bg: #0f172a;
    --bs-table-striped-bg: #111827;
    --bs-table-hover-bg: #1e293b;
    --bs-table-border-color: #1f2937;
}

table.dataTable tbody tr {
    background-color: #0f172a !important;
}

table.dataTable tbody tr:hover {
    background-color: #1e293b !important;
}

thead th {
    color: #94a3b8 !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

/* =========================
   DATATABLE INPUTS
========================= */

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: #111827 !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_info {
    color: #94a3b8;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #94a3b8 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #16a34a !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px;
}

/* =========================
   BUTTONS
========================= */

button {
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.unban {
    background: #f59e0b;
    color: #fff;
}

.unban:hover {
    background: #d97706;
}

.perm {
    background: #dc2626;
    color: #fff;
}

.perm:hover {
    background: #b91c1c;
}

/* =========================
   SCROLLBAR CUSTOM
========================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* =========================
   MAP
========================= */

#map {
    border-radius: 12px;
    overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .charts {
        flex-direction: column;
    }

    .chart {
        height: 260px;
    }
}

/* botao info ip */

.info {
    background: #2563eb;
    color: #fff;
}

.info:hover {
    background: #1d4ed8;
}

/* ===============================
   Linha IP Interno
================================= */

.internal-row {
    background-color: rgba(255, 152, 0, 0.15) !important;
    border-left: 4px solid #f59e0b !important;
}

/* ===============================
   Piscar Novo Ban
================================= */

@keyframes blinkNew {
    0%   { background-color: rgba(239, 68, 68, 0.6); }
    50%  { background-color: rgba(239, 68, 68, 0.2); }
    100% { background-color: rgba(239, 68, 68, 0.6); }
}

.new-ban-blink {
    animation: blinkNew 1s ease-in-out 3;
}

/* =========================
   TÍTULOS SOC
========================= */

.card-title-soc {
    color: #cbd5e1 !important; /* cinza claro visível */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 13px;
}

/* versão maior para h5 */
h5.card-title-soc {
    font-size: 15px;
    color: #f1f5f9 !important;
}


/* ===============================
   CROWDSTRIKE STYLE
================================= */

.soc-navbar {
    background: #0b0f17;
    border-bottom: 1px solid #1f2937;
}

.soc-logo {
    color: #dc2626;
    font-size: 28px;
}

.soc-title {
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(220,38,38,0.4);
}

.soc-card {
    border-left: 3px solid #dc2626;
    transition: 0.3s;
}

.soc-card:hover {
    box-shadow: 0 0 25px rgba(220,38,38,0.15);
    transform: translateY(-3px);
}

.soc-footer {
    background: #0b0f17;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ===============================
   RADAR SOC
================================= */

#radarChart {
    border-radius: 12px;
    overflow: hidden;
}

.radar-glow {
    box-shadow: 0 0 30px rgba(220,38,38,0.4);
    transition: 0.3s;
}


/* ==========================================
   CROWDSTRIKE ENTERPRISE STYLE
========================================== */

body {
    background: #0c1118;
    background-image: linear-gradient(180deg, #0c1118 0%, #0f172a 100%);
}

/* Navbar mais corporativa */
.soc-navbar {
    background: #0b0f14;
    border-bottom: 1px solid #1a2230;
}

/* Título mais executivo */
.soc-title {
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #f8fafc;
}

/* Cards mais profissionais */
.soc-card {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border: 1px solid #1e293b;
    border-left: 4px solid #dc2626;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Remove glow exagerado */
.soc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.6);
}

/* Indicador de saúde */
.system-health {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border: 1px solid #1e293b;
    border-left: 4px solid #22c55e;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.health-ok {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.7);
}

.health-warning {
    background: #f59e0b;
}

.health-critical {
    background: #ef4444;
}

/* Footer mais corporativo */
.soc-footer {
    background: #0b0f14;
    border-top: 1px solid #1a2230;
    color: #94a3b8;
}

/* Ajuste light mode */
html[data-theme="light"] body {
    background: #f3f4f6;
}

html[data-theme="light"] .soc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

html[data-theme="light"] .soc-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* ===============================
   SYSTEM HEALTH TEXT FIX
================================= */

.system-health .health-item {
    color: #e5e7eb; /* cinza claro visível no dark */
    font-weight: 500;
}

html[data-theme="light"] .system-health .health-item {
    color: #1f2937; /* cinza escuro no light */
}
/* ===============================
   SOC BUTTON STYLE (Enterprise)
================================= */

.btn {
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 3px 8px;
    font-size: 11px;
}

/* INFO */
.btn-primary {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 10px rgba(37,99,235,0.6);
    transform: translateY(-1px);
}

/* UNBAN */
.btn-warning {
    background: linear-gradient(135deg,#f59e0b,#d97706);
    border: none;
}

.btn-warning:hover {
    box-shadow: 0 0 10px rgba(245,158,11,0.6);
    transform: translateY(-1px);
}

/* PERMANENTE */
.btn-danger {
    background: linear-gradient(135deg,#dc2626,#b91c1c);
    border: none;
}

.btn-danger:hover {
    box-shadow: 0 0 12px rgba(220,38,38,0.6);
    transform: translateY(-1px);
}

/* REMOVER PERMANENTE */
.btn-secondary {
    background: linear-gradient(135deg,#6b7280,#4b5563);
    border: none;
}

.btn-secondary:hover {
    box-shadow: 0 0 8px rgba(107,114,128,0.6);
}

/* ===============================
   LIVE INDICATOR SOC
================================= */

.live-badge {
    background: rgba(220,38,38,0.15);
    color: #ff4d4d;
    border: 1px solid #dc2626;
    font-weight: 600;
    letter-spacing: 1px;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px rgba(255,0,0,0.8);
    animation: pulseLive 1.2s infinite;
}

@keyframes pulseLive {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px rgba(255,0,0,0.7);
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(255,0,0,1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px rgba(255,0,0,0.7);
    }
}

/* ===============================
   LIVE STATUS INTELIGENTE
================================= */

.live-badge {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid #22c55e;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulseLive 1.2s infinite;
}

/* NORMAL */
.live-ok {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border-color: #22c55e;
}

.live-ok .live-dot {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.8);
}

/* WARNING */
.live-warning {
    background: rgba(234,179,8,0.15);
    color: #eab308;
    border-color: #eab308;
}

.live-warning .live-dot {
    background: #eab308;
    box-shadow: 0 0 12px rgba(234,179,8,0.9);
}

/* ERROR */
.live-error {
    background: rgba(107,114,128,0.2);
    color: #9ca3af;
    border-color: #6b7280;
}

.live-error .live-dot {
    background: #6b7280;
    box-shadow: none;
}

/* CRITICAL */
.live-critical {
    background: rgba(220,38,38,0.25);
    color: #ff0000;
    border-color: #dc2626;
}

.live-critical .live-dot {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255,0,0,1);
    animation: pulseCritical 0.6s infinite;
}

@keyframes pulseLive {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseCritical {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}




/* ===============================
   🔥 WAR ROOM MODE
================================= */

body.war-room {
    background: radial-gradient(circle at center, #1a0000 0%, #000000 70%) !important;
    transition: background 0.5s ease;
}

/* Overlay animado */
body.war-room::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(255,0,0,0.15) 0%, rgba(0,0,0,0.9) 80%);
    animation: warPulse 1.2s infinite;
    pointer-events: none;
    z-index: 0;
}

/* Glow nos cards */
body.war-room .soc-card {
    border-left: 3px solid #ff0000 !important;
    box-shadow: 0 0 25px rgba(255,0,0,0.3) !important;
}

/* Radar destaque */
body.war-room #radarChart {
    box-shadow: 0 0 40px rgba(255,0,0,0.6);
}

/* Texto principal vermelho */
body.war-room .soc-title {
    color: #ff3b3b !important;
    text-shadow: 0 0 20px rgba(255,0,0,0.8);
}

/* LIVE crítico animado */
body.war-room .live-badge {
    animation: liveFlash 0.6s infinite;
}

@keyframes warPulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes liveFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ================= WAR ROOM ================= */

body.war-room {
    animation: warPulse 1.5s infinite alternate !important;
}

@keyframes warPulse {
    0% {
        background: radial-gradient(circle at top, #2a0000 0%, #120000 70%) !important;
    }
    100% {
        background: radial-gradient(circle at top, #4b0000 0%, #1a0000 70%) !important;
    }
}


/* ===============================
   FIX DARK MODE CARDS
================================= */

.card {
    background: linear-gradient(145deg, #111827, #0f172a) !important;
    color: #e2e8f0 !important;
}

/* Quando modo normal (sem war room) */
body:not(.war-room) .card {
    background: linear-gradient(145deg, #111827, #0f172a) !important;
}

/* Garantir que Bootstrap não force branco */
.card.bg-light,
.card.bg-white {
    background: linear-gradient(145deg, #111827, #0f172a) !important;
}

/* ===============================
   WAR ROOM MODE
================================= */

body.war-room {
    background: radial-gradient(circle at center, #3b0000 0%, #000 70%) !important;
    transition: background 0.4s ease;
}

body:not(.war-room) {
    background: radial-gradient(circle at top, #0f172a 0%, #020617 70%) !important;
}


/* ===============================
   FIX STATUS OPERACIONAL COLOR
================================= */

.system-health small,
.system-health .card-title-soc,
.system-health h6,
.system-health .status-label {
    color: #ffffff !important;
}

/* Garantir que nunca herde cor escura */
.system-health {
    color: #ffffff !important;
}

.system-health small {
    color: #e2e8f0 !important;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===============================
   RESTORE CORPORATE DARK THEME
================================= */

body {
    background: radial-gradient(circle at top, #0b1326 0%, #050a18 60%, #020617 100%) !important;
}

/* ===============================
   CARDS RESTORE
================================= */

.card {
    background: linear-gradient(145deg, #0f1b34, #0a162b) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

/* Remove borda vermelha exagerada */
.soc-card {
    border-left: 4px solid #dc2626 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* Hover elegante */
.soc-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.6) !important;
    transform: translateY(-3px);
}

/* ===============================
   SYSTEM HEALTH
================================= */

.system-health {
    background: linear-gradient(90deg, #0d1a33, #0a1528) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}

/* Texto branco forte */
.system-health small,
.system-health h6 {
    color: #e2e8f0 !important;
}

/* ===============================
   TITLES
================================= */

.card-title-soc {
    color: #cbd5e1 !important;
}

h2.soc-title {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(220,38,38,0.25);
}

/* ===============================
   REMOVE FUNDO CLARO (BOOTSTRAP FIX)
================================= */

.card,
.container,
.container-fluid {
    background-color: transparent !important;
}


/* Velocimentro */
@keyframes shake {
    0% { transform: translateX(0px); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0px); }
}

@keyframes radarPulse{
    from{
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255,0,0,0.4));
    }
    to{
        transform: scale(1.03);
        filter: drop-shadow(0 0 25px rgba(255,0,0,0.8));
    }
}

.soc-firewall-box{
    background:#0b1220;
    border:1px solid rgba(239,68,68,0.4);
    border-radius:8px;
    padding:20px;
}

.soc-firewall-header{
    font-size:13px;
    letter-spacing:2px;
    font-weight:600;
    color:#ef4444;
    margin-bottom:18px;
}

.soc-command-line{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:15px;
}

.soc-label{
    min-width:70px;
    font-size:12px;
    color:#94a3b8;
    font-weight:600;
}

.soc-command-line input{
    flex:1;
    background:#111827;
    border:1px solid #1f2937;
    color:#ffffff;
    padding:8px 10px;
    border-radius:6px;
    font-size:14px;
}

.soc-command-line input:focus{
    outline:none;
    border-color:#ef4444;
    box-shadow:0 0 8px rgba(239,68,68,0.4);
}

.soc-block-btn{
    width:100%;
    background:#ef4444;
    border:none;
    padding:10px;
    border-radius:6px;
    font-weight:600;
    color:#fff;
    letter-spacing:1px;
    transition:0.2s;
}

.soc-block-btn:hover{
    background:#dc2626;
    box-shadow:0 0 12px rgba(239,68,68,0.6);
}

#manualIP,
#manualIP {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

#manualReason {
    font-size: 18px;
    padding: 12px 16px;
    border-radius: 8px;
}
/* #manualReason {
    font-size: 18px;
    font-weight: 500;
    padding: 10px 14px;
    height: 48px;
} */

#bansTable {
    font-size: 15px;
}

#bansTable tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
}

#bansTable tbody td:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#bansTable thead th {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Container do filtro */
.dataTables_filter {
    margin-bottom: 15px;
}

/* Label */
.dataTables_filter label {
    font-weight: 500;
    color: #94a3b8;
}

/* Input de busca */
.dataTables_filter input {
    background: #111827 !important;
    border: 1px solid #1f2937 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    margin-left: 8px !important;
    font-size: 15px !important;
    min-width: 220px;
}

/* Foco */
.dataTables_filter input:focus {
    outline: none !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239,68,68,0.4) !important;
}

/* Container paginação */
.dataTables_paginate {
    margin-top: 15px;
}

/* Botões */
.dataTables_paginate .paginate_button {
    background: #111827 !important;
    border: 1px solid #1f2937 !important;
    color: #cbd5e1 !important;
    padding: 6px 12px !important;
    margin: 0 4px;
    border-radius: 6px;
    font-size: 14px;
}

/* Hover */
.dataTables_paginate .paginate_button:hover {
    background: #1f2937 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* Página ativa */
.dataTables_paginate .paginate_button.current {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    font-weight: 600;
}

/* Remover fundo padrão azul */
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #dc2626 !important;
}

.dataTables_info {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 10px;
}

#manualBlockBtn {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    padding: 12px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#manualBlockBtn:hover {
    transform: scale(1.03);
}

