/* Event QR Welcome Scanner - Multi-Device Styles */

#qr-scanner {
    text-align: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

#qr-input {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

#scan-status {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
}

#welcome-panel {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#welcome-message {
    margin: 0;
    text-transform: uppercase;
}

/* Live Dashboard Styles */
.eqw-live-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 1.8em;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8em;
    opacity: 0.8;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 10px;
}

.status-indicator.connected {
    background: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.status-indicator.loading {
    background: #ffaa00;
    animation: pulse 1s infinite;
}

.status-indicator.error {
    background: #ff0000;
    box-shadow: 0 0 5px #ff0000;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dashboard-filters {
    background: #f8f9fa;
    padding: 15px 20px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    display: flex;
    gap: 15px;
    align-items: center;
}

.dashboard-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.dashboard-content {
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.scan-records {
    padding: 10px;
}

.scan-record {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scan-record.device-1 {
    background: linear-gradient(135deg, #ff6b6b, #ffa8a8);
    color: white;
}

.scan-record.device-2 {
    background: linear-gradient(135deg, #4ecdc4, #7fdbda);
    color: white;
}

.scan-record.device-3 {
    background: linear-gradient(135deg, #95e1d3, #c8f7c5);
    color: #2c3e50;
}

.device-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    backdrop-filter: blur(10px);
}

.device-number {
    font-size: 1.5em;
    font-weight: bold;
}

.scan-info {
    flex: 1;
}

.scan-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.scan-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    opacity: 0.9;
}

.scan-timestamp {
    font-size: 0.8em;
    opacity: 0.8;
    text-align: right;
}

.no-scans {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-scans p {
    font-size: 1.2em;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    #welcome-message {
        font-size: 2em;
    }
    
    #qr-scanner {
        padding: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dashboard-stats {
        justify-content: center;
    }
    
    .dashboard-filters {
        flex-wrap: wrap;
    }
    
    .scan-record {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .scan-details {
        justify-content: center;
    }
}