/* QR Scanner Styles */
.eventhub-qr-scanner-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.scanner-header {
    text-align: center;
    margin-bottom: 30px;
}

.scanner-header h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #333;
}

.scanner-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Stats Display */
.scanner-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mode Buttons */
.scanner-modes {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.mode-button {
    flex: 1;
    max-width: 250px;
    padding: 15px 20px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-button:hover {
    background: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.mode-button .dashicons {
    font-size: 20px;
}

/* Scanner Modes */
.scanner-mode {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.camera-mode #qr-reader {
    border-radius: 8px;
    overflow: hidden;
}

#camera-status {
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    color: #666;
}

#camera-status .error {
    color: #d63638;
    font-weight: 600;
}

/* Manual Entry Form */
.manual-entry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.manual-entry-form label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ticket-code-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s ease;
}

.ticket-code-input:focus {
    outline: none;
    border-color: #667eea;
}

.manual-entry-form .button {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* Scan Results */
.scan-result {
    display: none;
    margin: 20px 0;
    padding: 25px;
    border-radius: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scan-success {
    background: linear-gradient(135deg, #46b450 0%, #2e7d32 100%);
    color: white;
    text-align: center;
}

.scan-error {
    background: linear-gradient(135deg, #d63638 0%, #c62828 100%);
    color: white;
    text-align: center;
}

.scan-warning {
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    color: white;
    text-align: center;
}

.scan-result .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.scan-result h3 {
    margin: 10px 0 15px 0;
    font-size: 24px;
}

.attendee-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.attendee-info p {
    margin: 8px 0;
    font-size: 15px;
}

/* Recent Scans */
.recent-scans {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-scans h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
}

.recent-scans-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-scans-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.recent-scans-list li:hover {
    background: #f9f9f9;
}

.recent-scans-list li:last-child {
    border-bottom: none;
}

.scan-time {
    font-size: 13px;
    color: #999;
    min-width: 80px;
}

.scan-name {
    flex: 1;
    font-weight: 600;
    color: #333;
    padding: 0 15px;
}

.scan-company {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eventhub-qr-scanner-container {
        padding: 15px;
    }
    
    .scanner-header h2 {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .scanner-modes {
        flex-direction: column;
    }
    
    .mode-button {
        max-width: 100%;
    }
    
    .scanner-mode {
        padding: 20px;
    }
    
    .recent-scans-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .scan-time {
        min-width: auto;
    }
    
    .scan-name {
        padding: 0;
    }
}

/* QR Code Reader Library Overrides */
#qr-reader {
    border: 2px solid #e0e0e0;
}

#qr-reader__dashboard_section_swaplink {
    display: none !important;
}

#qr-reader__scan_region {
    border-radius: 8px;
}

/* Admin Page Styles */
.qr-generation-section,
.qr-distribution-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.qr-options label {
    display: block;
    margin: 10px 0;
    font-size: 15px;
}

.qr-options input[type="radio"] {
    margin-right: 8px;
}

#attendee-selector {
    background: white;
    border-radius: 6px;
    padding: 15px;
}
