/* BrainBoost Brand QR Generator CSS */

body {
    background-color: var(--bg-light);
}

/* .container {
  max-width: 1200px;
} */

/* New commented-out blocks from the instruction */
/* .qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
} */

/* #qrcode {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
} */

/* .qr-input {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base);
}

.qr-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
} */

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.form-section {
    padding: var(--spacing-xl);
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.preview-section {
    padding: var(--spacing-xl);
    background-color: var(--bg-light);
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qr-preview-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

#qrcode {
    display: inline-block;
    margin: 0 auto;
    background-color: white;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#qrcode:hover {
    box-shadow: 0 4px 16px #0002;
    transform: scale(1.02);
}

#qrcode img {
    border-radius: 8px;
}

/* Ensure the image preview remains visible */
#imagePreview {
    z-index: 5;
    position: relative;
}

/* Style for logo preview in QR area */
#logoPreviewInQR {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: none;
}

.qr-ready-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    animation: fadeInOut 2s ease-in-out;
    z-index: 10;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.download-buttons .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.download-buttons .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .form-section,
    .preview-section {
        border-radius: 1rem 1rem 0 0 !important;
        padding: 1rem;
    }

    .card {
        border-radius: 1rem;
    }
}