/* QuickQRGen - Custom Styles */

/* Transition animations */
.transition-shadow {
    transition: box-shadow 0.3s ease;
}

.transition-colors {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* QR Step management */
.qr-step {
    min-height: 500px;
}

/* Hide initially */
.hidden {
    display: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qr-step {
        min-height: 400px;
    }

    /* Mobile progress indicator */
    .flex.justify-center.space-x-8 {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .flex.flex-col.items-center {
        flex: 1 0 30%;
    }
}

/* Ad blocker warning */
#adblock-warning {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* QR Preview container - Fixed size, decoupled from download */
#qr-preview {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* QR Preview inner container */
#qr-preview > div {
    width: 260px !important;
    height: 260px !important;
    max-width: 260px !important;
    max-height: 260px !important;
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
}

/* File input styling */
input[type="file"] {
    padding: 0.5rem;
}

/* Button hover effects */
button:hover, a:hover {
    transform: translateY(-1px);
}

/* Focus styles */
button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    border-color: #4f46e5;
}

/* Grid gap consistency */
.grid.gap-6 {
    gap: 1.5rem;
}

/* Card hover effect */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Error state */
.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success state */
.success {
    border-color: #10b981;
}

/* QR Code container */
.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Responsive footer */
@media (max-width: 640px) {
    footer .grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}
