/* Main Container */
.qr-scanner-container {
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Buttons */
.qr-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.start-btn {
    background: #2196F3;
    color: white;
    margin-top: 20px;
    margin-bottom: 20px;
}

.stop-btn {
    background: #f44336;
    color: white;
    display: none;
    position: relative;
    overflow: hidden;
}

.stop-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.stop-btn:active::after {
    opacity: 1;
}

.verify-btn {
    background: #4CAF50;
    color: white;
    width: 100%;
    justify-content: center;
}

.qr-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.qr-btn:active {
    transform: translateY(0);
}

/* Camera Preview */
.camera-preview {
    display: none;
    position: relative;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
}

#qr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 2px dashed rgba(255,255,255,0.5);
    pointer-events: none;
}

/* Form Elements */
#qr-code-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Status Messages */
.status-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.loading {
    color: #2196F3;
}

.loading::before {
    content: '↻';
    display: inline-block;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

.ready {
    color: #2196F3;
}

.success {
    color: #4CAF50;
}

.error {
    color: #f44336;
}

.stopped {
    color: #666;
}

/* Debug Console */
.debug-console {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    max-height: 150px;
    overflow-y: auto;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Admin Styles */
.wp-list-table th {
    font-weight: 600;
}

.wp-list-table code {
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .debug-console {
        font-size: 11px;
        max-height: 100px;
    }
    
    .qr-btn {
        padding: 10px 16px;
        font-size: 15px;
    }
}
