/* QR Editor Custom Styles */

.qr-editor-container {
    min-height: 600px;
}

/* Canvas styles */
.canvas-container {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 0.25rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-container.has-image {
    border-style: solid;
    background-color: transparent;
}

/* Pattern preview styles */
.pattern-preview {
    position: absolute;
    pointer-events: none;
    border: 2px solid rgba(0, 123, 255, 0.5);
    background-color: rgba(0, 123, 255, 0.1);
}

/* Zoom window styles */
.zoom-window {
    pointer-events: none;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Control panel styles */
.control-panel {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.control-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
}

/* Slider styles */
.slider-container {
    margin-bottom: 1rem;
}

.slider-container label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.slider-value {
    font-weight: 700;
    color: #007bff;
}

/* Button styles */
.btn-group-vertical .btn {
    margin-bottom: 0.5rem;
}

.btn-group-vertical .btn:last-child {
    margin-bottom: 0;
}

/* Status indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator.loading::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Validation result styles */
.validation-result {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.validation-result.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.validation-result.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive styles */
@media (max-width: 768px) {
    .control-panel {
        margin-bottom: 0.5rem;
        padding: 0.75rem;
    }
    
    .compact-controls {
        font-size: 0.875rem;
    }
    
    .compact-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .canvas-container {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .control-panel {
        background-color: #343a40;
        color: #f8f9fa;
    }
    
    .control-panel h3 {
        color: #adb5bd;
    }
    
    .zoom-window {
        border-color: #f8f9fa;
    }
}