/* QR Code Generator Styles */

#qr-code-generator-container {
    max-width: 1200px;
    margin: 0 auto;
}

.qr-output-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.qr-output-section.sticky-top {
    top: 20px;
}

.qr-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    aspect-ratio: 1;
}

.qr-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.qr-placeholder {
    text-align: center;
    color: #666;
}

.qr-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.qr-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode img,
#qrcode canvas {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.qr-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-qr-type {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-qr-type:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-2px);
}

.btn-check:checked + .btn-qr-type {
    background: linear-gradient(135deg, #55ddff, #4aa3ff);
    border-color: #55ddff;
    color: white;
    box-shadow: 0 4px 15px rgba(85, 221, 255, 0.3);
}

.qr-content-forms {
    margin-top: 1.5rem;
}

.qr-form {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-form.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qr-form .form-control,
.qr-form .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.qr-form .form-control:focus,
.qr-form .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #55ddff;
    box-shadow: 0 0 0 0.25rem rgba(85, 221, 255, 0.25);
    color: white;
}

/* Fix select dropdown options */
.qr-form .form-select option {
    background: #2c2c2c;
    color: white;
    padding: 8px 12px;
}

.qr-form .form-select option:hover,
.qr-form .form-select option:focus {
    background: #55ddff;
    color: white;
}

.qr-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.qr-form .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.qr-option {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.qr-option:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.qr-option .form-control,
.qr-option .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.qr-option .form-control:focus,
.qr-option .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #55ddff;
    box-shadow: 0 0 0 0.25rem rgba(85, 221, 255, 0.25);
    color: white;
}

.qr-option .form-select option {
    background: #2c2c2c;
    color: white;
    padding: 8px 12px;
}

.qr-option .form-select option:hover,
.qr-option .form-select option:focus {
    background: #55ddff;
    color: white;
}

.qr-option .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.btn-action {
    background: linear-gradient(135deg, #55ddff, #4aa3ff);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(85, 221, 255, 0.3);
    color: white;
}

.btn-action:hover {
    background: linear-gradient(135deg, #4aa3ff, #3d8bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 221, 255, 0.4);
    color: white;
}

.btn-action:disabled {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.qr-tips {
    background: rgba(85, 221, 255, 0.1);
    border: 1px solid rgba(85, 221, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.qr-tips h5 {
    color: #55ddff;
    margin-bottom: 1rem;
}

/* Free QR Code Info */
.qr-free-info {
    position: sticky;
    top: 340px;
}

.qr-info-card {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.15), rgba(39, 174, 96, 0.15));
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.qr-info-card i {
    color: #2ed573;
    font-size: 1.1rem;
}

.qr-info-card h6 {
    color: #2ed573;
    font-weight: 600;
}

.qr-info-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.tip-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tip-item i {
    color: #55ddff;
    margin-right: 0.5rem;
    min-width: 20px;
}

/* Loading states */
.qr-generating {
    opacity: 0.7;
    pointer-events: none;
}

.qr-generating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(85, 221, 255, 0.3);
    border-top: 3px solid #55ddff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success states */
.qr-success {
    animation: qrSuccess 0.6s ease-in-out;
}

@keyframes qrSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Download success animation */
.download-success {
    animation: downloadFlash 0.6s ease-in-out;
}

@keyframes downloadFlash {
    0% { background-color: rgba(45, 213, 115, 0.2); }
    50% { background-color: rgba(45, 213, 115, 0.4); }
    100% { background-color: transparent; }
}

/* Form validation styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 991px) {
    .qr-output-section.sticky-top {
        position: static !important;
        margin-top: 2rem;
    }
    
    .qr-free-info {
        position: static !important;
        margin-top: 1rem;
    }
    
    .qr-preview-container {
        aspect-ratio: auto;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .qr-output-section,
    .qr-controls {
        padding: 1.5rem;
    }
    
    .qr-preview-container {
        min-height: 250px;
        padding: 1rem;
    }
    
    .qr-placeholder i {
        font-size: 3rem;
    }
    
    .qr-form {
        padding: 1rem;
    }
    
    .qr-option {
        margin-bottom: 1rem;
    }
    
    .btn-qr-type {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .btn-qr-type {
        margin-bottom: 0.5rem;
    }
    
    .qr-preview-container {
        min-height: 220px;
    }
    
    .btn-action.btn-sm {
        padding: 8px 10px;
    }
    
    .btn-action.btn-sm i {
        margin: 0;
    }
}