/* Main Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 72px; /* Account for fixed navbar */
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode Variables */
:root {
    /* Light Mode (Default) */
    --mode-transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    --vh: 1vh;
}

body.dark-mode {
    --background: #121212;
    --surface: #1E1E1E;
    --surface-card: #2D2D2D;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-tertiary: #808080;
    --border: #3D3D3D;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Theme Switcher */
.theme-switch {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.theme-switch-label {
    margin-right: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.theme-switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.theme-switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 24px;
}

.theme-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.theme-switch-toggle input:checked + .theme-switch-slider {
    background-color: var(--primary);
}

.theme-switch-toggle input:checked + .theme-switch-slider:before {
    transform: translateX(24px);
}

.theme-switch-icon {
    position: absolute;
    top: 5px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.theme-switch-icon.sun {
    left: 6px;
    color: #FFD700;
    opacity: 0;
}

.theme-switch-icon.moon {
    right: 6px;
    color: #FFFFFF;
    opacity: 1;
}

.theme-switch-toggle input:checked + .theme-switch-slider .theme-switch-icon.sun {
    opacity: 1;
}

.theme-switch-toggle input:checked + .theme-switch-slider .theme-switch-icon.moon {
    opacity: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--mode-transition);
}

body.dark-mode .navbar {
    background: rgba(30, 30, 30, 0.8);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-logo {
    height: 32px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.navbar-actions {
    display: none; /* Will show on larger screens */
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Generator Section */
.generator-section {
    padding: 4rem 0;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Options Card */
.options-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.options-card h2, .options-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.options-title {
    margin: 2rem 0 1.5rem;
    font-size: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.qr-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.option-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

.option-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.option-btn.active i {
    color: white;
}

/* Form fields */
.form-type {
    display: none;
}

.form-type.active {
    display: block;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
    outline: none;
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Style Options */
.style-options {
    display: flex;
    gap: 1rem;
}

.style-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.style-option input[type="radio"] {
    margin: 0;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: relative;
    display: block;
    width: 48px;
    height: 24px;
    background-color: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-switch label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch input:checked + label {
    background-color: var(--primary);
}

.toggle-switch input:checked + label:after {
    transform: translateX(24px);
}

/* Color Pickers */
.color-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.color-picker label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.color-picker input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Slider Container */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-value {
    min-width: 60px;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Preview Card */
.preview-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.qr-preview {
    aspect-ratio: 1;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.qr-preview img {
    max-width: 100%;
    height: auto;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.qr-preview.loading .preview-overlay {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.download-options {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* QR Code Logo Upload */
.logo-upload {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.logo-upload-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.logo-upload-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-upload-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.logo-upload-button input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    cursor: pointer;
    display: block;
}

.logo-preview {
    width: 60px;
    height: 60px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-align: center;
    overflow: hidden;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-upload-info {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.logo-settings {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.logo-setting {
    flex: 1;
}

.logo-setting-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.logo-setting-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.delayed-animation {
    opacity: 0;
}

.animate-on-scroll {
    transition: opacity 0.6s, transform 0.6s;
    opacity: 0;
    transform: translateY(20px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 1025px) {
    .navbar-actions {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .generator-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-card {
        position: static;
    }
    
    .qr-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .qr-types {
        grid-template-columns: 1fr;
    }
    
    .style-options {
        flex-direction: column;
    }
}

/* Mobile App Banner */
.app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-card);
    border-top: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.app-banner.active {
    transform: translateY(0);
}

.app-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
}

.app-banner-text h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.app-banner-text p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-secondary);
}

.app-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: var(--border);
}

.btn-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline-secondary:hover {
    background-color: var(--surface);
    border-color: var(--text-secondary);
}

/* Enhance Form Controls */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
    outline: none;
}

/* Transitions */
img {
    transition: opacity 0.3s ease;
}

.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Hover Effects */
.feature-card, .step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Hover Effects for Buttons */
.option-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Mobile Responsiveness Enhancements */

/* General responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    /* Smaller button padding on mobile */
    .btn {
        padding: 8px 16px;
    }
    
    /* Stack buttons on mobile */
    .btn + .btn {
        margin-top: 12px;
    }
    
    /* Adjust form elements for better mobile use */
    .form-control, 
    .form-select,
    .input-group {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* QR generator specific adjustments */
    .generator-grid {
        display: block; /* Stack instead of grid */
    }
    
    .options-card,
    .preview-card {
        margin-bottom: 24px;
        width: 100%;
    }
    
    /* Make QR types scroll horizontally on mobile */
    .qr-types {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    .option-btn {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    /* Footer improvements */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-brand,
    .footer-links {
        width: 100%;
        margin-bottom: 32px;
    }
    
    .footer-column {
        margin-bottom: 24px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    /* Further reduce font sizes */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    /* Make color pickers better on small screens */
    .color-pickers {
        flex-direction: column;
    }
    
    .color-picker {
        width: 100%;
        margin-bottom: 12px;
    }
    
    /* Adjust QR preview size */
    .qr-preview {
        width: 200px;
        height: 200px;
    }
    
    /* Stack preview actions */
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-actions button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1024px) {
    .generator-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .options-card,
    .preview-card {
        max-width: 100%;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-link,
    .footer a,
    .btn,
    .form-check,
    .radio-option,
    label {
        padding: 12px 8px;
        margin: 4px 0;
    }
    
    input[type="radio"],
    input[type="checkbox"] {
        min-width: 20px;
        min-height: 20px;
    }
    
    /* Improve AdSense responsive display */
    .ad-container {
        margin: 1.5rem auto;
        padding: 0;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px 0;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.dark-mode .mobile-menu-toggle .bar {
    background-color: var(--text-light);
}

.mobile-menu-open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--surface);
        padding: 80px 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    
    .dark-mode .navbar-menu {
        background-color: var(--surface-dark);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-menu .nav-link {
        display: block;
        padding: 16px 8px;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .dark-mode .navbar-menu .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .navbar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .navbar-overlay.active {
        display: block;
    }
}

/* Viewport height fix for mobile */
:root {
    --vh: 1vh;
}

/* Mobile form improvements */
@media (max-width: 768px) {
    /* Improve form layout on mobile */
    .qr-form {
        margin-bottom: 24px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    /* Make radio buttons and checkboxes more touchable */
    .radio-group, 
    .style-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .radio-option,
    .style-option {
        flex: 1 0 auto;
        min-width: 80px;
        text-align: center;
    }
    
    /* Fix logo upload section */
    .logo-upload-container {
        flex-direction: column;
    }
    
    .logo-preview {
        margin-bottom: 12px;
        width: 100px;
        height: 100px;
    }
    
    .logo-upload-button {
        width: 100%;
        margin-bottom: 12px;
    }
    
    #remove-logo {
        width: 100%;
    }
    
    /* Sticky QR preview for mobile */
    .preview-card {
        position: sticky;
        bottom: 0;
        background-color: var(--surface);
        z-index: 100;
        padding: 16px;
        border-top: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin: 0 -16px;
        border-radius: 0;
    }
    
    .dark-mode .preview-card {
        background-color: var(--surface-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    }
    
    /* Fix hero section for mobile */
    .hero-section {
        padding: var(--space-8) 0;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    /* Make dropdown menus easier to use on mobile */
    select.form-control {
        height: 48px;
        background-position: right 8px center;
    }
    
    /* Fix spacing between sections */
    section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 20px;
    }
} 