/* --- START OF FILE static/iot.css --- */

:root {
    --iot-bg: #0b0c0d;
    --iot-border: #2a2a2e;
}

/* --- CONTAINER --- */
.iot-window {
    background-color: var(--iot-bg);
    border: 1px solid var(--iot-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    height: 240px;
    width: 100%;
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
    transform: translateZ(0);
}

.iot-window:hover {
    border-color: #555;
    transform: translateY(-2px);
}

/* --- ENGINEERING GRID BACKGROUND --- */
/* Тонкая сетка вместо точек — стиль CAD/Altium Designer */
.iot-window::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
}

/* --- CANVAS LAYER --- */
#iot-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

/* --- VIGNETTE EFFECT --- */
/* Затемнение по краям для фокуса на центре */
.iot-window::after {
    content: " ";
    display: block;
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 10;
}