/* Custom styles for the QR Code Generator */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 1.5rem;
}

.input-section, .output-section {
    min-height: 600px;
}

.output-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 350px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.qr-container:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* QR Code styling */
.high-quality-qr {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.qr-frame {
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

/* Styled rounded QR */
.qr-rounded img {
    border-radius: 12px;
}

.qr-extra-rounded img {
    border-radius: 24px;
}

/* Style for QR container when generating */
.qr-container.generating {
    background: linear-gradient(270deg, #f8f9fa, #e9ecef);
    background-size: 400% 400%;
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
    0% {background-position: 0% 50%}
    50% {background-position: 100% 50%}
    100% {background-position: 0% 50%}
}

.placeholder-message {
    color: #6c757d;
    font-size: 18px;
}

.size-value {
    margin-top: 5px;
    font-weight: 500;
    color: #495057;
}

.form-control, .form-select, .btn {
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.btn-success, .btn-info {
    transition: all 0.3s ease;
}

.btn-success:hover, .btn-info:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-section, .output-section {
        min-height: auto;
    }
    
    .card-body .row {
        flex-direction: column;
    }
    
    .col-md-6 {
        width: 100%;
    }
    
    .output-section {
        margin-top: 30px;
    }
}

/* Animation for QR code generation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #0d6efd;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
