/* ========================================
   QR GENERATOR - MODERN DESIGN
   ======================================== */

.qr-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.qr-hero {
    text-align: center;
    padding: 2rem 1rem 3rem;
    margin-bottom: 2rem;
}

.qr-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.qr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
}

.qr-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.qr-hero-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Content Wrapper */
.qr-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Form Panel */
.qr-form-panel {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Tabs */
.qr-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.5rem;
    border-radius: 1rem;
}

.qr-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.qr-tab.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-icon {
    width: 20px;
    height: 20px;
}

/* Forms */
.qr-forms {
    position: relative;
}

.qr-form-section {
    display: none;
}

.qr-form-section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.95rem;
    color: #94a3b8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #f8fafc;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: #64748b;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .flex-2 {
    grid-column: span 2;
}

.form-row .flex-1 {
    grid-column: span 1;
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.5rem;
}

.form-divider span {
    padding: 0 1rem;
    background: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Preview Panel */
.qr-preview-panel {
    position: relative;
}

.qr-preview-sticky {
    position: sticky;
    top: 100px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.qr-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.qr-preview-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.qr-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: #10b981;
}

.status-text {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* QR Display */
.qr-display {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.qr-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

#qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode img {
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* QR Info */
.qr-info {
    display: none;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.qr-info.active {
    display: block;
}

.qr-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 1rem;
}

.qr-info p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.qr-info strong {
    color: #f8fafc;
}

/* Download Button */
.btn-download {
    display: none;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.btn-download.active {
    display: flex;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-download svg {
    width: 20px;
    height: 20px;
}

/* Features Section */
.qr-features {
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.qr-features h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.feature-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.feature-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.feature-icon-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .qr-content-wrapper {
        grid-template-columns: 1fr;
    }

    .qr-preview-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .qr-main-container {
        padding: 1rem 0.75rem;
    }

    .qr-hero {
        padding: 1.5rem 1rem 2rem;
    }

    .qr-form-panel,
    .qr-preview-sticky {
        padding: 1.5rem;
    }

    .qr-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .qr-tab {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row .flex-2,
    .form-row .flex-1 {
        grid-column: span 1;
    }

    .qr-display {
        min-height: 240px;
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .qr-hero-title {
        font-size: 1.75rem;
    }

    .qr-form-panel,
    .qr-preview-sticky {
        padding: 1.25rem;
    }

    .qr-tab {
        font-size: 0.85rem;
        padding: 0.65rem 0.75rem;
    }

    .tab-icon {
        width: 18px;
        height: 18px;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
}