/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
}

/* Ensure HTML and body take full height */
html {
    height: 100%;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #fff;
    animation: spin 1.5s linear infinite;
}

.loader::after {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: rgba(255, 255, 255, 0.5);
    animation-direction: reverse;
    animation-duration: 0.75s;
}

#loading-screen p {
    margin-top: 30px;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Musical Note Animation Background */
@keyframes float-note {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.music-note {
    position: fixed;
    font-size: 30px;
    animation: float-note 10s linear infinite;
    z-index: 0;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.1);
}

/* UI Overlay */
#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

#ui-overlay > * {
    pointer-events: auto;
}

/* Controls Panel */
#controls-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: 360px;
    max-height: calc(100vh - 40px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    pointer-events: auto;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#controls-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#controls-panel h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

#controls-panel h3 {
    font-size: 18px;
    margin: 25px 0 15px 0;
    color: #e2e8f0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#controls-panel h3::before {
    content: '♪';
    font-size: 20px;
    color: #667eea;
}

/* Connection Status */
#connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#connection-status:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f56565;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(245, 101, 101, 0.5);
}

.status-dot.connected {
    background: #48bb78;
    box-shadow: 0 0 15px rgba(72, 187, 120, 0.8);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(72, 187, 120, 0.8);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(72, 187, 120, 1);
    }
}

/* Control Groups */
.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: #e2e8f0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.control-group select,
.control-group input[type="text"],
.room-controls input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.control-group select:focus,
.control-group input[type="text"]:focus,
.room-controls input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.control-group select option {
    background: #2d3748;
    color: #fff;
}

/* Custom Select Arrow */
.control-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Range Inputs */
input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
}

input[type="range"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #f093fb);
    transition: left 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

/* Effects Panel */
.effects-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.effect-control {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.effect-control:last-child {
    margin-bottom: 0;
}

.effect-control label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

/* Custom Checkbox */
.effect-control input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.effect-control input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

.effect-control input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.effect-control input[type="range"] {
    flex: 1;
}

/* Control Buttons */
.control-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px; /* Ensure minimum touch target size */
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8ff5 0%, #8e5bb0 100%);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.control-btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.control-btn:disabled:hover {
    box-shadow: none;
}

/* Special button styles */
#record-btn {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

#play-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

#stop-btn {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

#download-btn {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

/* Recording Controls */
.recording-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.recording-controls .control-btn {
    flex: 1;
    min-width: calc(50% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
}

/* Improved Icons */
.record-icon::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.play-icon::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 12px solid currentColor;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.pause-icon::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: linear-gradient(to right, currentColor 35%, transparent 35%, transparent 65%, currentColor 65%);
}

.stop-icon::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    border-radius: 2px;
}

.download-icon::before {
    content: '⬇';
    font-size: 18px;
    font-weight: bold;
}

/* Room Controls */
.room-controls {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    margin-bottom: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.room-controls h3 {
    margin: 0 0 15px 0;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.room-controls h3::before {
    content: '👥';
    font-size: 22px;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.room-controls input[type="text"] {
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.room-controls input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-size: 14px;
}

.room-controls .control-btn {
    width: calc(50% - 5px);
}

/* Keyboard Instructions */
#keyboard-instructions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    max-width: 320px;
    transition: all 0.3s ease;
}

#keyboard-instructions:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

#keyboard-instructions h4 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#keyboard-instructions h4::before {
    content: '⌨️';
    font-size: 24px;
}

#keyboard-instructions p {
    margin: 8px 0;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

#keyboard-instructions p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 20px;
    line-height: 1;
}

/* Recording State */
body.recording #record-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
    animation: recording-pulse 1.5s infinite;
}

@keyframes recording-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.6);
    }
    50% { 
        box-shadow: 0 0 0 15px rgba(255, 68, 68, 0);
    }
}

/* Volume Display */
#volume-display {
    display: inline-block;
    min-width: 45px;
    text-align: right;
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 10px;
}

/* Hover animations for 3D elements */
a-entity[instrument] {
    cursor: pointer;
}

/* Help overlay styles */
.help-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.help-content {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    border: 2px solid #4a90e2;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
}

.help-content h2 {
    color: #4a90e2;
    margin-bottom: 20px;
    text-align: center;
}

.help-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.help-section h3 {
    color: #61dafb;
    margin-bottom: 10px;
}

.help-section p {
    margin: 5px 0;
    color: #e0e0e0;
}

.help-overlay kbd {
    background: #333;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: monospace;
    color: #61dafb;
}

