/* --- QR Generator Styling --- */
.qr-generator-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4f9 100%);
    position: relative;
    overflow: hidden;
}

.qr-generator-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(10, 61, 98, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.qr-generator-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(243, 156, 18, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.qr-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.qr-header {
    text-align: center;
    margin-bottom: 60px;
}

.qr-header h2 {
    color: #0a3d62;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.qr-header h2 i {
    color: #f39c12;
    font-size: 2rem;
}

.qr-header p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 400;
}

.qr-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.generator-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(10, 61, 98, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.generator-card:hover {
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.input-section {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    color: #0a3d62;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}

.gen-input-box {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 5px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    gap: 12px;
}

.gen-input-box:focus-within {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.gen-input-box i {
    color: #f39c12;
    font-size: 1.2rem;
    margin-left: 10px;
}

#qr-input {
    flex: 1;
    padding: 14px 15px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #0a3d62;
    font-family: 'Poppins', sans-serif;
}

#qr-input::placeholder {
    color: #94a3b8;
}

.gen-btn {
    background: linear-gradient(135deg, #0a3d62 0%, #155e8c 100%);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 5px;
    white-space: nowrap;
    font-size: 1rem;
}

.gen-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.gen-btn:active {
    transform: translateY(0);
}

.input-hint {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 8px;
}

.qr-result-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qr-display-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qr-display-box:hover {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #f8fafc 100%);
}

#qr-canvas {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background: white;
    display: none;
}

.qr-placeholder-text {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
}

.download-section {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    color: #047857;
    font-weight: 600;
    animation: pulse 0.5s ease-out;
}

.success-indicator i {
    font-size: 1.5rem;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.download-btn {
    background: linear-gradient(135deg, #0a3d62 0%, #155e8c 100%);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.copy-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    flex: 1;
    min-width: 150px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.copy-btn.copied i {
    animation: checkMark 0.5s ease-out;
}

@keyframes checkMark {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.download-btn {
    flex: 1;
    min-width: 150px;
}

.qr-info-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.info-item {
    display: flex;
    gap: 18px;
    padding: 22px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 61, 98, 0.05);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #f39c12;
}

.info-item i {
    font-size: 2rem;
    color: #f39c12;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    color: #0a3d62;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.info-item p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .qr-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .generator-card {
        padding: 40px;
    }

    .qr-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .qr-generator-section {
        padding: 50px 3%;
    }

    .qr-header {
        margin-bottom: 40px;
    }

    .qr-header h2 {
        font-size: 1.7rem;
        gap: 10px;
    }

    .qr-header h2 i {
        font-size: 1.5rem;
    }

    .qr-header p {
        font-size: 0.95rem;
    }

    .generator-card {
        padding: 30px;
    }

    .gen-input-box {
        flex-direction: column;
        gap: 10px;
    }

    .gen-input-box i {
        margin-left: 0;
    }

    #qr-input {
        width: 100%;
    }

    .gen-btn {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }

    .qr-display-box {
        min-height: 250px;
        padding: 30px 20px;
    }

    .info-item {
        gap: 15px;
        padding: 20px;
    }

    .info-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .qr-generator-section {
        padding: 40px 3%;
    }

    .qr-header h2 {
        font-size: 1.4rem;
    }

    .qr-header p {
        font-size: 0.9rem;
    }

    .generator-card {
        padding: 20px;
    }

    .input-label {
        font-size: 0.9rem;
    }

    #qr-input {
        font-size: 0.9rem;
    }

    .gen-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .download-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .qr-display-box {
        min-height: 220px;
        padding: 20px;
    }

    .info-item {
        gap: 12px;
        padding: 15px;
    }

    .info-item h4 {
        font-size: 0.95rem;
    }

    .info-item p {
        font-size: 0.85rem;
    }
}
}
#qrcode {
    display: inline-block;
    min-height: 200px;
    min-width: 200px;
    margin-top: 20px;
}

#qrcode img, #qrcode canvas {
    display: block;
    margin: 0 auto;
}