/* =====================================================================
   NEW DARK THEME - GROOVELINE
   ===================================================================== */

:root {
    --primary-blue: #00A3FF;
    --secondary-pink: #FF00A3;
    --background-dark: #181816; /* Updated color */
    --container-dark: #282828; /* Slightly lighter for contrast */
    --text-light: #FFFFFF;
    --text-muted: #B3B3B3;
    --border-color: #333333;
    --glow-blue: 0 0 5px var(--primary-blue), 0 0 10px var(--primary-blue);
    --glow-pink: 0 0 5px var(--secondary-pink), 0 0 10px var(--secondary-pink);
}

/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    margin: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

.logo {
    width: 250px;
    height: 66px; /* Set a fixed height based on the aspect ratio */
    background-image: url('assets/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: -2rem auto 1rem auto;
}

.hidden {
    display: none !important;
}

h2 {
    color: var(--text-light);
}

section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--container-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* --- Buttons --- */
.button-style,
button {
    background-color: var(--secondary-pink);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    text-shadow: var(--glow-pink);
    text-decoration: none; /* For <a> tags styled as buttons */
    display: inline-block; /* For <a> tags */
}

.button-style:hover:not(:disabled),
button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-pink);
}

button:disabled {
    background-color: #535353;
    cursor: not-allowed;
    text-shadow: none;
}

/* --- QR Reader --- */
#qr-reader {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden; /* Hides the corners of the video feed */
}

/* --- Song Info --- */
#song-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-shadow: var(--glow-blue);
}

#song-artist {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* --- Version Indicator --- */
.version-indicator { 
    position: fixed; 
    bottom: 5px; 
    right: 10px; 
    font-size: 10px; 
    color: var(--text-muted); 
    z-index: 1000; 
}
.help-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1.5rem; /* Adjusted padding */
    margin-top: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
.created-by { position: fixed; bottom: 5px; left: 10px; font-family: 'Orbitron', sans-serif; font-size: 12px; color: var(--primary-blue); text-shadow: var(--glow-blue); z-index: 1000; }
.help-button { position: absolute; top: 1rem; right: 1rem; background-color: var(--container-dark); color: var(--text-light); border: 1px solid var(--border-color); padding: 0.5rem 1rem; font-size: 0.9rem; text-decoration: none; border-radius: 50px; margin-top: 0; text-shadow: none; }
.help-button:hover { border-color: var(--primary-blue); color: var(--primary-blue); text-shadow: var(--glow-blue); box-shadow: none; transform: none; }



.controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* --- Lobby Styles --- */
#lobby-section {
    text-align: center;
}

.lobby-title {
    color: var(--primary-blue);
    text-shadow: var(--glow-blue);
    margin-bottom: 1.5rem;
}

#lobby-set-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#lobby-set-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

#lobby-set-name {
    font-size: 1.2rem;
    font-weight: bold;
}

#lobby-teams-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.lobby-team-item {
    background-color: var(--background-dark);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lobby-team-name {
    font-weight: bold;
}

.lobby-team-status {
    font-style: italic;
    color: var(--text-muted);
}

.lobby-team-status.connected {
    color: #39FF14; /* Neon Green */
}

#lobby-waiting-message {
    font-size: 1rem;
    color: var(--text-muted);
    animation: pulse 2s infinite;
}

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

