/* PolyDan - Haupt-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
}

#banner {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 110;
    cursor: pointer;
}

#banner-logo {
    max-height: 54px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

#viewport3d {
    width: 100%;
    height: 100%;
    display: block;
}

#version-label {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 11px;
    color: #666;
    z-index: 50;
    user-select: none;
}

/* Ladebalken */
#loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading-box {
    background: #16213e;
    border-radius: 12px;
    padding: 30px 50px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

#loading-text {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

#loading-bar-bg {
    width: 300px;
    height: 8px;
    background: #0f3460;
    border-radius: 4px;
    overflow: hidden;
}

#loading-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #533483, #e94560);
    border-radius: 4px;
    transition: width 0.3s;
}

#loading-percent {
    margin-top: 8px;
    font-size: 14px;
    color: #aaa;
}

/* Login Overlay - Opak, um das Whiteboard zu verdecken */
#login-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-box {
    background: #16213e;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 350px;
}

.login-box img {
    margin-bottom: 20px;
    max-height: 50px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    background: #0f3460;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #eee;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
}

.login-box input:focus {
    border-color: #e94560;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.login-box button:hover {
    background: #d63551;
}

#login-error {
    color: #ff6b6b;
    font-size: 13px;
    min-height: 20px;
}

#guest-pin-display {
    position: absolute;
    top: 70px; /* Moved down below the banner */
    left: 8px;
    z-index: 100;
    color: #fff;
    background: rgba(233, 69, 96, 0.8);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
