
:root {
    --bg: #020617;
    --panel: #0f172a;
    --rack: #111827;
    --border: #1e293b;
    --primary: #38bdf8;
    --green: #22c55e;
    --text: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top left, #0f172a, #020617);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.navbar {
    padding: 20px 40px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 28px;
    color: var(--primary);
    font-weight: bold;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

.hero {
    padding: 80px 40px 40px;
}

.hero h1 {
    font-size: 54px;
    margin-bottom: 15px;
}

.hero p {
    color: #94a3b8;
}

.rack-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px;
}

.rack {
    background: #050b16;
    border: 2px solid #1e293b;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.device {
    height: 90px;
    background: linear-gradient(to bottom, #1f2937, #111827);
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 18px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: 0.3s ease;
    overflow: hidden;
}

.device:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.device::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.05),
        transparent
    );
    animation: scan 3s infinite linear;
}

@keyframes scan {
    from {
        left: -150px;
    }

    to {
        left: 100%;
    }
}

.device-label {
    position: absolute;
    left: 25px;
    top: 32px;
    font-size: 20px;
}

.device-panel {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(12px);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.device-panel h2 {
    margin-bottom: 30px;
    color: var(--primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #1e293b;
}

.info-row span:first-child {
    color: #94a3b8;
}

.firewall {
    border-left: 6px solid #22c55e;
}

.switch {
    border-left: 6px solid #3b82f6;
}

.server {
    border-left: 6px solid #8b5cf6;
}

.nas {
    border-left: 6px solid #f59e0b;
}

.proxmox {
    border-left: 6px solid #ef4444;
}

.pdu {
    border-left: 6px solid #06b6d4;
}

.ups {
    border-left: 6px solid #10b981;
}

@media(max-width: 900px) {

    .rack-section {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 40px;
    }
}
