/* Custom Styles für QR-Code Generator */

/* QR Code Container Animation */
.qr-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container canvas {
    animation: fadeInScale 0.5s ease-in-out;
    transition: all 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Placeholder Styling */
.qr-placeholder {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Active Button States */
.color-scheme-btn.active,
.shape-btn.active {
    border-color: #3B82F6 !important;
    background-color: #EFF6FF;
    transform: scale(1.05);
}

/* Logo Overlay in QR Code */
.qr-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-logo-overlay img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 4px;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

/* Custom Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #E5E7EB, #3B82F6);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3B82F6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3B82F6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3B82F6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .qr-container canvas {
        max-width: 100%;
        height: auto;
    }
}

/* QR Code Styling for different shapes */
.qr-rounded .qr-code-module {
    border-radius: 8px;
}

.qr-dots .qr-code-module {
    border-radius: 50%;
}