.help-close {
    display: block;
    margin: 20px auto 0;
    padding: 10px 30px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.help-close:hover {
    background: #357abd;
}

/* Status indicator styling */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
    animation: pulse-offline 2s infinite;
}

.status-dot.connected {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: pulse-online 2s infinite;
}

.status-text {
    font-size: 18px;
    font-weight: bold;
    color: #f44336;
}

.status-dot.connected + .status-text {
    color: #4caf50;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
    50% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.8); }
}

@keyframes pulse-offline {
    0%, 100% { box-shadow: 0 0 10px rgba(244, 67, 54, 0.5); }
    50% { box-shadow: 0 0 20px rgba(244, 67, 54, 0.8); }
}

/* (Duplicate room controls removed - see above) */

/* Mobile Adjustments */
@media (max-width: 768px) {
    #controls-panel {
        right: 10px;
        top: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: 340px;
        padding: 20px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    
    #controls-panel h2 {
        font-size: 24px;
    }
    
    #keyboard-instructions {
        bottom: 10px;
        left: 10px;
        padding: 15px;
        max-width: 280px;
    }
    
    .control-btn {
        font-size: 14px;
        padding: 10px 18px;
        letter-spacing: 0.5px;
    }
    
    .recording-controls .control-btn {
        min-width: calc(50% - 5px);
    }
}

/* Tablet Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    #controls-panel {
        width: 320px;
    }
}

/* Scrollbar Styling */
#controls-panel::-webkit-scrollbar {
    width: 8px;
}

#controls-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

#controls-panel::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#controls-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Add smooth transitions to all interactive elements */
* {
    transition-property: background-color, border-color, box-shadow, transform;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Disable transitions on load */
body.loading * {
    transition: none !important;
}

/* Quick Tips */
#quick-tips {
    position: absolute;
    bottom: 20px;
    right: 20px;
    max-width: 300px;
}

.tip {
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slide-in 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

@keyframes slide-in {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.tip-icon {
    font-size: 24px;
}

.tip-text {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

/* Loading Tips */
.loading-tips {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.8;
    animation: fade-in-out 3s infinite;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Music Notes Container */
#music-notes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

button:focus-visible,
.control-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.3);
}

/* Print styles */
@media print {
    #ui-overlay,
    #loading-screen,
    a-scene {
        display: none;
    }
}

/* Help Button Specific Styles */
.help-btn {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1002 !important;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    min-width: auto !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.help-btn:hover {
    background: linear-gradient(135deg, #5ba0f2 0%, #428acd 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

/* A-Frame specific adjustments */
a-scene {
    z-index: 1;
}

.a-enter-vr {
    z-index: 999;
}

/* Ensure UI overlay is always on top */
#ui-overlay {
    z-index: 1000 !important;
}

/* Room Info Section */
#room-info {
    background: rgba(72, 187, 120, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(72, 187, 120, 0.3);
    flex-shrink: 0;
}

#room-info p {
    margin: 5px 0;
    font-weight: 500;
    color: #e2e8f0;
}

/* Active Players List */
.active-players-list {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.player-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.player-indicator:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.player-name {
    font-weight: 500;
    color: #e2e8f0;
}

.player-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-instrument {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #a5b4fc;
}

.player-activity {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48bb78;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(72, 187, 120, 0.5);
}

.player-activity.playing {
    opacity: 1;
    animation: pulse-activity 0.6s ease-out;
}

@keyframes pulse-activity {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(72, 187, 120, 0.5);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 0 20px rgba(72, 187, 120, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(72, 187, 120, 0.5);
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 2000;
    max-width: 320px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95), rgba(56, 161, 105, 0.95));
    color: white;
    border-color: rgba(72, 187, 120, 0.3);
}

.notification-error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.95), rgba(229, 62, 62, 0.95));
    color: white;
    border-color: rgba(245, 101, 101, 0.3);
}

.notification-warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.95), rgba(221, 107, 32, 0.95));
    color: white;
    border-color: rgba(237, 137, 54, 0.3);
}

.notification-info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.95), rgba(49, 130, 206, 0.95));
    color: white;
    border-color: rgba(66, 153, 225, 0.3);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    #quick-tips {
        display: none;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        max-width: none;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}
/* UI Button Fixes */
.control-btn, #help-btn, #keyboard-toggle {
    pointer-events: all !important;
    position: relative;
    z-index: 1000;
    cursor: pointer;
}

/* Ensure help overlay has proper z-index */
.help-overlay {
    z-index: 10000 !important;
}

/* Fix for room control buttons */
#join-room-btn, #create-room-btn {
    pointer-events: all !important;
}
