/* YGO Scanner Styles */
#ygo-scanner-app {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: center;
}

.scanner-controls {
    margin-bottom: 20px;
    padding: 20px;
    background: #f0f0f1;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

#ygo-scan-preview {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: #2c3338;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#ygo-scan-preview canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

.status-info {
    background: #e6f7ff;
    color: #0050b3;
}

.status-error {
    background: #fff1f0;
    color: #cf1322;
}

.status-success {
    background: #f6ffed;
    color: #389e0d;
}

.hidden {
    display: none !important;
}

/* Spinner */
.ygo-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}