
/* Firewall Control */
.firewall-control {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    padding: 15px;
    z-index: 1000;
    text-align: center;
    font-family: 'Share Tech Mono';
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    border-left: 2px solid #555;
    transition: border-color 0.3s;
}
.firewall-control.active {
    border-color: #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.fw-header {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.fw-btn {
    background: transparent;
    border: 1px solid #444;
    color: #444;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.fw-btn:hover {
    border-color: #888;
    color: #888;
}

.firewall-control.active .fw-btn {
    border-color: #0f0;
    color: #0f0;
    background: rgba(0, 255, 0, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.fw-icon { font-size: 1.5rem; }
.fw-status { font-size: 0.8rem; font-weight: bold; }

/* Reboot Control */
.reboot-control {
    position: fixed;
    top: calc(50% + 100px); /* Below firewall */
    left: 20px;
    transform: translateY(-50%);
    background: rgba(10, 0, 0, 0.9);
    border: 1px solid #333;
    padding: 15px;
    z-index: 1000;
    text-align: center;
    font-family: 'Share Tech Mono';
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    border-left: 2px solid #500;
}
.reboot-control:hover { border-color: #f00; }

.rb-header {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.rb-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.rb-btn:hover {
    border-color: #f00;
    color: #f00;
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}
.rb-icon { font-size: 1.5rem; }
.rb-label { font-size: 0.7rem; font-weight: bold; }

/* Reboot Overlay */
.reboot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f00;
    font-family: 'Share Tech Mono';
    flex-direction: column;
}
.reboot-overlay.hidden { display: none; }

.reboot-msg { text-align: center; }
.reboot-msg h1 { font-size: 2rem; margin: 1rem 0; color: #fff; text-shadow: 0 0 10px #f00; }
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid #f00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.log-output {
    font-family: monospace;
    color: #888;
    font-size: 0.8rem;
    height: 100px;
    overflow: hidden;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 10px;
    width: 300px;
    text-align: left;
}


/* Shield Overlay */
.shield-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-image: 
        linear-gradient(30deg, #0f05 12%, transparent 12.5%, transparent 87%, #0f05 87.5%, #0f05),
        linear-gradient(150deg, #0f05 12%, transparent 12.5%, transparent 87%, #0f05 87.5%, #0f05),
        linear-gradient(30deg, #0f05 12%, transparent 12.5%, transparent 87%, #0f05 87.5%, #0f05),
        linear-gradient(150deg, #0f05 12%, transparent 12.5%, transparent 87%, #0f05 87.5%, #0f05),
        linear-gradient(60deg, #0f0555 25%, transparent 25.5%, transparent 75%, #0f0555 75%, #0f0555),
        linear-gradient(60deg, #0f0555 25%, transparent 25.5%, transparent 75%, #0f0555 75%, #0f0555);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    mix-blend-mode: overlay;
    box-shadow: inset 0 0 100px rgba(0, 255, 0, 0.2);
}
.shield-overlay.active {
    opacity: 0.15;
    animation: shield-pulse 4s infinite alternate;
}

@keyframes shield-pulse {
    0% { opacity: 0.1; background-size: 80px 140px; }
    100% { opacity: 0.2; background-size: 85px 145px; }
}

@media (max-width: 768px) {
    .firewall-control { bottom: 80px; top: auto; left: 10px; transform: none; padding: 10px; }
    .reboot-control { bottom: 80px; top: auto; right: 10px; left: auto; transform: none; padding: 10px; }
    .fw-header, .rb-header { display: none; }
    .fw-btn, .rb-btn { padding: 5px; }
    .fw-icon, .rb-icon { font-size: 1.2rem; }
}
