/* --- QR specific styles --- */

.sub-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-icon-sm {
    background: black;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-right: 24px;
}

.nav-btn-dark {
    background: black;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.page-container {
    max-width: 1100px;
    padding-top: 40px;
}

.qr-header {
    text-align: center;
    margin-bottom: 60px;
}

.qr-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.qr-header p {
    color: var(--text-tertiary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.qr-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Left Controls */
.qr-controls {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.tab-switcher {
    background: #F2F2F7;
    padding: 4px;
    border-radius: 12px;
    display: inline-flex;
    margin-bottom: 32px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
}

.tab-btn.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.control-group {
    margin-bottom: 32px;
}

.control-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9CA3AF;
    margin-bottom: 12px;
}

.qr-text-input {
    width: 100%;
    background: #F3F4F6;
    border: none;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.customize-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.custom-btn {
    background: #F3F4F6;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-base);
}

.custom-btn:hover {
    background: #E5E7EB;
}

.print-ready-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.print-icon {
    background: #3B82F6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}

.print-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.print-text strong {
    font-size: 14px;
    margin-bottom: 2px;
}

.print-text span {
    color: var(--text-tertiary);
}


/* Custom Control Pill */
.custom-control-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #E5E5EA;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.custom-control-pill:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.hidden-color-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Right Preview */
.qr-preview-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-card {
    background: white;
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.qr-output img,
.qr-output canvas {
    max-width: 100% !important;
    height: auto !important;
}

.qr-svg {
    width: 100%;
    height: 100%;
}

.live-badge {
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    margin-top: -44px;
    margin-bottom: 44px;
    z-index: 2;
}

.action-row {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 360px;
}

.download-btn-lg {
    flex-grow: 1;
    background: #2563EB;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-base);
}

.download-btn-lg:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
}

.share-btn-icon {
    width: 54px;
    background: white;
    border: none;
    border-radius: 16px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
}

/* Footer Mini */
.footer-simple {
    border-top: 1px solid #E5E5EA;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-tertiary);
}

.brand-icon-mini {
    background: black;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    margin-right: 8px;
}

.flex-center {
    display: flex;
    align-items: center;
}

.footer-links-mini {
    display: flex;
    gap: 24px;
}

.footer-links-mini a {
    color: var(--text-tertiary);
    text-decoration: none;
}

@media (max-width: 900px) {
    .page-container {
        padding: 24px 16px 0 16px;
    }
    .qr-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }
    .qr-controls {
        padding: 28px;
        border-radius: 24px;
    }
    .qr-card {
        width: min(360px, 100%);
        height: auto;
        padding: 24px;
        border-radius: 28px;
    }
    .qr-output {
        width: 100%;
        height: auto;
    }
    .action-row {
        max-width: 100%;
        flex-wrap: wrap;
    }
    .download-btn-lg {
        width: 100%;
    }
    .share-btn-icon {
        width: 100%;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .qr-header h1 {
        font-size: 34px;
    }
    .qr-header p {
        font-size: 16px;
    }
    .tab-btn {
        padding: 8px 16px;
    }
    .qr-text-input {
        font-size: 15px;
        padding: 14px 16px;
    }
    .custom-btn,
    .custom-control-pill {
        width: 100%;
        justify-content: center;
    }
    .print-ready-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
