/* Custom styles for QR Code Generator */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Tab button states */
.tab-btn.active {
    color: rgb(5 150 105);
    border-bottom: 2px solid rgb(5 150 105);
    background-color: rgb(236 253 245);
}

.tab-btn:not(.active) {
    color: rgb(107 114 128);
}

.tab-btn:not(.active):hover {
    color: rgb(55 65 81);
    background-color: rgb(249 250 251);
}

/* Input focus states */
input:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: rgb(5 150 105);
    border-color: transparent;
}

/* Custom file input styling */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* QR Code container styling */
#qr-container canvas,
#qr-container img {
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: white;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(to right, rgb(5 150 105), rgb(20 184 166));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animation for copy feedback */
.copy-success {
    color: rgb(34 197 94) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .text-4xl {
        font-size: 2.25rem;
    }
    
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Loading animation */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Error state */
.error {
    border-color: rgb(239 68 68);
    background-color: rgb(254 242 242);
}

.error:focus {
    ring-color: rgb(239 68 68);
}

/* Success state */
.success {
    border-color: rgb(34 197 94);
    background-color: rgb(240 253 244);
}

/* Custom scrollbar for QR data display */
.max-h-32::-webkit-scrollbar {
    width: 4px;
}

.max-h-32::-webkit-scrollbar-track {
    background: rgb(243 244 246);
    border-radius: 4px;
}

.max-h-32::-webkit-scrollbar-thumb {
    background: rgb(156 163 175);
    border-radius: 4px;
}

.max-h-32::-webkit-scrollbar-thumb:hover {
    background: rgb(107 114 128);
}

/* Hide tab content by default */
.tab-content.hidden {
    display: none;
}

/* Image preview styling */
#preview-img {
    object-fit: cover;
    border-radius: 0.5rem;
}

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

button:active {
    transform: translateY(0);
}

/* Gradient background animation */
.bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}