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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#gallery-container {
    width: 100%;
    height: 100%;
    position: relative;
    opacity: 1;
    transition: opacity 300ms ease;
}

/* Status Indicator */
#status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #fff;
    z-index: 1000;
}

#status-indicator.hidden {
    display: none;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.disconnected {
    background: #f87171;
    animation: none;
}

.status-dot.connecting {
    background: #fbbf24;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Info Overlay */
#info-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 30px;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    z-index: 1000;
    max-width: 400px;
}

#info-overlay.hidden {
    display: none;
}

#info-overlay h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #667eea;
}

#info-overlay p {
    font-size: 14px;
    margin-bottom: 5px;
    color: #aaa;
}

/* Transition effects */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Keyboard shortcut indicator (optional) */
.shortcut-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: monospace;
    font-size: 12px;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s;
}

.shortcut-hint.visible {
    opacity: 1;
}

/* Artwork ID label */
.gallery-artwork-id {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1050;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-artwork-id.hidden {
    display: none;
}

/* Gallery Debug Panel */
#gallery-debug-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    width: 220px;
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    backdrop-filter: blur(6px);
}

#gallery-debug-panel.hidden {
    display: none;
}

.gallery-debug-header {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 8px;
}

.gallery-debug-link {
    display: block;
    font-size: 12px;
    color: #a5b4fc;
    text-decoration: none;
    margin-bottom: 10px;
    word-break: break-all;
}

.gallery-debug-link:hover {
    text-decoration: underline;
}

.gallery-debug-queue-count {
    font-size: 12px;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.gallery-debug-qr {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gallery-debug-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-debug-admin-btn {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(102, 126, 234, 0.18);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.gallery-debug-admin-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}
