:root {
    --bg-color: #050510;
    --primary-color: #0070cc;
    --primary-glow: rgba(0, 112, 204, 0.6);
    --text-main: #ffffff;
    --text-muted: #b3d9ff;
    --glass-bg: rgba(10, 15, 30, 0.6);
    --glass-border: rgba(0, 112, 204, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #0a1128 0%, #000000 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

.neon-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.screen-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    outline: none;
}

.screen-card:hover, .screen-card:focus {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow);
}

.screen-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.screen-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.dot.inactive {
    background-color: #f44336;
    box-shadow: 0 0 10px #f44336;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    color: #ffb4b4;
    width: 100%;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .neon-title { font-size: 3rem; }
    .subtitle { font-size: 1.2rem; }
    .screens-grid { grid-template-columns: 1fr; }
}
