* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

/* Panels */

.panel {
    display: none;
    height: 100vh;
    width: 100%;
    padding: 40px;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.panel.active {
    display: flex;
}

.centerBox {
    max-width: 700px;
    margin: 0 auto;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    color: #da0ef5;
    text-shadow: 0 0 30px rgba(218, 14, 245, 0.7);
    margin-bottom: 20px;
}

.subtitle {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Inputs */

input {
    padding: 12px 14px;
    font-size: 1rem;
    width: 260px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #111827;
    color: #fff;
    margin-bottom: 16px;
    outline: none;
}

input:focus {
    border-color: #00eaff;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.35);
}

/* Buttons */

button {
    background: linear-gradient(45deg, #da0ef5, #b008cc);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 20px rgba(218, 14, 245, 0.35);
}

button:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #ff1493, #da0ef5);
    box-shadow: 0 8px 30px rgba(218, 14, 245, 0.55);
}

/* Connecting animation */

#loadingScreenCanvas {
    margin-top: 30px;
    width: 220px;
    height: 220px;
    border: 2px solid #00eaff;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Streaming */

#appStreaming {
    display: none;
    width: 100%;
    height: 100vh;
    background: #000;
    padding: 0;
}

#streamFullscreenContainer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.topBar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 12px;
}

.topBar button {
    padding: 10px 16px;
    font-size: 0.9rem;
}

#streamVideoElement {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

#streamAudioElement {
    display: none;
}

#streamFullscreenOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Fullscreen behavior */

#streamFullscreenContainer:fullscreen {
    background: #000;
}

#streamFullscreenContainer:fullscreen .topBar {
    opacity: 0;
    transition: opacity 0.3s;
}

#streamFullscreenContainer:fullscreen:hover .topBar {
    opacity: 1;
}

/* Error messages */

#setupValidationError {
    color: #ff4444;
    margin-top: 15px;
    font-weight: bold;
}