/* ═══ HUB CONSOLE PREMIUM CYBER DESIGN ═══ */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

.remote-log-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

.log-card {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: #09090b;
    border-radius: 24px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.15), inset 0 0 30px rgba(239, 68, 68, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.log-head {
    padding: 24px 32px;
    background: #121216;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 2px;
    color: #fca5a5;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.log-head i {
    font-size: 20px;
    color: var(--danger);
}

.log-head .close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
}

.log-head .close:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 15px var(--danger);
}

.btn-clear-logs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-clear-logs:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: #fff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.log-body {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #fca5a5;
    scrollbar-width: thin;
    scrollbar-color: var(--danger) transparent;
    position: relative;
    background: repeating-linear-gradient(0deg, rgba(239, 68, 68, 0.02) 0px, rgba(239, 68, 68, 0.02) 1px, transparent 1px, transparent 2px);
}

.terminal-welcome {
    color: var(--danger);
    font-size: 12px;
    margin-bottom: 30px;
    line-height: 1.8;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.log-line {
    padding: 14px 24px;
    margin-bottom: 12px;
    background: rgba(239, 68, 68, 0.02);
    border: 1px dashed rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ef4444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>') 12 12, pointer;
    border-radius: 8px;
    position: relative;
    word-break: break-all;
}

.log-line:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(239, 68, 68, 0.1);
    color: #fff;
    transform: translateX(8px);
}

.log-timestamp {
    color: var(--danger);
    font-weight: 700;
    margin-right: 16px;
    opacity: 0.8;
}

.ai-analysis {
    margin-top: 20px;
    padding: 24px 30px;
    background: #0d0d12;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    color: #a7f3d0;
    font-size: 13px;
    line-height: 1.8;
    animation: cyberType 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.1);
    position: relative;
    border-left: 4px solid #10b981;
}

.ai-analysis strong {
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.analyzing {
    color: #f59e0b;
    animation: cyberBlink 0.8s infinite;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 12px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.terminal-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px dashed rgba(239, 68, 68, 0.2);
}

.blink {
    animation: cyberBlink 1s infinite;
    color: var(--danger);
    font-weight: 900;
    font-size: 24px;
    text-shadow: 0 0 10px var(--danger);
}

@keyframes cyberType {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cyberBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* CRT Scanline overlay */
.log-card::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 2;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    opacity: 0.6;
}

.log-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(239, 68, 68, 0.1);
    opacity: 0.4;
    filter: blur(5px);
    animation: scanBar 8s infinite linear;
    z-index: 3;
    pointer-events: none;
}

@keyframes scanBar {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(80vh);
    }
}

/* ═══ PREMIUM STATUS PILLS ═══ */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.status-pill:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.status-dot.pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.5;
    animation: statusPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(3.5); opacity: 0; }
}

.status-pill.online {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}
.status-pill.online .status-dot { background: #10b981; box-shadow: 0 0 20px #10b981; }

.status-pill.suspended {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}
.status-pill.suspended .status-dot { background: #ef4444; box-shadow: 0 0 20px #ef4444; }

.status-pill.offline {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}
.status-pill.offline .status-dot { background: #f59e0b; box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }